Searched refs:TEMP_FAILURE_RETRY (Results 1 – 16 of 16) sorted by relevance
/art/runtime/base/unix_file/ |
D | fd_file.cc | 52 fd_ = TEMP_FAILURE_RETRY(open(path.c_str(), flags, mode)); in Open() 61 int result = TEMP_FAILURE_RETRY(close(fd_)); in Close() 73 int rc = TEMP_FAILURE_RETRY(fdatasync(fd_)); in Flush() 75 int rc = TEMP_FAILURE_RETRY(fsync(fd_)); in Flush() 82 int rc = TEMP_FAILURE_RETRY(pread64(fd_, buf, byte_count, offset)); in Read() 84 int rc = TEMP_FAILURE_RETRY(pread(fd_, buf, byte_count, offset)); in Read() 91 int rc = TEMP_FAILURE_RETRY(ftruncate64(fd_, new_length)); in SetLength() 93 int rc = TEMP_FAILURE_RETRY(ftruncate(fd_, new_length)); in SetLength() 100 int rc = TEMP_FAILURE_RETRY(fstat(fd_, &s)); in GetLength() 106 int rc = TEMP_FAILURE_RETRY(pwrite64(fd_, buf, byte_count, offset)); in Write() [all …]
|
D | mapped_file.cc | 43 int result = TEMP_FAILURE_RETRY(fstat(Fd(), &st)); in MapReadOnly() 65 int result = TEMP_FAILURE_RETRY(ftruncate64(Fd(), file_size)); in MapReadWrite() 67 int result = TEMP_FAILURE_RETRY(ftruncate(Fd(), file_size)); in MapReadWrite() 90 int result = TEMP_FAILURE_RETRY(munmap(mapped_file_, file_size_)); in Unmap() 133 int rc = IsMapped() ? TEMP_FAILURE_RETRY(msync(mapped_file_, file_size_, 0)) : FdFile::Flush(); in Flush()
|
D | mapped_file_test.cc | 36 int fd = TEMP_FAILURE_RETRY(open(good_path_.c_str(), O_CREAT|O_RDWR, 0666)); in SetUp() 52 TEMP_FAILURE_RETRY(truncate(good_path_.c_str(), 0)); in MakeTestFile() 128 FdFile new_file(TEMP_FAILURE_RETRY(open(new_path.c_str(), O_RDONLY))); in TEST_F() 198 TEMP_FAILURE_RETRY(unlink(good_path_.c_str())); in TEST_F()
|
/art/runtime/base/ |
D | scoped_flock.cc | 35 int flock_result = TEMP_FAILURE_RETRY(flock(file_->Fd(), LOCK_EX)); in Init() 41 int fstat_result = TEMP_FAILURE_RETRY(fstat(file_->Fd(), &fstat_stat)); in Init() 47 int stat_result = TEMP_FAILURE_RETRY(stat(filename, &stat_stat)); in Init() 69 if (0 != TEMP_FAILURE_RETRY(flock(file_->Fd(), LOCK_EX))) { in Init() 90 int flock_result = TEMP_FAILURE_RETRY(flock(file_->Fd(), LOCK_UN)); in ~ScopedFlock()
|
D | macros.h | 24 #ifndef TEMP_FAILURE_RETRY 25 #define TEMP_FAILURE_RETRY(exp) ({ \ macro
|
D | mutex.cc | 822 int rc = TEMP_FAILURE_RETRY(pthread_cond_timedwait(&cond_, &guard_.mutex_, &ts)); in TimedWait()
|
/art/runtime/jdwp/ |
D | jdwp_adb.cc | 162 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()
|
D | jdwp_main.cc | 70 TEMP_FAILURE_RETRY(write(wake_pipe_[1], "", 1)); in WakePipe() 130 return TEMP_FAILURE_RETRY(write(clientSock, expandBufGetBuffer(pReply), length)); in WritePacket() 138 return TEMP_FAILURE_RETRY(writev(clientSock, &iov[0], iov.size())); in WriteBufferedPacket()
|
D | jdwp_socket.cc | 478 int cc = TEMP_FAILURE_RETRY(write(clientSock, input_buffer_, kMagicHandshakeLen)); in ProcessIncoming()
|
/art/runtime/ |
D | signal_set.h | 49 int rc = TEMP_FAILURE_RETRY(sigwait(&set_, &signal_number)); in Wait()
|
D | zip_archive_test.cc | 57 ssize_t bytes_read = TEMP_FAILURE_RETRY(read(fd, buf, kBufSize)); in TEST_F()
|
D | utils.cc | 121 int64_t n = TEMP_FAILURE_RETRY(read(file->Fd(), &buf[0], buf.size())); in ReadFileToString() 1363 pid_t got_pid = TEMP_FAILURE_RETRY(waitpid(pid, &status, 0)); in Exec()
|
D | dex_file.cc | 60 int n = TEMP_FAILURE_RETRY(read(fd.get(), magic, sizeof(*magic))); in OpenAndReadMagic()
|
D | class_linker.cc | 1354 if (TEMP_FAILURE_RETRY(unlink(cache_filename.c_str())) != 0) { in OpenOatFileFromDexLocation()
|
/art/runtime/gc/space/ |
D | image_space.cc | 109 if (TEMP_FAILURE_RETRY(unlink(cache_file.c_str())) != 0) { in RealPruneDexCache() 114 CHECK_EQ(0, TEMP_FAILURE_RETRY(closedir(cache_dir))) << "Unable to close directory."; in RealPruneDexCache()
|
/art/dex2oat/ |
D | dex2oat.cc | 673 int rc = TEMP_FAILURE_RETRY(pthread_cond_timedwait(&cond_, &mutex_, in Wait() 1503 int bytes_read = TEMP_FAILURE_RETRY(read(in->Fd(), buffer.get(), buffer_size)); in dex2oat()
|