Home
last modified time | relevance | path

Searched refs:TEMP_FAILURE_RETRY (Results 1 – 17 of 17) sorted by relevance

/art/runtime/base/unix_file/
Dfd_file.cc92 fd_ = TEMP_FAILURE_RETRY(open(path.c_str(), flags, mode)); in Open()
130 int rc = TEMP_FAILURE_RETRY(fdatasync(fd_)); in Flush()
132 int rc = TEMP_FAILURE_RETRY(fsync(fd_)); in Flush()
140 int rc = TEMP_FAILURE_RETRY(pread64(fd_, buf, byte_count, offset)); in Read()
142 int rc = TEMP_FAILURE_RETRY(pread(fd_, buf, byte_count, offset)); in Read()
149 int rc = TEMP_FAILURE_RETRY(ftruncate64(fd_, new_length)); in SetLength()
151 int rc = TEMP_FAILURE_RETRY(ftruncate(fd_, new_length)); in SetLength()
159 int rc = TEMP_FAILURE_RETRY(fstat(fd_, &s)); in GetLength()
165 int rc = TEMP_FAILURE_RETRY(pwrite64(fd_, buf, byte_count, offset)); in Write()
167 int rc = TEMP_FAILURE_RETRY(pwrite(fd_, buf, byte_count, offset)); in Write()
[all …]
/art/runtime/base/
Dscoped_flock.cc38 int flock_result = TEMP_FAILURE_RETRY(flock(file_->Fd(), LOCK_EX)); in Init()
44 int fstat_result = TEMP_FAILURE_RETRY(fstat(file_->Fd(), &fstat_stat)); in Init()
50 int stat_result = TEMP_FAILURE_RETRY(stat(filename, &stat_stat)); in Init()
72 if (0 != TEMP_FAILURE_RETRY(flock(file_->Fd(), LOCK_EX))) { in Init()
94 int flock_result = TEMP_FAILURE_RETRY(flock(file_->Fd(), LOCK_UN)); in ~ScopedFlock()
Dmacros.h24 #ifndef TEMP_FAILURE_RETRY
25 #define TEMP_FAILURE_RETRY(exp) ({ \ macro
Dmutex.cc906 int rc = TEMP_FAILURE_RETRY(pthread_cond_timedwait(&cond_, &guard_.mutex_, &ts)); in TimedWait()
/art/runtime/jdwp/
Djdwp_adb.cc162 int rc = TEMP_FAILURE_RETRY(recvmsg(control_sock_, &msg, 0)); in ReceiveClientFd()
237 ret = TEMP_FAILURE_RETRY(send(control_sock_, buff, 4, 0)); in Accept()
421 int cc = TEMP_FAILURE_RETRY(write(clientSock, input_buffer_, kMagicHandshakeLen)); in ProcessIncoming()
Djdwp_main.cc71 TEMP_FAILURE_RETRY(write(wake_pipe_[1], "", 1)); in WakePipe()
132 return TEMP_FAILURE_RETRY(write(clientSock, expandBufGetBuffer(pReply), length)); in WritePacket()
146 return TEMP_FAILURE_RETRY(writev(clientSock, &iov[0], iov.size())); in WriteBufferedPacketLocked()
Djdwp_socket.cc478 int cc = TEMP_FAILURE_RETRY(write(clientSock, input_buffer_, kMagicHandshakeLen)); in ProcessIncoming()
/art/runtime/
Dsignal_set.h49 int rc = TEMP_FAILURE_RETRY(sigwait(&set_, &signal_number)); in Wait()
Dzip_archive_test.cc57 ssize_t bytes_read = TEMP_FAILURE_RETRY(read(fd, buf, kBufSize)); in TEST_F()
Doat_file_assistant.cc100 TEMP_FAILURE_RETRY(unlink(flock_.GetFile()->GetPath().c_str())); in ~OatFileAssistant()
132 TEMP_FAILURE_RETRY(unlink(lock_file_name.c_str())); in Lock()
641 TEMP_FAILURE_RETRY(unlink(oat_file_name.c_str())); in CopyProfileFile()
683 TEMP_FAILURE_RETRY(unlink(oat_file_name.c_str())); in CopyProfileFile()
Dutils.cc142 int64_t n = TEMP_FAILURE_RETRY(read(file.Fd(), &buf[0], buf.size())); in ReadFileToString()
164 int64_t n = TEMP_FAILURE_RETRY(read(file.Fd(), &buf[filled_to], kBufSize - filled_to)); in PrintFileToLog()
1427 pid_t got_pid = TEMP_FAILURE_RETRY(waitpid(pid, &status, 0)); in Exec()
Ddex_file.cc66 int n = TEMP_FAILURE_RETRY(read(fd.get(), magic, sizeof(*magic))); in OpenAndReadMagic()
/art/test/137-cfi/
Dcfi.cc154 pid_t n = TEMP_FAILURE_RETRY(waitpid(tid, &status, __WALL | WNOHANG)); in wait_for_sigstop()
/art/compiler/utils/
Dswap_space.cc136 int result = TEMP_FAILURE_RETRY(ftruncate64(fd_, size_ + next_part)); in NewFileChunk()
/art/runtime/gc/space/
Dimage_space.cc116 if (TEMP_FAILURE_RETRY(unlink(cache_file.c_str())) != 0) { in RealPruneDalvikCache()
121 CHECK_EQ(0, TEMP_FAILURE_RETRY(closedir(cache_dir))) << "Unable to close directory."; in RealPruneDalvikCache()
448 int res = TEMP_FAILURE_RETRY(statvfs(cache_filename.c_str(), &buf)); in CheckSpace()
/art/patchoat/
Dpatchoat.cc403 TEMP_FAILURE_RETRY(unlink(output_oat_filename.c_str())); in ReplaceOatFileWithSymlink()
912 TEMP_FAILURE_RETRY(unlink(name)); in CreateOrOpen()
1264 TEMP_FAILURE_RETRY(unlink(output_oat_filename.c_str())); in patchoat()
1268 TEMP_FAILURE_RETRY(unlink(output_image_filename.c_str())); in patchoat()
/art/dex2oat/
Ddex2oat.cc419 int rc = TEMP_FAILURE_RETRY(pthread_cond_timedwait(&cond_, &mutex_, &timeout_ts)); in Wait()
1561 int bytes_read = TEMP_FAILURE_RETRY(read(in->Fd(), buffer.get(), buffer_size)); in CopyUnstrippedToStripped()