HomeSort by relevance Sort by last modified time
    Searched refs:TEMP_FAILURE_RETRY (Results 1 - 25 of 381) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /system/vold/
BenchmarkGen.h 42 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(pread(t3433f17, buf, 14, 37276925))
    [all...]
  /system/core/libcutils/
android_get_control_file.cpp 43 #ifndef TEMP_FAILURE_RETRY
44 #define TEMP_FAILURE_RETRY(exp) (exp) // KISS implementation
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));
ashmem-dev.c 53 int fd = TEMP_FAILURE_RETRY(open(ASHMEM_DEVICE, O_RDWR));
58 ret = TEMP_FAILURE_RETRY(fstat(fd, &st));
92 if (TEMP_FAILURE_RETRY(fstat(fd, &st)) < 0) {
162 ret = TEMP_FAILURE_RETRY(ioctl(fd, ASHMEM_SET_NAME, buf));
168 ret = TEMP_FAILURE_RETRY(ioctl(fd, ASHMEM_SET_SIZE, size));
189 return TEMP_FAILURE_RETRY(ioctl(fd, ASHMEM_SET_PROT_MASK, prot));
201 return TEMP_FAILURE_RETRY(ioctl(fd, ASHMEM_PIN, &pin));
213 return TEMP_FAILURE_RETRY(ioctl(fd, ASHMEM_UNPIN, &pin));
223 return TEMP_FAILURE_RETRY(ioctl(fd, ASHMEM_GET_SIZE, NULL));
qtaguid.c 50 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)));
sockets_unix.cpp 34 #ifndef TEMP_FAILURE_RETRY
35 #define TEMP_FAILURE_RETRY(exp) (exp) // KISS implementation
104 int ret = TEMP_FAILURE_RETRY(getsockname(fd, (struct sockaddr *)&addr, &addrlen));
  /system/core/libsystem/include/system/
qemu_pipe.h 58 int fd = TEMP_FAILURE_RETRY(open("/dev/qemu_pipe", O_RDWR));
67 ssize_t ret = TEMP_FAILURE_RETRY(write(fd, pipeName, pipeNameLen + 1U));
89 ssize_t ret = TEMP_FAILURE_RETRY(write(fd, header, 4));
94 ret = TEMP_FAILURE_RETRY(write(fd, buff, len));
109 ssize_t ret = TEMP_FAILURE_RETRY(read(fd, header, 4));
125 ret = TEMP_FAILURE_RETRY(read(fd, buff, size));
  /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));
  /art/runtime/base/
logging.cc 133 TEMP_FAILURE_RETRY(write(STDERR_FILENO, program_name, strlen(program_name)));
134 TEMP_FAILURE_RETRY(write(STDERR_FILENO, " ", 1));
135 TEMP_FAILURE_RETRY(write(STDERR_FILENO, &kLogCharacters[static_cast<size_t>(log_severity)], 1));
136 TEMP_FAILURE_RETRY(write(STDERR_FILENO, " ", 1));
138 TEMP_FAILURE_RETRY(write(STDERR_FILENO, file, strlen(file)));
141 TEMP_FAILURE_RETRY(write(STDERR_FILENO, "] ", 2));
142 TEMP_FAILURE_RETRY(write(STDERR_FILENO, message, strlen(message)));
143 TEMP_FAILURE_RETRY(write(STDERR_FILENO, "\n", 1));
scoped_flock.cc 57 int flock_result = TEMP_FAILURE_RETRY(flock(file_->Fd(), operation));
67 int fstat_result = TEMP_FAILURE_RETRY(fstat(file_->Fd(), &fstat_stat));
73 int stat_result = TEMP_FAILURE_RETRY(stat(filename, &stat_stat));
108 if (0 != TEMP_FAILURE_RETRY(flock(file_->Fd(), LOCK_EX))) {
130 int flock_result = TEMP_FAILURE_RETRY(flock(file_->Fd(), LOCK_UN));
  /system/core/base/include/android-base/
macros.h 21 #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) \
  /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) ({ \
  /art/runtime/
signal_set.h 49 int rc = TEMP_FAILURE_RETRY(sigwait(&set_, &signal_number));
  /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/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 72 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) {
  /art/runtime/base/unix_file/
fd_file.cc 138 fd_ = TEMP_FAILURE_RETRY(open(path.c_str(), flags, mode));
176 int rc = TEMP_FAILURE_RETRY(fdatasync(fd_));
178 int rc = TEMP_FAILURE_RETRY(fsync(fd_));
186 int rc = TEMP_FAILURE_RETRY(pread64(fd_, buf, byte_count, offset));
188 int rc = TEMP_FAILURE_RETRY(pread(fd_, buf, byte_count, offset));
196 int rc = TEMP_FAILURE_RETRY(ftruncate64(fd_, new_length));
198 int rc = TEMP_FAILURE_RETRY(ftruncate(fd_, new_length));
206 int rc = TEMP_FAILURE_RETRY(fstat(fd_, &s));
213 int rc = TEMP_FAILURE_RETRY(pwrite64(fd_, buf, byte_count, offset));
215 int rc = TEMP_FAILURE_RETRY(pwrite(fd_, buf, byte_count, offset))
    [all...]
  /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));
  /frameworks/opt/net/wifi/libwifi_hal/
wifi_hal_common.cpp 92 fd = TEMP_FAILURE_RETRY(open(WIFI_DRIVER_STATE_CTRL_PARAM, O_WRONLY));
98 if (TEMP_FAILURE_RETRY(write(fd, state, len)) != len) {
212 fd = TEMP_FAILURE_RETRY(open(WIFI_DRIVER_FW_PATH_PARAM, O_WRONLY));
218 if (TEMP_FAILURE_RETRY(write(fd, fwpath, len)) != len) {
  /hardware/interfaces/bluetooth/1.0/default/
hci_protocol.cc 33 TEMP_FAILURE_RETRY(write(fd, data + transmitted_length, length));

Completed in 1319 milliseconds

1 2 3 4 5 6 7 8 91011>>