HomeSort by relevance Sort by last modified time
    Searched refs:TEMP_FAILURE_RETRY (Results 1 - 25 of 279) 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...]
  /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/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) ({ \
  /art/runtime/base/unix_file/
fd_file.cc 107 fd_ = TEMP_FAILURE_RETRY(open(path.c_str(), flags, mode));
146 int rc = TEMP_FAILURE_RETRY(fdatasync(fd_));
148 int rc = TEMP_FAILURE_RETRY(fsync(fd_));
156 int rc = TEMP_FAILURE_RETRY(pread64(fd_, buf, byte_count, offset));
158 int rc = TEMP_FAILURE_RETRY(pread(fd_, buf, byte_count, offset));
166 int rc = TEMP_FAILURE_RETRY(ftruncate64(fd_, new_length));
168 int rc = TEMP_FAILURE_RETRY(ftruncate(fd_, new_length));
176 int rc = TEMP_FAILURE_RETRY(fstat(fd_, &s));
183 int rc = TEMP_FAILURE_RETRY(pwrite64(fd_, buf, byte_count, offset));
185 int rc = TEMP_FAILURE_RETRY(pwrite(fd_, buf, byte_count, offset))
    [all...]
  /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)));
  /system/core/libcutils/
ashmem-dev.c 54 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) {
156 ret = TEMP_FAILURE_RETRY(ioctl(fd, ASHMEM_SET_NAME, buf));
162 ret = TEMP_FAILURE_RETRY(ioctl(fd, ASHMEM_SET_SIZE, size));
183 return TEMP_FAILURE_RETRY(ioctl(fd, ASHMEM_SET_PROT_MASK, prot));
195 return TEMP_FAILURE_RETRY(ioctl(fd, ASHMEM_PIN, &pin));
207 return TEMP_FAILURE_RETRY(ioctl(fd, ASHMEM_UNPIN, &pin));
217 return TEMP_FAILURE_RETRY(ioctl(fd, ASHMEM_GET_SIZE, NULL));
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)));
89 param_fd = TEMP_FAILURE_RETRY(open(param_path, O_WRONLY));
93 res = TEMP_FAILURE_RETRY(write(param_fd, value, strlen(value)));
debugger.c 34 if (TEMP_FAILURE_RETRY(write(sock_fd, msg_ptr, msg_len)) != (ssize_t) msg_len) {
38 if (TEMP_FAILURE_RETRY(read(sock_fd, &ack, 1)) != 1) {
92 while ((n = TEMP_FAILURE_RETRY(read(sock_fd, buffer, sizeof(buffer)))) > 0) {
93 if (TEMP_FAILURE_RETRY(write(fd, buffer, n)) != n) {
115 ssize_t n = TEMP_FAILURE_RETRY(read(sock_fd, buffer, sizeof(buffer) - 1));
fs.c 45 if (TEMP_FAILURE_RETRY(lstat(path, &sb)) == -1) {
81 ? TEMP_FAILURE_RETRY(mkdir(path, mode))
82 : TEMP_FAILURE_RETRY(open(path, O_CREAT | O_CLOEXEC | O_NOFOLLOW | O_RDONLY));
96 if (TEMP_FAILURE_RETRY(chmod(path, mode)) == -1) {
100 if (TEMP_FAILURE_RETRY(chown(path, uid, gid)) == -1) {
121 int fd = TEMP_FAILURE_RETRY(open(path, O_RDONLY));
128 if (TEMP_FAILURE_RETRY(read(fd, buf, BUF_SIZE)) == -1) {
152 int fd = TEMP_FAILURE_RETRY(mkstemp(temp));
164 if (TEMP_FAILURE_RETRY(write(fd, buf, len)) < len) {
  /system/core/include/utils/
Compat.h 68 * TEMP_FAILURE_RETRY is defined by some, but not all, versions of
72 #ifndef TEMP_FAILURE_RETRY
74 #define TEMP_FAILURE_RETRY(exp) ({ \
  /art/runtime/
signal_set.h 49 int rc = TEMP_FAILURE_RETRY(sigwait(&set_, &signal_number));
  /system/core/libsuspend/
autosuspend_autosleep.c 43 ret = TEMP_FAILURE_RETRY(write(autosleep_fd, sleep_state, strlen(sleep_state)));
65 ret = TEMP_FAILURE_RETRY(write(autosleep_fd, on_state, strlen(on_state)));
89 autosleep_fd = TEMP_FAILURE_RETRY(open(SYS_POWER_AUTOSLEEP, O_WRONLY));
autosuspend_earlysuspend.c 52 int fd = TEMP_FAILURE_RETRY(open(EARLYSUSPEND_WAIT_FOR_FB_WAKE, O_RDONLY, 0));
54 err = TEMP_FAILURE_RETRY(read(fd, &buf, 1));
65 int fd = TEMP_FAILURE_RETRY(open(EARLYSUSPEND_WAIT_FOR_FB_SLEEP, O_RDONLY, 0));
67 err = TEMP_FAILURE_RETRY(read(fd, &buf, 1));
133 ret = TEMP_FAILURE_RETRY(write(sPowerStatefd, pwr_state_on, strlen(pwr_state_on)));
194 sPowerStatefd = TEMP_FAILURE_RETRY(open(EARLYSUSPEND_SYS_POWER_STATE, O_RDWR));
202 ret = TEMP_FAILURE_RETRY(write(sPowerStatefd, "on", 2));
  /system/netd/client/
FwmarkClient.cpp 53 if (TEMP_FAILURE_RETRY(connect(mChannel, reinterpret_cast<const sockaddr*>(&FWMARK_SERVER_PATH),
86 if (TEMP_FAILURE_RETRY(sendmsg(mChannel, &message, 0)) == -1) {
92 if (TEMP_FAILURE_RETRY(recv(mChannel, &error, sizeof(error), 0)) == -1) {
  /art/runtime/base/
scoped_flock.cc 43 int flock_result = TEMP_FAILURE_RETRY(flock(file_->Fd(), operation));
53 int fstat_result = TEMP_FAILURE_RETRY(fstat(file_->Fd(), &fstat_stat));
59 int stat_result = TEMP_FAILURE_RETRY(stat(filename, &stat_stat));
93 if (0 != TEMP_FAILURE_RETRY(flock(file_->Fd(), LOCK_EX))) {
115 int flock_result = TEMP_FAILURE_RETRY(flock(file_->Fd(), LOCK_UN));
  /system/core/base/
file.cpp 26 #include "android-base/macros.h" // For TEMP_FAILURE_RETRY on Darwin.
43 while ((n = TEMP_FAILURE_RETRY(read(fd, &buf[0], sizeof(buf)))) > 0) {
52 int fd = TEMP_FAILURE_RETRY(open(path.c_str(), O_RDONLY | O_CLOEXEC | O_NOFOLLOW | O_BINARY));
65 ssize_t n = TEMP_FAILURE_RETRY(write(fd, p, left));
87 int fd = TEMP_FAILURE_RETRY(open(path.c_str(), flags, mode));
114 int fd = TEMP_FAILURE_RETRY(open(path.c_str(), flags, DEFFILEMODE));
128 ssize_t n = TEMP_FAILURE_RETRY(read(fd, p, remaining));
140 ssize_t n = TEMP_FAILURE_RETRY(write(fd, p, remaining));
  /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
  /hardware/libhardware/modules/vibrator/
vibrator.c 34 fd = TEMP_FAILURE_RETRY(open(THE_DEVICE, O_RDWR));
50 fd = TEMP_FAILURE_RETRY(open(THE_DEVICE, O_RDWR));
56 written = TEMP_FAILURE_RETRY(write(fd, value, to_write));
  /cts/tests/aslr/src/
AslrMallocTest.cpp 82 ASSERT_TRUE(TEMP_FAILURE_RETRY(dup2(fds[1], STDOUT_FILENO)) != -1);
85 TEMP_FAILURE_RETRY(close(fd));
95 TEMP_FAILURE_RETRY(close(fds[1]));
99 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));
  /system/core/debuggerd/
signal_sender.cpp 89 int rc = TEMP_FAILURE_RETRY(read(sfd[0], &msg, sizeof(msg)));
110 if (TEMP_FAILURE_RETRY(write(sfd[0], &err, sizeof(err))) < 0) {
156 if (TEMP_FAILURE_RETRY(write(signal_fd, &msg, sizeof(msg))) < 0) {
163 ssize_t rc = TEMP_FAILURE_RETRY(read(signal_fd, &response, sizeof(response)));
  /system/core/libmemunreachable/
LeakPipe.h 106 ssize_t ret = TEMP_FAILURE_RETRY(write(fd_, &value, sizeof(T)));
125 ssize_t ret = TEMP_FAILURE_RETRY(write(fd_, vector.data(), size));
144 ssize_t ret = TEMP_FAILURE_RETRY(read(fd_, reinterpret_cast<void*>(value), sizeof(T)));
167 ssize_t ret = TEMP_FAILURE_RETRY(read(fd_, ptr, size));
  /system/extras/memory_replay/tests/
NativeInfoTest.cpp 58 ASSERT_TRUE(TEMP_FAILURE_RETRY(
119 ASSERT_TRUE(TEMP_FAILURE_RETRY(
180 ASSERT_TRUE(TEMP_FAILURE_RETRY(
257 ASSERT_TRUE(TEMP_FAILURE_RETRY(

Completed in 508 milliseconds

1 2 3 4 5 6 7 8 91011>>