Home
last modified time | relevance | path

Searched refs:rc (Results 1 – 20 of 20) 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.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_manager.cc588 int rc = TEMP_FAILURE_RETRY(stat(fullname.c_str(), &s)); in UnlinkLeastRecentlyUsedVdexIfNeeded() local
589 if (rc == -1) { in UnlinkLeastRecentlyUsedVdexIfNeeded()
Doat_file_assistant.cc835 int rc = TEMP_FAILURE_RETRY(fstat(vdex_fd_, &s)); in GetFile() local
836 if (rc == -1) { in GetFile()
Doat_file.cc321 int rc = TEMP_FAILURE_RETRY(fstat(vdex_fd, &s)); in LoadVdex() local
322 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.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.cc424 int rc = pthread_mutex_destroy(&mutex_); in ~Mutex() local
425 if (rc != 0) { in ~Mutex()
426 errno = rc; in ~Mutex()
753 int rc = pthread_rwlock_destroy(&rwlock_); in ~ReaderWriterMutex()
754 if (rc != 0) { in ~ReaderWriterMutex()
755 errno = rc; in ~ReaderWriterMutex()
1015 int rc = pthread_cond_destroy(&cond_); in ~ConditionVariable()
1016 if (rc != 0) { in ~ConditionVariable()
1017 errno = rc; in ~ConditionVariable()
1150 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.cc156 int rc = pthread_key_create(&key, nullptr); in GetHandlingSignalKey() local
157 if (rc != 0) { in GetHandlingSignalKey()
158 fatal("failed to create sigchain pthread key: %s", strerror(rc)); in GetHandlingSignalKey()
/art/runtime/native/
Ddalvik_system_ZygoteHooks.cc373 int rc = pthread_getname_np(pthread_self(), name_buf, kMaxProcessNameLength); in ZygoteHooks_nativePostForkChild() local
376 if (rc == 0) { in ZygoteHooks_nativePostForkChild()
/art/dex2oat/
Ddex2oat.cc285 int rc = call args; \
286 if (rc != 0) { \
287 errno = rc; \
388 int rc = pthread_cond_timedwait(&cond_, &mutex_, &timeout_ts); in Wait() local
389 if (rc == EINTR) { in Wait()
391 } else if (rc == ETIMEDOUT) { in Wait()
394 } else if (rc != 0) { in Wait()
395 std::string message(StringPrintf("pthread_cond_timedwait failed: %s", strerror(rc))); in Wait()
1251 int rc = TEMP_FAILURE_RETRY(fstat(input_vdex_fd_, &s)); in OpenFile() local
1252 if (rc == -1) { in OpenFile()
/art/odrefresh/
Dodrefresh.cc877 auto rc = static_cast<dexoptanalyzer::ReturnCode>(dexoptanalyzer_result); in VerifyBootExtensionArtifactsAreUpToDate() local
878 if (rc == dexoptanalyzer::ReturnCode::kNoDexOptNeeded) { in VerifyBootExtensionArtifactsAreUpToDate()
/art/libprofile/profile/
Dprofile_compilation_info.cc2400 off_t rc = TEMP_FAILURE_RETRY(lseek(fd, 0, SEEK_SET)); in IsProfileFile() local
2401 if (rc == static_cast<off_t>(-1)) { in IsProfileFile()