Home
last modified time | relevance | path

Searched refs:rc (Results 1 – 23 of 23) 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.h143 int rc = function(args...); in CheckedCall() local
144 if (UNLIKELY(rc != 0)) { in CheckedCall()
Dzip_archive.cc217 int rc = fcntl(fd, F_SETFD, flags | FD_CLOEXEC); in SetCloseOnExec()
218 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.cc523 int rc = 0; in InitPlatformSignalHandlersCommon() local
524 rc += sigaction(SIGABRT, &action, oldact); in InitPlatformSignalHandlersCommon()
525 rc += sigaction(SIGBUS, &action, oldact); in InitPlatformSignalHandlersCommon()
526 rc += sigaction(SIGFPE, &action, oldact); in InitPlatformSignalHandlersCommon()
527 rc += sigaction(SIGILL, &action, oldact); in InitPlatformSignalHandlersCommon()
528 rc += sigaction(SIGPIPE, &action, oldact); in InitPlatformSignalHandlersCommon()
529 rc += sigaction(SIGSEGV, &action, oldact); in InitPlatformSignalHandlersCommon()
531 rc += sigaction(SIGSTKFLT, &action, oldact); in InitPlatformSignalHandlersCommon()
533 rc += sigaction(SIGTRAP, &action, oldact); in InitPlatformSignalHandlersCommon()
536 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.cc771 int rc = TEMP_FAILURE_RETRY(fstat(vdex_fd_, &s)); in Status() local
772 if (rc == -1) { in Status()
Doat_file_manager.cc844 int rc = TEMP_FAILURE_RETRY(stat(fullname.c_str(), &s)); in UnlinkLeastRecentlyUsedVdexIfNeeded() local
845 if (rc == -1) { in UnlinkLeastRecentlyUsedVdexIfNeeded()
Doat_file.cc297 int rc = TEMP_FAILURE_RETRY(fstat(vdex_fd, &s)); in LoadVdex() local
298 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/jdwp/
Djdwp_handler.cc62 JdwpError rc = Dbg::GetObjectTag(object_id, &tag); in WriteTaggedObject() local
63 if (rc == ERR_NONE) { in WriteTaggedObject()
67 return rc; in WriteTaggedObject()
74 JdwpError rc = WriteTaggedObject(reply, objects[i]); in WriteTaggedObjectList() local
75 if (rc != ERR_NONE) { in WriteTaggedObjectList()
76 return rc; in WriteTaggedObjectList()
407 JdwpError rc = Dbg::GetInstanceCounts(class_ids, &counts); in VM_InstanceCounts() local
408 if (rc != ERR_NONE) { in VM_InstanceCounts()
409 return rc; in VM_InstanceCounts()
594 JdwpError rc = Dbg::GetInstances(class_id, max_count, &instances); in RT_Instances() local
[all …]
Djdwp_adb.cc189 int rc = TEMP_FAILURE_RETRY(recvmsg(ControlSock(), &msg, 0)); in ReceiveClientFd() local
191 if (rc <= 0) { in ReceiveClientFd()
192 if (rc == -1) { in ReceiveClientFd()
/art/runtime/base/
Dmutex.cc351 int rc = pthread_mutex_destroy(&mutex_); in ~Mutex() local
352 if (rc != 0) { in ~Mutex()
353 errno = rc; in ~Mutex()
563 int rc = pthread_rwlock_destroy(&rwlock_); in ~ReaderWriterMutex()
564 if (rc != 0) { in ~ReaderWriterMutex()
565 errno = rc; in ~ReaderWriterMutex()
821 int rc = pthread_cond_destroy(&cond_); in ~ConditionVariable()
822 if (rc != 0) { in ~ConditionVariable()
823 errno = rc; in ~ConditionVariable()
966 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/build/apex/
Dart_preinstall_hook_system_server.sh32 SYSTEMSERVERCLASSPATH=`grep "export SYSTEMSERVERCLASSPATH" init.environ.rc | sed -e "s/.* //"`
DAndroid.bp413 init_rc: ["art_apex_boot_integrity.rc"],
/art/tools/timeout_dumper/
Dtimeout_dumper.cc76 int rc = TEMP_FAILURE_RETRY(sigwait(&set_, &signal_number)); in Wait() local
77 if (rc != 0) { in Wait()
490 pid_t rc = TEMP_FAILURE_RETRY(waitpid(pid, &status, WNOHANG)); in WaitForSigStopped() local
491 if (rc == -1) { in WaitForSigStopped()
496 if (rc == pid) { in WaitForSigStopped()
/art/sigchainlib/
Dsigchain.cc130 int rc = pthread_key_create(&key, nullptr); in GetHandlingSignalKey() local
131 if (rc != 0) { in GetHandlingSignalKey()
132 fatal("failed to create sigchain pthread key: %s", strerror(rc)); in GetHandlingSignalKey()
/art/runtime/native/
Ddalvik_system_ZygoteHooks.cc345 int rc = pthread_getname_np(pthread_self(), name_buf, kMaxProcessNameLength); in ZygoteHooks_nativePostForkChild() local
348 if (rc == 0) { in ZygoteHooks_nativePostForkChild()
/art/dex2oat/
Ddex2oat.cc511 int rc = call args; \
512 if (rc != 0) { \
513 errno = rc; \
614 int rc = pthread_cond_timedwait(&cond_, &mutex_, &timeout_ts); in Wait() local
615 if (rc == EINTR) { in Wait()
617 } else if (rc == ETIMEDOUT) { in Wait()
620 } else if (rc != 0) { in Wait()
621 std::string message(StringPrintf("pthread_cond_timedwait failed: %s", strerror(rc))); in Wait()
1320 int rc = TEMP_FAILURE_RETRY(fstat(input_vdex_fd_, &s)); in OpenFile() local
1321 if (rc == -1) { in OpenFile()
/art/adbconnection/
Dadbconnection.cc476 int rc = TEMP_FAILURE_RETRY(recvmsg(control_sock_, &msg, 0)); in ReadFdFromAdb() local
478 if (rc <= 0) { in ReadFdFromAdb()