Home
last modified time | relevance | path

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

/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.h146 int rc = function(args...); in CheckedCall() local
147 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/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/runtime/
Dsignal_set.h49 int rc = TEMP_FAILURE_RETRY(sigwait(&set_, &signal_number)); in Wait() local
50 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.cc68 ssize_t rc = SafeCopy(&cls, method_declaring_class, sizeof(cls)); in SafeGetDeclaringClass() local
69 CHECK_NE(-1, rc); in SafeGetDeclaringClass()
76 if (rc != sizeof(cls)) { in SafeGetDeclaringClass()
87 ssize_t rc = SafeCopy(&cls, obj_cls, sizeof(cls)); in SafeGetClass() local
88 CHECK_NE(-1, rc); in SafeGetClass()
95 if (rc != sizeof(cls)) { in SafeGetClass()
Doat_file_assistant.cc728 int rc = TEMP_FAILURE_RETRY(fstat(vdex_fd_, &s)); in Status() local
729 if (rc == -1) { in Status()
Doat_file_manager.cc610 int rc = TEMP_FAILURE_RETRY(stat(fullname.c_str(), &s)); in UnlinkLeastRecentlyUsedVdexIfNeeded() local
611 if (rc == -1) { in UnlinkLeastRecentlyUsedVdexIfNeeded()
Doat_file.cc310 int rc = TEMP_FAILURE_RETRY(fstat(vdex_fd, &s)); in LoadVdex() local
311 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/dalvikvm/
Ddalvikvm.cc190 int rc = InvokeMain(env, &argv[arg_idx]); in dalvikvm() local
197 rc = EXIT_FAILURE; in dalvikvm()
203 rc = EXIT_FAILURE; in dalvikvm()
206 return rc; in dalvikvm()
/art/runtime/base/
Dmutex.cc410 int rc = pthread_mutex_destroy(&mutex_); in ~Mutex() local
411 if (rc != 0) { in ~Mutex()
412 errno = rc; in ~Mutex()
675 int rc = pthread_rwlock_destroy(&rwlock_); in ~ReaderWriterMutex()
676 if (rc != 0) { in ~ReaderWriterMutex()
677 errno = rc; in ~ReaderWriterMutex()
937 int rc = pthread_cond_destroy(&cond_); in ~ConditionVariable()
938 if (rc != 0) { in ~ConditionVariable()
939 errno = rc; in ~ConditionVariable()
1072 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.cc149 int rc = pthread_key_create(&key, nullptr); in GetHandlingSignalKey() local
150 if (rc != 0) { in GetHandlingSignalKey()
151 fatal("failed to create sigchain pthread key: %s", strerror(rc)); in GetHandlingSignalKey()
/art/runtime/native/
Ddalvik_system_ZygoteHooks.cc365 int rc = pthread_getname_np(pthread_self(), name_buf, kMaxProcessNameLength); in ZygoteHooks_nativePostForkChild() local
368 if (rc == 0) { in ZygoteHooks_nativePostForkChild()
/art/dex2oat/
Ddex2oat.cc569 int rc = call args; \
570 if (rc != 0) { \
571 errno = rc; \
672 int rc = pthread_cond_timedwait(&cond_, &mutex_, &timeout_ts); in Wait() local
673 if (rc == EINTR) { in Wait()
675 } else if (rc == ETIMEDOUT) { in Wait()
678 } else if (rc != 0) { in Wait()
679 std::string message(StringPrintf("pthread_cond_timedwait failed: %s", strerror(rc))); in Wait()
1527 int rc = TEMP_FAILURE_RETRY(fstat(input_vdex_fd_, &s)); in OpenFile() local
1528 if (rc == -1) { in OpenFile()
/art/libprofile/profile/
Dprofile_compilation_info.cc2163 off_t rc = TEMP_FAILURE_RETRY(lseek(fd, 0, SEEK_SET)); in IsProfileFile() local
2164 if (rc == static_cast<off_t>(-1)) { in IsProfileFile()