Searched refs:TEMP_FAILURE_RETRY (Results 1 - 25 of 155) sorted by relevance

1234567

/system/vold/
H A DBenchmarkGen.h42 int t3433f17 = TEMP_FAILURE_RETRY(open("file0", O_RDONLY|O_LARGEFILE));
43 TEMP_FAILURE_RETRY(lseek(t3433f17, 0, SEEK_END));
44 TEMP_FAILURE_RETRY(lseek(t3433f17, 38891199, SEEK_SET));
45 TEMP_FAILURE_RETRY(read(t3433f17, buf, 65557));
46 TEMP_FAILURE_RETRY(pread(t3433f17, buf, 769726, 38187008)); // mmap2
47 TEMP_FAILURE_RETRY(pread(t3433f17, buf, 30, 278721));
48 TEMP_FAILURE_RETRY(pread(t3433f17, buf, 19, 278751));
49 TEMP_FAILURE_RETRY(pread(t3433f17, buf, 25119, 278528)); // mmap2
50 TEMP_FAILURE_RETRY(pread(t3433f17, buf, 30, 37276895));
51 TEMP_FAILURE_RETRY(prea
[all...]
/system/core/libcutils/
H A Dandroid_get_control_file.cpp43 #ifndef TEMP_FAILURE_RETRY
44 #define TEMP_FAILURE_RETRY(exp) (exp) // KISS implementation macro
76 if (TEMP_FAILURE_RETRY(fcntl(fd, F_GETFD)) < 0) return -1;
78 if (TEMP_FAILURE_RETRY(fcntl(fd, F_GETFL)) < 0) return -1;
81 if (TEMP_FAILURE_RETRY(fstat(fd, &s)) < 0) return -1;
103 ssize_t ret = TEMP_FAILURE_RETRY(readlink(proc, buf, len + 1));
H A Dashmem-dev.c54 int fd = TEMP_FAILURE_RETRY(open(ASHMEM_DEVICE, O_RDWR));
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));
202 return TEMP_FAILURE_RETRY(ioctl(fd, ASHMEM_PIN, &pin));
214 return TEMP_FAILURE_RETRY(ioctl(fd, ASHMEM_UNPIN, &pin));
224 return TEMP_FAILURE_RETRY(ioctl(fd, ASHMEM_GET_SIZE, NULL));
H A Dqtaguid.c50 resTrackFd = TEMP_FAILURE_RETRY(open("/dev/xt_qtaguid", O_RDONLY | O_CLOEXEC));
63 fd = TEMP_FAILURE_RETRY(open(CTRL_PROCPATH, O_WRONLY | O_CLOEXEC));
68 res = TEMP_FAILURE_RETRY(write(fd, cmd, strlen(cmd)));
86 param_fd = TEMP_FAILURE_RETRY(open(param_path, O_WRONLY | O_CLOEXEC));
90 res = TEMP_FAILURE_RETRY(write(param_fd, value, strlen(value)));
H A Dsockets_unix.cpp34 #ifndef TEMP_FAILURE_RETRY
35 #define TEMP_FAILURE_RETRY(exp) (exp) // KISS implementation macro
104 int ret = TEMP_FAILURE_RETRY(getsockname(fd, (struct sockaddr *)&addr, &addrlen));
H A Dfs.c46 if (TEMP_FAILURE_RETRY(lstat(path, &sb)) == -1) {
82 ? TEMP_FAILURE_RETRY(mkdir(path, mode))
83 : TEMP_FAILURE_RETRY(open(path, O_CREAT | O_CLOEXEC | O_NOFOLLOW | O_RDONLY, 0644));
97 if (TEMP_FAILURE_RETRY(chmod(path, mode)) == -1) {
101 if (TEMP_FAILURE_RETRY(chown(path, uid, gid)) == -1) {
122 int fd = TEMP_FAILURE_RETRY(open(path, O_RDONLY));
129 if (TEMP_FAILURE_RETRY(read(fd, buf, BUF_SIZE)) == -1) {
153 int fd = TEMP_FAILURE_RETRY(mkstemp(temp));
165 if (TEMP_FAILURE_RETRY(write(fd, buf, len)) < len) {
H A Dklog.cpp41 return TEMP_FAILURE_RETRY(open(kmsg_device, O_WRONLY | O_CLOEXEC));
51 TEMP_FAILURE_RETRY(writev(klog_fd, iov, iov_count));
/system/core/include/cutils/
H A Dfs.h24 * TEMP_FAILURE_RETRY is defined by some, but not all, versions of
28 #ifndef TEMP_FAILURE_RETRY
30 #define TEMP_FAILURE_RETRY(exp) ({ \ macro
/system/core/libcutils/include/cutils/
H A Dfs.h24 * TEMP_FAILURE_RETRY is defined by some, but not all, versions of
28 #ifndef TEMP_FAILURE_RETRY
30 #define TEMP_FAILURE_RETRY(exp) ({ \ macro
/system/core/libcutils/include_vndk/cutils/
H A Dfs.h24 * TEMP_FAILURE_RETRY is defined by some, but not all, versions of
28 #ifndef TEMP_FAILURE_RETRY
30 #define TEMP_FAILURE_RETRY(exp) ({ \ macro
/system/core/liblog/
H A Dlog_portability.h72 #ifndef TEMP_FAILURE_RETRY
74 #define TEMP_FAILURE_RETRY(exp) \ macro
/system/core/libunwindstack/tests/
H A DGenGnuDebugdata.cpp54 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));
/system/core/include/utils/
H A DCompat.h67 * TEMP_FAILURE_RETRY is defined by some, but not all, versions of
71 #ifndef TEMP_FAILURE_RETRY
73 #define TEMP_FAILURE_RETRY(exp) ({ \ macro
/system/core/libutils/include/utils/
H A DCompat.h67 * TEMP_FAILURE_RETRY is defined by some, but not all, versions of
71 #ifndef TEMP_FAILURE_RETRY
73 #define TEMP_FAILURE_RETRY(exp) ({ \ macro
/system/core/libunwindstack/
H A DMaps.cpp159 android::base::unique_fd fd(TEMP_FAILURE_RETRY(open(file_.c_str(), O_RDONLY)));
167 ssize_t bytes = TEMP_FAILURE_RETRY(read(fd, &map_info.start, sizeof(map_info.start)));
174 bytes = TEMP_FAILURE_RETRY(read(fd, &map_info.end, sizeof(map_info.end)));
178 bytes = TEMP_FAILURE_RETRY(read(fd, &map_info.offset, sizeof(map_info.offset)));
182 bytes = TEMP_FAILURE_RETRY(read(fd, &map_info.flags, sizeof(map_info.flags)));
187 bytes = TEMP_FAILURE_RETRY(read(fd, &len, sizeof(len)));
193 bytes = TEMP_FAILURE_RETRY(read(fd, name.data(), len));
/system/netd/client/
H A DFwmarkClient.cpp72 if (TEMP_FAILURE_RETRY(connect(mChannel, reinterpret_cast<const sockaddr*>(&FWMARK_SERVER_PATH),
105 if (TEMP_FAILURE_RETRY(sendmsg(mChannel, &message, 0)) == -1) {
111 if (TEMP_FAILURE_RETRY(recv(mChannel, &error, sizeof(error), 0)) == -1) {
/system/core/debuggerd/
H A Dsignal_sender.cpp92 int rc = TEMP_FAILURE_RETRY(read(sfd[0], &msg, sizeof(msg)));
113 if (TEMP_FAILURE_RETRY(write(sfd[0], &err, sizeof(err))) < 0) {
159 if (TEMP_FAILURE_RETRY(write(signal_fd, &msg, sizeof(msg))) < 0) {
166 ssize_t rc = TEMP_FAILURE_RETRY(read(signal_fd, &response, sizeof(response)));
/system/extras/memory_replay/tests/
H A DNativeInfoTest.cpp58 ASSERT_TRUE(TEMP_FAILURE_RETRY(
119 ASSERT_TRUE(TEMP_FAILURE_RETRY(
180 ASSERT_TRUE(TEMP_FAILURE_RETRY(
257 ASSERT_TRUE(TEMP_FAILURE_RETRY(
/system/security/keystore/
H A Dentropy.cpp39 mRandom = TEMP_FAILURE_RETRY(::open(randomDevice, O_RDONLY));
/system/bt/vendor_libs/linux/interface/
H A Dh4_protocol.cc43 ret = TEMP_FAILURE_RETRY(writev(uart_fd_, iov, 2));
97 size_t bytes_read = TEMP_FAILURE_RETRY(read(fd, tpkt.data(), max_plen));
/system/core/base/include/android-base/
H A Dmacros.h21 #include <unistd.h> // for TEMP_FAILURE_RETRY
23 // bionic and glibc both have TEMP_FAILURE_RETRY, but eg Mac OS' libc doesn't.
24 #ifndef TEMP_FAILURE_RETRY
25 #define TEMP_FAILURE_RETRY(exp) \ macro
/system/core/debuggerd/tombstoned/
H A Dtombstoned_client.cpp49 if (TEMP_FAILURE_RETRY(write(sockfd, &packet, sizeof(packet))) != sizeof(packet)) {
86 if (TEMP_FAILURE_RETRY(write(tombstoned_socket, &packet, sizeof(packet))) != sizeof(packet)) {
/system/extras/squashfs_utils/
H A Dsquashfs_utils.c66 data_device = TEMP_FAILURE_RETRY(open(blk_device, O_RDONLY | O_CLOEXEC));
72 if (TEMP_FAILURE_RETRY(read(data_device, &sb, sizeof(sb)))
/system/core/libsuspend/
H A Dautosuspend_wakeup_count.c72 wakeup_count_len = TEMP_FAILURE_RETRY(read(wakeup_count_fd, wakeup_count,
94 ret = TEMP_FAILURE_RETRY(write(wakeup_count_fd, wakeup_count, wakeup_count_len));
100 ret = TEMP_FAILURE_RETRY(write(state_fd, sleep_state, strlen(sleep_state)));
177 state_fd = TEMP_FAILURE_RETRY(open(SYS_POWER_STATE, O_RDWR));
184 wakeup_count_fd = TEMP_FAILURE_RETRY(open(SYS_POWER_WAKEUP_COUNT, O_RDWR));
/system/core/base/
H A Dfile.cpp32 #include "android-base/macros.h" // For TEMP_FAILURE_RETRY on Darwin.
64 while ((n = TEMP_FAILURE_RETRY(read(fd, &buf[0], sizeof(buf)))) > 0) {
74 android::base::unique_fd fd(TEMP_FAILURE_RETRY(open(path.c_str(), flags)));
85 ssize_t n = TEMP_FAILURE_RETRY(write(fd, p, left));
109 android::base::unique_fd fd(TEMP_FAILURE_RETRY(open(path.c_str(), flags, mode)));
137 android::base::unique_fd fd(TEMP_FAILURE_RETRY(open(path.c_str(), flags, 0666)));
148 ssize_t n = TEMP_FAILURE_RETRY(read(fd, p, remaining));
160 ssize_t n = TEMP_FAILURE_RETRY(write(fd, p, remaining));

Completed in 373 milliseconds

1234567