Home
last modified time | relevance | path

Searched refs:rc (Results 1 – 21 of 21) sorted by relevance

/art/libartbase/base/unix_file/
Dfd_file.cc348 int rc = TEMP_FAILURE_RETRY(fdatasync(fd_)); in Flush() local
350 int rc = TEMP_FAILURE_RETRY(fsync(fd_)); in Flush() local
354 if (rc == 0) { in Flush()
364 int rc = TEMP_FAILURE_RETRY(pread64(fd_, buf, byte_count, offset)); in Read() local
366 int rc = TEMP_FAILURE_RETRY(pread(fd_, buf, byte_count, offset)); in Read()
368 return (rc == -1) ? -errno : rc; in Read()
374 int rc = TEMP_FAILURE_RETRY(ftruncate64(fd_, new_length)); in SetLength() local
376 int rc = TEMP_FAILURE_RETRY(ftruncate(fd_, new_length)); in SetLength() local
379 return (rc == -1) ? -errno : rc; in SetLength()
384 int rc = TEMP_FAILURE_RETRY(fstat(fd_, &s)); in GetLength() local
[all …]
/art/libartbase/base/
Dsafe_copy.cc72 ssize_t rc = process_vm_readv(getpid(), &dst_iov, 1, src_iovs, iovecs_used, 0); in SafeCopy() local
73 if (rc == -1) { in SafeCopy()
76 return rc; in SafeCopy()
Dutils.h155 int rc = function(args...); in CheckedCall() local
156 if (UNLIKELY(rc != 0)) { in CheckedCall()
Dzip_archive.cc225 int rc = fcntl(fd, F_SETFD, flags | FD_CLOEXEC); in SetCloseOnExec()
226 if (rc == -1) { in SetCloseOnExec()
/art/runtime/
Dsignal_set.h57 int rc = TEMP_FAILURE_RETRY(sigwait64(&set_, &signal_number)); in Wait() local
58 if (rc != 0) { in Wait()
Druntime_common.cc533 int rc = 0; in InitPlatformSignalHandlersCommon() local
534 rc += sigaction(SIGABRT, &action, oldact); in InitPlatformSignalHandlersCommon()
535 rc += sigaction(SIGBUS, &action, oldact); in InitPlatformSignalHandlersCommon()
536 rc += sigaction(SIGFPE, &action, oldact); in InitPlatformSignalHandlersCommon()
537 rc += sigaction(SIGILL, &action, oldact); in InitPlatformSignalHandlersCommon()
538 rc += sigaction(SIGPIPE, &action, oldact); in InitPlatformSignalHandlersCommon()
539 rc += sigaction(SIGSEGV, &action, oldact); in InitPlatformSignalHandlersCommon()
541 rc += sigaction(SIGSTKFLT, &action, oldact); in InitPlatformSignalHandlersCommon()
543 rc += sigaction(SIGTRAP, &action, oldact); in InitPlatformSignalHandlersCommon()
546 rc += sigaction(GetTimeoutSignal(), &action, oldact); in InitPlatformSignalHandlersCommon()
[all …]
Dfault_handler.cc71 ssize_t rc = SafeCopy(&cls, method_declaring_class, sizeof(cls)); in SafeGetDeclaringClass() local
72 CHECK_NE(-1, rc); in SafeGetDeclaringClass()
79 if (rc != sizeof(cls)) { in SafeGetDeclaringClass()
90 ssize_t rc = SafeCopy(&cls, obj_cls, sizeof(cls)); in SafeGetClass() local
91 CHECK_NE(-1, rc); in SafeGetClass()
98 if (rc != sizeof(cls)) { in SafeGetClass()
Doat_file_manager.cc604 int rc = TEMP_FAILURE_RETRY(stat(fullname.c_str(), &s)); in UnlinkLeastRecentlyUsedVdexIfNeeded() local
605 if (rc == -1) { in UnlinkLeastRecentlyUsedVdexIfNeeded()
Doat_file_assistant.cc858 int rc = TEMP_FAILURE_RETRY(fstat(vdex_fd_, &s)); in GetFile() local
859 if (rc == -1) { in GetFile()
Doat_file.cc306 int rc = TEMP_FAILURE_RETRY(fstat(vdex_fd, &s)); in LoadVdex() local
307 if (rc == -1) { in LoadVdex()
/art/runtime/gc/allocator/
Ddlmalloc.cc76 int rc = madvise(start, length, MADV_DONTNEED); in DlmallocMadviseCallback() local
77 if (UNLIKELY(rc != 0)) { in DlmallocMadviseCallback()
78 errno = rc; in DlmallocMadviseCallback()
/art/artd/
DAndroid.bp48 name: "com.android.art.artd.init.rc",
49 src: "artd.rc",
50 filename: "init.rc",
/art/dalvikvm/
Ddalvikvm.cc191 int rc = InvokeMain(env, &argv[arg_idx]); in dalvikvm() local
198 rc = EXIT_FAILURE; in dalvikvm()
204 rc = EXIT_FAILURE; in dalvikvm()
207 return rc; in dalvikvm()
/art/runtime/base/
Dmutex.cc423 int rc = pthread_mutex_destroy(&mutex_); in ~Mutex() local
424 if (rc != 0) { in ~Mutex()
425 errno = rc; in ~Mutex()
758 int rc = pthread_rwlock_destroy(&rwlock_); in ~ReaderWriterMutex()
759 if (rc != 0) { in ~ReaderWriterMutex()
760 errno = rc; in ~ReaderWriterMutex()
1020 int rc = pthread_cond_destroy(&cond_); in ~ConditionVariable()
1021 if (rc != 0) { in ~ConditionVariable()
1022 errno = rc; in ~ConditionVariable()
1155 int rc; in TimedWait() local
[all …]
/art/runtime/arch/x86/
Dthread_x86.cc114 int rc = syscall(__NR_set_thread_area, &gdt_entry); in InitCpu() local
115 if (rc != -1) { in InitCpu()
/art/tools/signal_dumper/
Dsignal_dumper.cc77 int rc = TEMP_FAILURE_RETRY(sigwait(&set_, &signal_number)); in Wait() local
78 if (rc != 0) { in Wait()
469 pid_t rc = TEMP_FAILURE_RETRY(waitpid(pid, &status, WNOHANG)); in WaitForSigStopped() local
470 if (rc == -1) { in WaitForSigStopped()
475 if (rc == pid) { in WaitForSigStopped()
/art/sigchainlib/
Dsigchain.cc158 int rc = pthread_key_create(&key, nullptr); in GetHandlingSignalKey() local
159 if (rc != 0) { in GetHandlingSignalKey()
160 fatal("failed to create sigchain pthread key: %s", strerror(rc)); in GetHandlingSignalKey()
/art/runtime/native/
Ddalvik_system_ZygoteHooks.cc371 int rc = pthread_getname_np(pthread_self(), name_buf, kMaxProcessNameLength); in ZygoteHooks_nativePostForkChild() local
374 if (rc == 0) { in ZygoteHooks_nativePostForkChild()
/art/dex2oat/
Ddex2oat.cc288 int rc = call args; \
289 if (rc != 0) { \
290 errno = rc; \
391 int rc = pthread_cond_timedwait(&cond_, &mutex_, &timeout_ts); in Wait() local
392 if (rc == EINTR) { in Wait()
394 } else if (rc == ETIMEDOUT) { in Wait()
397 } else if (rc != 0) { in Wait()
398 std::string message(StringPrintf("pthread_cond_timedwait failed: %s", strerror(rc))); in Wait()
1298 int rc = TEMP_FAILURE_RETRY(fstat(input_vdex_fd_, &s)); in OpenFile() local
1299 if (rc == -1) { in OpenFile()
/art/build/apex/
DAndroid.bp290 "com.android.art.artd.init.rc",
/art/libprofile/profile/
Dprofile_compilation_info.cc2380 off_t rc = TEMP_FAILURE_RETRY(lseek(fd, 0, SEEK_SET)); in IsProfileFile() local
2381 if (rc == static_cast<off_t>(-1)) { in IsProfileFile()