/frameworks/base/cmds/idmap/ |
idmap.h | 11 #ifndef TEMP_FAILURE_RETRY 13 #define TEMP_FAILURE_RETRY(exp) ({ \
|
create.cpp | 34 int fd = TEMP_FAILURE_RETRY(open(path, O_WRONLY | O_CREAT | O_TRUNC, 0644)); 43 if (TEMP_FAILURE_RETRY(flock(fd, LOCK_EX | LOCK_NB)) != 0) { 64 ssize_t w = TEMP_FAILURE_RETRY(write(fd, data + size - bytesLeft, bytesLeft)); 92 ssize_t r = TEMP_FAILURE_RETRY(read(idmap_fd, buf + N - bytesLeft, bytesLeft)); 142 int idmap_fd = TEMP_FAILURE_RETRY(open(idmap_path, O_RDONLY));
|
/system/core/include/cutils/ |
fs.h | 24 * TEMP_FAILURE_RETRY is defined by some, but not all, versions of 28 #ifndef TEMP_FAILURE_RETRY 30 #define TEMP_FAILURE_RETRY(exp) ({ \
|
/art/runtime/base/unix_file/ |
fd_file.cc | 92 fd_ = TEMP_FAILURE_RETRY(open(path.c_str(), flags, mode)); 110 int result = TEMP_FAILURE_RETRY(close(fd_)); 130 int rc = TEMP_FAILURE_RETRY(fdatasync(fd_)); 132 int rc = TEMP_FAILURE_RETRY(fsync(fd_)); 140 int rc = TEMP_FAILURE_RETRY(pread64(fd_, buf, byte_count, offset)); 142 int rc = TEMP_FAILURE_RETRY(pread(fd_, buf, byte_count, offset)); 149 int rc = TEMP_FAILURE_RETRY(ftruncate64(fd_, new_length)); 151 int rc = TEMP_FAILURE_RETRY(ftruncate(fd_, new_length)); 159 int rc = TEMP_FAILURE_RETRY(fstat(fd_, &s)); 165 int rc = TEMP_FAILURE_RETRY(pwrite64(fd_, buf, byte_count, offset)) [all...] |
mapped_file.cc | 49 int result = TEMP_FAILURE_RETRY(fstat(Fd(), &st)); 71 int result = TEMP_FAILURE_RETRY(ftruncate64(Fd(), file_size)); 73 int result = TEMP_FAILURE_RETRY(ftruncate(Fd(), file_size)); 100 int result = TEMP_FAILURE_RETRY(munmap(mapped_file_, file_size_)); 144 int rc = IsMapped() ? TEMP_FAILURE_RETRY(msync(mapped_file_, file_size_, 0)) : FdFile::Flush();
|
/external/chromium_org/third_party/android_crazy_linker/src/src/ |
crazy_linker_system.cpp | 23 fd_ = TEMP_FAILURE_RETRY(::open(path, O_RDONLY)); 29 fd_ = TEMP_FAILURE_RETRY(::open(path, O_RDWR)); 34 return TEMP_FAILURE_RETRY(::read(fd_, buffer, buffer_size)); 52 TEMP_FAILURE_RETRY(close(fd_)); 74 if (TEMP_FAILURE_RETRY(stat(path, &st)) < 0) 82 if (TEMP_FAILURE_RETRY(stat(path, &st)) < 0)
|
/ndk/sources/android/crazy_linker/src/ |
crazy_linker_system.cpp | 23 fd_ = TEMP_FAILURE_RETRY(::open(path, O_RDONLY)); 29 fd_ = TEMP_FAILURE_RETRY(::open(path, O_RDWR)); 34 return TEMP_FAILURE_RETRY(::read(fd_, buffer, buffer_size)); 52 TEMP_FAILURE_RETRY(close(fd_)); 74 if (TEMP_FAILURE_RETRY(stat(path, &st)) < 0) 82 if (TEMP_FAILURE_RETRY(stat(path, &st)) < 0)
|
/system/core/include/utils/ |
Compat.h | 51 * TEMP_FAILURE_RETRY is defined by some, but not all, versions of 55 #ifndef TEMP_FAILURE_RETRY 57 #define TEMP_FAILURE_RETRY(exp) ({ \
|
/bionic/libc/private/ |
ScopedFd.h | 47 TEMP_FAILURE_RETRY(close(fd));
|
/bionic/tests/ |
sys_sendfile_test.cpp | 28 ASSERT_EQ(5, TEMP_FAILURE_RETRY(write(src_file.fd, "hello", 5))); 41 ASSERT_EQ(2, TEMP_FAILURE_RETRY(read(dst_file.fd, &buf, 2))); 47 ASSERT_EQ(5, TEMP_FAILURE_RETRY(write(src_file.fd, "hello", 5))); 60 ASSERT_EQ(2, TEMP_FAILURE_RETRY(read(dst_file.fd, &buf, 2)));
|
/art/runtime/base/ |
scoped_flock.cc | 38 int flock_result = TEMP_FAILURE_RETRY(flock(file_->Fd(), LOCK_EX)); 44 int fstat_result = TEMP_FAILURE_RETRY(fstat(file_->Fd(), &fstat_stat)); 50 int stat_result = TEMP_FAILURE_RETRY(stat(filename, &stat_stat)); 72 if (0 != TEMP_FAILURE_RETRY(flock(file_->Fd(), LOCK_EX))) { 93 int flock_result = TEMP_FAILURE_RETRY(flock(file_->Fd(), LOCK_UN));
|
/system/core/libcutils/ |
qtaguid.c | 50 resTrackFd = TEMP_FAILURE_RETRY(open("/dev/xt_qtaguid", O_RDONLY)); 52 TEMP_FAILURE_RETRY(fcntl(resTrackFd, F_SETFD, FD_CLOEXEC)); 66 fd = TEMP_FAILURE_RETRY(open(CTRL_PROCPATH, O_WRONLY)); 71 res = TEMP_FAILURE_RETRY(write(fd, cmd, strlen(cmd))); 88 param_fd = TEMP_FAILURE_RETRY(open(param_path, O_WRONLY)); 92 res = TEMP_FAILURE_RETRY(write(param_fd, value, strlen(value)));
|
debugger.c | 61 if (TEMP_FAILURE_RETRY(write(sock_fd, msg_ptr, msg_len)) != (ssize_t) msg_len) { 65 if (TEMP_FAILURE_RETRY(read(sock_fd, &ack, 1)) != 1) { 120 TEMP_FAILURE_RETRY(close(sock_fd)); 141 while ((n = TEMP_FAILURE_RETRY(read(sock_fd, buffer, sizeof(buffer)))) > 0) { 142 if (TEMP_FAILURE_RETRY(write(fd, buffer, n)) != n) { 147 TEMP_FAILURE_RETRY(close(sock_fd)); 164 ssize_t n = TEMP_FAILURE_RETRY(read(sock_fd, buffer, sizeof(buffer) - 1)); 176 TEMP_FAILURE_RETRY(close(sock_fd));
|
fs.c | 43 if (TEMP_FAILURE_RETRY(lstat(path, &sb)) == -1) { 64 if (TEMP_FAILURE_RETRY(mkdir(path, mode)) == -1) { 72 if (TEMP_FAILURE_RETRY(chmod(path, mode)) == -1) { 76 if (TEMP_FAILURE_RETRY(chown(path, uid, gid)) == -1) { 85 int fd = TEMP_FAILURE_RETRY(open(path, O_RDONLY)); 92 if (TEMP_FAILURE_RETRY(read(fd, buf, BUF_SIZE)) == -1) { 116 int fd = TEMP_FAILURE_RETRY(mkstemp(temp)); 128 if (TEMP_FAILURE_RETRY(write(fd, buf, len)) < len) {
|
/art/runtime/ |
signal_set.h | 49 int rc = TEMP_FAILURE_RETRY(sigwait(&set_, &signal_number));
|
/libcore/luni/src/main/native/ |
java_io_FileDescriptor.cpp | 29 return TEMP_FAILURE_RETRY(getsockopt(fd, SOL_SOCKET, SO_DEBUG, &option, &option_length)) == 0;
|
/libnativehelper/include/nativehelper/ |
ScopedFd.h | 21 #include "JNIHelp.h" // for TEMP_FAILURE_RETRY 47 TEMP_FAILURE_RETRY(close(fd));
|
/system/netd/client/ |
FwmarkClient.cpp | 49 if (TEMP_FAILURE_RETRY(connect(mChannel, reinterpret_cast<const sockaddr*>(&FWMARK_SERVER_PATH), 80 if (TEMP_FAILURE_RETRY(sendmsg(mChannel, &message, 0)) == -1) { 86 if (TEMP_FAILURE_RETRY(recv(mChannel, &error, sizeof(error), 0)) == -1) {
|
/system/core/fs_mgr/ |
fs_mgr_verity.c | 125 data_device = TEMP_FAILURE_RETRY(open(blk_device, O_RDONLY | O_CLOEXEC)); 131 if (TEMP_FAILURE_RETRY(lseek64(data_device, 1024, SEEK_SET)) < 0) { 133 TEMP_FAILURE_RETRY(close(data_device)); 137 if (TEMP_FAILURE_RETRY(read(data_device, &sb, sizeof(sb))) != sizeof(sb)) { 139 TEMP_FAILURE_RETRY(close(data_device)); 146 TEMP_FAILURE_RETRY(close(data_device)); 161 device = TEMP_FAILURE_RETRY(open(block_device, O_RDONLY | O_CLOEXEC)); 172 if (TEMP_FAILURE_RETRY(lseek64(device, device_length, SEEK_SET)) < 0) { 178 if (TEMP_FAILURE_RETRY(read(device, &magic_number, sizeof(magic_number))) != 199 if (TEMP_FAILURE_RETRY(read(device, &protocol_version [all...] |
/device/generic/goldfish/camera/ |
EmulatedCameraHotplugThread.cpp | 90 if (TEMP_FAILURE_RETRY(close(mInotifyFd)) == -1) { 135 TEMP_FAILURE_RETRY(close(mInotifyFd)); 149 int length = TEMP_FAILURE_RETRY( 215 TEMP_FAILURE_RETRY(close(mInotifyFd)); 230 int fd = TEMP_FAILURE_RETRY( 240 if (TEMP_FAILURE_RETRY(write(fd, "1\n", /*count*/2)) == -1) { 246 TEMP_FAILURE_RETRY(close(fd)); 340 int fd = TEMP_FAILURE_RETRY( 351 length = TEMP_FAILURE_RETRY( 367 TEMP_FAILURE_RETRY(close(fd)) [all...] |
/device/generic/goldfish/libqemu/ |
test_host_2.c | 35 #undef TEMP_FAILURE_RETRY 36 #define TEMP_FAILURE_RETRY(exp) ({ \ 43 #define TFR TEMP_FAILURE_RETRY
|
/external/elfutils/0.153/lib/ |
system.h | 88 TEMP_FAILURE_RETRY (pwrite (fd, buf, len, off)) 90 TEMP_FAILURE_RETRY (write (fd, buf, n)) 92 TEMP_FAILURE_RETRY (pread (fd, buf, len, off))
|
/hardware/libhardware/modules/vibrator/ |
vibrator.c | 33 fd = TEMP_FAILURE_RETRY(open(THE_DEVICE, O_RDWR)); 49 fd = TEMP_FAILURE_RETRY(open(THE_DEVICE, O_RDWR)); 55 written = TEMP_FAILURE_RETRY(write(fd, value, to_write));
|
/external/chromium_org/third_party/skia/src/core/ |
SkUtilsArm.cpp | 59 int fd = TEMP_FAILURE_RETRY(open("/proc/cpuinfo", O_RDONLY)); 69 int size = TEMP_FAILURE_RETRY(read(fd, buffer+1, sizeof(buffer)-2));
|
/external/elfutils/0.153/host-darwin-fixup/ |
AndroidFixup.h | 30 #ifndef TEMP_FAILURE_RETRY 31 #define TEMP_FAILURE_RETRY(exp) ({ \
|