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

1 2 3 4 5 6

  /system/core/libcutils/
debugger.c 35 if (TEMP_FAILURE_RETRY(write(s, &msg, sizeof(msg))) != sizeof(msg)) {
39 if (TEMP_FAILURE_RETRY(read(s, &ack, 1)) != 1) {
43 ssize_t n = TEMP_FAILURE_RETRY(read(s, pathbuf, pathlen - 1));
52 TEMP_FAILURE_RETRY(close(s));
68 if (TEMP_FAILURE_RETRY(write(s, &msg, sizeof(msg))) != sizeof(msg)) {
72 if (TEMP_FAILURE_RETRY(read(s, &ack, 1)) != 1) {
77 while ((n = TEMP_FAILURE_RETRY(read(s, buffer, sizeof(buffer)))) > 0) {
78 if (TEMP_FAILURE_RETRY(write(fd, buffer, n)) != n) {
85 TEMP_FAILURE_RETRY(close(s));
qtaguid.c 49 resTrackFd = TEMP_FAILURE_RETRY(open("/dev/xt_qtaguid", O_RDONLY));
51 TEMP_FAILURE_RETRY(fcntl(resTrackFd, F_SETFD, FD_CLOEXEC));
65 fd = TEMP_FAILURE_RETRY(open(CTRL_PROCPATH, O_WRONLY));
70 res = TEMP_FAILURE_RETRY(write(fd, cmd, strlen(cmd)));
87 param_fd = TEMP_FAILURE_RETRY(open(param_path, O_WRONLY));
91 res = TEMP_FAILURE_RETRY(write(param_fd, value, strlen(value)));
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) {
  /system/core/include/cutils/
fs.h 23 * TEMP_FAILURE_RETRY is defined by some, but not all, versions of
27 #ifndef TEMP_FAILURE_RETRY
29 #define TEMP_FAILURE_RETRY(exp) ({ \
  /art/runtime/base/unix_file/
fd_file.cc 52 fd_ = TEMP_FAILURE_RETRY(open(path.c_str(), flags, mode));
61 int result = TEMP_FAILURE_RETRY(close(fd_));
72 int rc = TEMP_FAILURE_RETRY(fdatasync(fd_));
77 int rc = TEMP_FAILURE_RETRY(pread64(fd_, buf, byte_count, offset));
82 int rc = TEMP_FAILURE_RETRY(ftruncate64(fd_, new_length));
88 int rc = TEMP_FAILURE_RETRY(fstat(fd_, &s));
93 int rc = TEMP_FAILURE_RETRY(pwrite64(fd_, buf, byte_count, offset));
112 int bytes_read = TEMP_FAILURE_RETRY(read(fd_, ptr, byte_count));
125 int bytes_read = TEMP_FAILURE_RETRY(write(fd_, ptr, byte_count));
mapped_file.cc 43 int result = TEMP_FAILURE_RETRY(fstat(Fd(), &st));
64 int result = TEMP_FAILURE_RETRY(ftruncate64(Fd(), file_size));
86 int result = TEMP_FAILURE_RETRY(munmap(mapped_file_, file_size_));
128 int rc = IsMapped() ? TEMP_FAILURE_RETRY(msync(mapped_file_, file_size_, 0)) : FdFile::Flush();
  /external/elfutils/lib/
system.h 75 TEMP_FAILURE_RETRY (pwrite (fd, buf, len, off))
77 TEMP_FAILURE_RETRY (write (fd, buf, n))
79 TEMP_FAILURE_RETRY (pread (fd, buf, len, off))
  /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) ({ \
  /external/chromium_org/sandbox/linux/seccomp-bpf/
port.h 18 #define HANDLE_EINTR TEMP_FAILURE_RETRY
  /bionic/libc/bionic/
cpuacct.c 58 n = TEMP_FAILURE_RETRY(write(fd, "0", 1));
64 if (TEMP_FAILURE_RETRY(close(fd)) == -1)
  /libcore/luni/src/main/native/
java_io_Console.cpp 29 if (TEMP_FAILURE_RETRY(tcgetattr(STDIN_FILENO, &state)) == -1) {
39 if (TEMP_FAILURE_RETRY(tcsetattr(STDIN_FILENO, TCSAFLUSH, &state)) == -1){
libcore_io_Posix.cpp 71 * Used to retry networking system calls that can return EINTR. Unlike TEMP_FAILURE_RETRY,
335 int rc = isLstat ? TEMP_FAILURE_RETRY(lstat(path.c_str(), &sb))
336 : TEMP_FAILURE_RETRY(stat(path.c_str(), &sb));
350 int rc = is_sockname ? TEMP_FAILURE_RETRY(getsockname(fd, sa, &byteCount))
351 : TEMP_FAILURE_RETRY(getpeername(fd, sa, &byteCount));
414 int rc = TEMP_FAILURE_RETRY(access(path.c_str(), mode));
437 throwIfMinusOne(env, "chmod", TEMP_FAILURE_RETRY(chmod(path.c_str(), mode)));
445 throwIfMinusOne(env, "chown", TEMP_FAILURE_RETRY(chown(path.c_str(), uid, gid)));
455 // Using TEMP_FAILURE_RETRY will either lead to EBADF or closing someone else's fd.
473 int newFd = throwIfMinusOne(env, "dup", TEMP_FAILURE_RETRY(dup(oldFd)))
    [all...]
  /art/runtime/
signal_set.h 49 int rc = TEMP_FAILURE_RETRY(sigwait(&set_, &signal_number));
  /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
test_host_1.c 37 #undef TEMP_FAILURE_RETRY
38 #define TEMP_FAILURE_RETRY(exp) ({ \
45 #define TFR TEMP_FAILURE_RETRY
  /external/elfutils/host-darwin-fixup/
AndroidFixup.h 30 #ifndef TEMP_FAILURE_RETRY
31 #define TEMP_FAILURE_RETRY(exp) ({ \
  /hardware/libhardware/include/hardware/
qemu_pipe.h 77 ret = TEMP_FAILURE_RETRY(write(fd, buff, buffLen+1));
  /system/core/libsysutils/src/
FrameworkClient.cpp 24 ret = TEMP_FAILURE_RETRY(write(mSocket, msg, strlen(msg) +1));
NetlinkListener.cpp 50 count = TEMP_FAILURE_RETRY(uevent_kernel_multicast_uid_recv(
  /external/chromium_org/third_party/skia/src/core/
SkUtilsArm.cpp 110 int fd = TEMP_FAILURE_RETRY(open("/proc/cpuinfo", O_RDONLY));
120 int size = TEMP_FAILURE_RETRY(read(fd, buffer+1, sizeof(buffer)-2));
  /external/skia/src/core/
SkUtilsArm.cpp 110 int fd = TEMP_FAILURE_RETRY(open("/proc/cpuinfo", O_RDONLY));
120 int size = TEMP_FAILURE_RETRY(read(fd, buffer+1, sizeof(buffer)-2));
  /system/core/adb/
sysdeps.h 280 * TEMP_FAILURE_RETRY is defined by some, but not all, versions of
284 #ifndef TEMP_FAILURE_RETRY
286 #define TEMP_FAILURE_RETRY(exp) ({ \
328 return TEMP_FAILURE_RETRY( open(path, options) );
337 return TEMP_FAILURE_RETRY( open( path, options, mode ) );
343 return TEMP_FAILURE_RETRY( open( pathname, options, mode ) );
349 int fd = TEMP_FAILURE_RETRY( open( pathname, options ) );
375 return TEMP_FAILURE_RETRY( read( fd, buf, len ) );
383 return TEMP_FAILURE_RETRY( write( fd, buf, len ) );
404 int fd = TEMP_FAILURE_RETRY( creat( path, mode ) )
    [all...]
  /hardware/libhardware_legacy/wifi/
wifi.c 291 destfd = TEMP_FAILURE_RETRY(open(SUPP_ENTROPY_FILE, O_CREAT|O_RDWR, 0660));
297 if (TEMP_FAILURE_RETRY(write(destfd, dummy_key, sizeof(dummy_key))) != sizeof(dummy_key)) {
337 srcfd = TEMP_FAILURE_RETRY(open(config_file, O_RDONLY));
343 nread = TEMP_FAILURE_RETRY(read(srcfd, pbuf, sb.st_size));
384 destfd = TEMP_FAILURE_RETRY(open(config_file, O_RDWR, 0660));
390 TEMP_FAILURE_RETRY(write(destfd, pbuf, nread + mlen - ilen -1));
427 srcfd = TEMP_FAILURE_RETRY(open(SUPP_CONFIG_TEMPLATE, O_RDONLY));
433 destfd = TEMP_FAILURE_RETRY(open(config_file, O_CREAT|O_RDWR, 0660));
440 while ((nread = TEMP_FAILURE_RETRY(read(srcfd, buf, sizeof(buf)))) != 0) {
448 TEMP_FAILURE_RETRY(write(destfd, buf, nread))
    [all...]
  /bionic/linker/
debugger.cpp 95 int err = TEMP_FAILURE_RETRY(connect(s, (sockaddr*) &addr, alen));
202 int ret = TEMP_FAILURE_RETRY(write(s, &msg, sizeof(msg)));
205 ret = TEMP_FAILURE_RETRY(read(s, &tid, 1));

Completed in 645 milliseconds

1 2 3 4 5 6