/system/vold/ |
BenchmarkGen.h | 44 int t3433f17 = TEMP_FAILURE_RETRY(open("file0", O_RDONLY|O_LARGEFILE)); 45 TEMP_FAILURE_RETRY(lseek(t3433f17, 0, SEEK_END)); 46 TEMP_FAILURE_RETRY(lseek(t3433f17, 38891199, SEEK_SET)); 47 TEMP_FAILURE_RETRY(read(t3433f17, buf, 65557)); 48 TEMP_FAILURE_RETRY(pread(t3433f17, buf, 769726, 38187008)); // mmap2 49 TEMP_FAILURE_RETRY(pread(t3433f17, buf, 30, 278721)); 50 TEMP_FAILURE_RETRY(pread(t3433f17, buf, 19, 278751)); 51 TEMP_FAILURE_RETRY(pread(t3433f17, buf, 25119, 278528)); // mmap2 52 TEMP_FAILURE_RETRY(pread(t3433f17, buf, 30, 37276895)); 53 TEMP_FAILURE_RETRY(pread(t3433f17, buf, 14, 37276925)) [all...] |
/bionic/libc/bionic/ |
getentropy.cpp | 35 int fd = TEMP_FAILURE_RETRY(open("/dev/urandom", O_RDONLY | O_NOFOLLOW | O_CLOEXEC, 0)); 40 ssize_t count = TEMP_FAILURE_RETRY(read(fd, static_cast<char*>(buffer) + collected, 64 long count = TEMP_FAILURE_RETRY(getrandom(static_cast<char*>(buffer) + collected,
|
/system/core/libcutils/ |
android_get_control_file.cpp | 44 #ifndef TEMP_FAILURE_RETRY 45 #define TEMP_FAILURE_RETRY(exp) (exp) // KISS implementation 77 if (TEMP_FAILURE_RETRY(fcntl(fd, F_GETFD)) < 0) return -1; 79 if (TEMP_FAILURE_RETRY(fcntl(fd, F_GETFL)) < 0) return -1; 82 if (TEMP_FAILURE_RETRY(fstat(fd, &s)) < 0) return -1; 104 ssize_t ret = TEMP_FAILURE_RETRY(readlink(proc, buf, len + 1));
|
ashmem-dev.cpp | 54 int fd = TEMP_FAILURE_RETRY(open(ASHMEM_DEVICE, O_RDWR | O_CLOEXEC)); 59 ret = TEMP_FAILURE_RETRY(fstat(fd, &st)); 93 if (TEMP_FAILURE_RETRY(fstat(fd, &st)) < 0) { 163 ret = TEMP_FAILURE_RETRY(ioctl(fd, ASHMEM_SET_NAME, buf)); 169 ret = TEMP_FAILURE_RETRY(ioctl(fd, ASHMEM_SET_SIZE, size)); 190 return TEMP_FAILURE_RETRY(ioctl(fd, ASHMEM_SET_PROT_MASK, prot)); 203 return TEMP_FAILURE_RETRY(ioctl(fd, ASHMEM_PIN, &pin)); 216 return TEMP_FAILURE_RETRY(ioctl(fd, ASHMEM_UNPIN, &pin)); 226 return TEMP_FAILURE_RETRY(ioctl(fd, ASHMEM_GET_SIZE, NULL));
|
sockets_unix.cpp | 35 #ifndef TEMP_FAILURE_RETRY 36 #define TEMP_FAILURE_RETRY(exp) (exp) // KISS implementation 105 int ret = TEMP_FAILURE_RETRY(getsockname(fd, (struct sockaddr *)&addr, &addrlen));
|
/frameworks/base/cmds/idmap/ |
idmap.h | 13 #ifndef TEMP_FAILURE_RETRY 15 #define TEMP_FAILURE_RETRY(exp) ({ \
|
/libcore/luni/src/main/native/ |
Portability.h | 39 // TEMP_FAILURE_RETRY so the return value here gets truncated for 41 #undef TEMP_FAILURE_RETRY 42 #define TEMP_FAILURE_RETRY(exp) ({ \
|
/system/core/libcutils/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) ({ \
|
/system/core/liblog/ |
log_portability.h | 72 #ifndef TEMP_FAILURE_RETRY 74 #define TEMP_FAILURE_RETRY(exp) \
|
/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)));
|
/device/generic/goldfish/include/ |
qemu_pipe.h | 37 ssize_t n = TEMP_FAILURE_RETRY(read(fd, p, remaining)); 49 ssize_t n = TEMP_FAILURE_RETRY(write(fd, p, remaining)); 93 fd = TEMP_FAILURE_RETRY(open("/dev/qemu_pipe", O_RDWR)); 95 fd = TEMP_FAILURE_RETRY(open("/dev/goldfish_pipe", O_RDWR));
|
/system/core/libunwindstack/tests/ |
GenGnuDebugdata.cpp | 54 TEMP_FAILURE_RETRY(write(fd, ehdr, sizeof(Ehdr))); 60 TEMP_FAILURE_RETRY(write(fd, &shdr, sizeof(Shdr))); 70 TEMP_FAILURE_RETRY(write(fd, &shdr, sizeof(Shdr))); 78 TEMP_FAILURE_RETRY(write(fd, &shdr, sizeof(Shdr))); 83 TEMP_FAILURE_RETRY(write(fd, name.data(), name.size() + 1)); 85 TEMP_FAILURE_RETRY(write(fd, name.data(), name.size() + 1)); 87 TEMP_FAILURE_RETRY(write(fd, name.data(), name.size() + 1)); 91 int elf32_fd = TEMP_FAILURE_RETRY(open("elf32", O_RDWR | O_CREAT | O_TRUNC | O_CLOEXEC, 0644)); 97 int elf64_fd = TEMP_FAILURE_RETRY(open("elf64", O_RDWR | O_CREAT | O_TRUNC | O_CLOEXEC, 0644));
|
/art/libartbase/base/ |
logging.cc | 129 TEMP_FAILURE_RETRY(write(STDERR_FILENO, program_name, strlen(program_name))); 130 TEMP_FAILURE_RETRY(write(STDERR_FILENO, " ", 1)); 131 TEMP_FAILURE_RETRY(write(STDERR_FILENO, &kLogCharacters[static_cast<size_t>(log_severity)], 1)); 132 TEMP_FAILURE_RETRY(write(STDERR_FILENO, " ", 1)); 134 TEMP_FAILURE_RETRY(write(STDERR_FILENO, file, strlen(file))); 137 TEMP_FAILURE_RETRY(write(STDERR_FILENO, "] ", 2)); 138 TEMP_FAILURE_RETRY(write(STDERR_FILENO, message, strlen(message))); 139 TEMP_FAILURE_RETRY(write(STDERR_FILENO, "\n", 1));
|
scoped_flock.cc | 50 int flock_result = TEMP_FAILURE_RETRY(flock(file->Fd(), operation)); 60 int fstat_result = TEMP_FAILURE_RETRY(fstat(file->Fd(), &fstat_stat)); 66 int stat_result = TEMP_FAILURE_RETRY(stat(filename, &stat_stat)); 107 if (0 != TEMP_FAILURE_RETRY(flock(locked_file->Fd(), LOCK_EX))) { 118 int flock_result = TEMP_FAILURE_RETRY(flock(this->Fd(), LOCK_UN));
|
/device/google/wahoo/folio_daemon/ |
main.cpp | 53 uinputFd = TEMP_FAILURE_RETRY(open("/dev/uinput", O_WRONLY | O_NONBLOCK)); 59 err = TEMP_FAILURE_RETRY(ioctl(uinputFd, UI_SET_EVBIT, EV_SW)) 60 | TEMP_FAILURE_RETRY(ioctl(uinputFd, UI_SET_EVBIT, EV_SYN)) 61 | TEMP_FAILURE_RETRY(ioctl(uinputFd, UI_SET_SWBIT, SW_LID)); 74 err = TEMP_FAILURE_RETRY(write(uinputFd, &uidev, sizeof (uidev))); 80 err = TEMP_FAILURE_RETRY(ioctl(uinputFd, UI_DEV_CREATE)); 143 err = TEMP_FAILURE_RETRY(write(uinputFd, &event, sizeof (event))); 153 err = TEMP_FAILURE_RETRY(write(uinputFd, &event, sizeof (event)));
|
/system/core/libutils/include/utils/ |
Compat.h | 67 * TEMP_FAILURE_RETRY is defined by some, but not all, versions of 71 #ifndef TEMP_FAILURE_RETRY 73 #define TEMP_FAILURE_RETRY(exp) ({ \
|
/device/generic/goldfish-opengl/system/OpenglSystemCommon/ |
qemu_pipe.h | 37 ssize_t n = TEMP_FAILURE_RETRY(write(fd, p, remaining)); 81 fd = TEMP_FAILURE_RETRY(open("/dev/qemu_pipe", O_RDWR)); 83 fd = TEMP_FAILURE_RETRY(open("/dev/goldfish_pipe", O_RDWR));
|
/device/google/cuttlefish_common/common/libs/fs/ |
shared_fd.h | 229 int rval = TEMP_FAILURE_RETRY(dup(fd_)); 236 int rval = TEMP_FAILURE_RETRY(epoll_ctl(fd_, op, new_fd->fd_, event)); 243 int rval = TEMP_FAILURE_RETRY(epoll_wait(fd_, events, maxevents, timeout)); 250 int rval = TEMP_FAILURE_RETRY(fchown(fd_, owner, group)); 257 int rval = TEMP_FAILURE_RETRY(fcntl(fd_, command, value)); 264 int rval = TEMP_FAILURE_RETRY(fstat(fd_, buf)); 284 int rval = TEMP_FAILURE_RETRY(ioctl(fd_, request, val)); 305 off_t rval = TEMP_FAILURE_RETRY(lseek(fd_, offset, whence)); 319 ssize_t rval = TEMP_FAILURE_RETRY(pread(fd_, buf, count, offset)); 326 ssize_t rval = TEMP_FAILURE_RETRY(recv(fd_, buf, len, flags)) [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
|
/system/netd/client/ |
FwmarkClient.cpp | 81 if (TEMP_FAILURE_RETRY(connect(mChannel, reinterpret_cast<const sockaddr*>(&FWMARK_SERVER_PATH), 116 if (TEMP_FAILURE_RETRY(sendmsg(mChannel, &message, 0)) == -1) { 122 if (TEMP_FAILURE_RETRY(recv(mChannel, &error, sizeof(error), 0)) == -1) {
|
/art/libartbase/base/unix_file/ |
fd_file.cc | 140 fd_ = TEMP_FAILURE_RETRY(open(path.c_str(), flags, mode)); 184 int rc = TEMP_FAILURE_RETRY(fdatasync(fd_)); 186 int rc = TEMP_FAILURE_RETRY(fsync(fd_)); 200 int rc = TEMP_FAILURE_RETRY(pread64(fd_, buf, byte_count, offset)); 202 int rc = TEMP_FAILURE_RETRY(pread(fd_, buf, byte_count, offset)); 210 int rc = TEMP_FAILURE_RETRY(ftruncate64(fd_, new_length)); 212 int rc = TEMP_FAILURE_RETRY(ftruncate(fd_, new_length)); 220 int rc = TEMP_FAILURE_RETRY(fstat(fd_, &s)); 227 int rc = TEMP_FAILURE_RETRY(pwrite64(fd_, buf, byte_count, offset)); 229 int rc = TEMP_FAILURE_RETRY(pwrite(fd_, buf, byte_count, offset)) [all...] |
/art/runtime/ |
signal_set.h | 49 int rc = TEMP_FAILURE_RETRY(sigwait(&set_, &signal_number));
|
/cts/tests/aslr/src/ |
AslrMallocTest.cpp | 79 ASSERT_TRUE(TEMP_FAILURE_RETRY(dup2(fds[1], STDOUT_FILENO)) != -1); 82 TEMP_FAILURE_RETRY(close(fd)); 92 TEMP_FAILURE_RETRY(close(fds[1])); 96 TEMP_FAILURE_RETRY(close(fds[0]));
|
/external/bsdiff/ |
file.cc | 18 // TEMP_FAILURE_RETRY is defined by some versions of <unistd.h>. 19 #ifndef TEMP_FAILURE_RETRY 28 int fd = TEMP_FAILURE_RETRY(open(pathname, flags, 0644)); 43 ssize_t rc = TEMP_FAILURE_RETRY(read(fd_, buf, count)); 55 ssize_t rc = TEMP_FAILURE_RETRY(write(fd_, buf, count));
|
/hardware/interfaces/bluetooth/1.0/default/ |
hci_protocol.cc | 35 TEMP_FAILURE_RETRY(write(fd, data + transmitted_length, length));
|