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

1 2 3 4

  /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));
fs.c 36 if (TEMP_FAILURE_RETRY(lstat(path, &sb)) == -1) {
57 if (TEMP_FAILURE_RETRY(mkdir(path, mode)) == -1) {
65 if (TEMP_FAILURE_RETRY(chmod(path, mode)) == -1) {
69 if (TEMP_FAILURE_RETRY(chown(path, uid, gid)) == -1) {
78 int fd = TEMP_FAILURE_RETRY(open(path, O_RDONLY));
85 if (TEMP_FAILURE_RETRY(read(fd, buf, BUF_SIZE)) == -1) {
109 int fd = TEMP_FAILURE_RETRY(mkstemp(temp));
121 if (TEMP_FAILURE_RETRY(write(fd, buf, len)) < len) {
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)));
  /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) ({ \
  /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))
crc32_file.c 97 while ((count = TEMP_FAILURE_RETRY (pread (fd, buffer, sizeof buffer,
  /system/security/keystore/
keystore_client.cpp 33 if (TEMP_FAILURE_RETRY(send(sock, &cmd, 1, MSG_NOSIGNAL)) != 1) {
51 if (TEMP_FAILURE_RETRY(send(sock, bytes, 2, MSG_NOSIGNAL)) != 2
52 || TEMP_FAILURE_RETRY(send(sock, arg, argLen, MSG_NOSIGNAL))
63 || TEMP_FAILURE_RETRY(recv(sock, &code, 1, 0)) != 1
75 if (TEMP_FAILURE_RETRY(recv(sock, &bytes[0], 1, 0)) == 1
76 && TEMP_FAILURE_RETRY(recv(sock, &bytes[1], 1, 0)) == 1) {
80 int n = TEMP_FAILURE_RETRY(recv(sock, &data[offset], length - offset, 0));
  /bionic/libc/bionic/
cpuacct.c 58 n = TEMP_FAILURE_RETRY(write(fd, "0", 1));
64 if (TEMP_FAILURE_RETRY(close(fd)) == -1)
system_properties.c 179 if(TEMP_FAILURE_RETRY(connect(s, (struct sockaddr *) &addr, alen)) < 0) {
184 r = TEMP_FAILURE_RETRY(send(s, msg, sizeof(prop_msg), 0));
196 r = TEMP_FAILURE_RETRY(poll(pollfds, 1, 250 /* ms */));
logd_write.c 116 return TEMP_FAILURE_RETRY( writev(log_channels[log_id].fd, vec, 3) );
127 fd = TEMP_FAILURE_RETRY(open(log_channels[log_id].path, O_WRONLY));
  /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,
320 int rc = isLstat ? TEMP_FAILURE_RETRY(lstat(path.c_str(), &sb))
321 : TEMP_FAILURE_RETRY(stat(path.c_str(), &sb));
389 int rc = TEMP_FAILURE_RETRY(access(path.c_str(), mode));
411 throwIfMinusOne(env, "chmod", TEMP_FAILURE_RETRY(chmod(path.c_str(), mode)));
419 throwIfMinusOne(env, "chown", TEMP_FAILURE_RETRY(chown(path.c_str(), uid, gid)));
429 // Using TEMP_FAILURE_RETRY will either lead to EBADF or closing someone else's fd.
446 int newFd = throwIfMinusOne(env, "dup", TEMP_FAILURE_RETRY(dup(oldFd)));
452 int fd = throwIfMinusOne(env, "dup2", TEMP_FAILURE_RETRY(dup2(oldFd, newFd)));
463 throwIfMinusOne(env, "fchmod", TEMP_FAILURE_RETRY(fchmod(fd, mode)))
    [all...]
  /development/tools/emulator/system/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(
  /sdk/emulator/tests/
test-qemud-pipes.c 43 if (TEMP_FAILURE_RETRY(bind(sock, &addr, sizeof(addr))) < 0) {
49 if (TEMP_FAILURE_RETRY(listen(sock, 4)) < 0) {
  /hardware/libhardware_legacy/wifi/
wifi.c 306 destfd = TEMP_FAILURE_RETRY(open(SUPP_ENTROPY_FILE, O_CREAT|O_RDWR, 0660));
312 if (TEMP_FAILURE_RETRY(write(destfd, dummy_key, sizeof(dummy_key))) != sizeof(dummy_key)) {
351 srcfd = TEMP_FAILURE_RETRY(open(config_file, O_RDONLY));
357 nread = TEMP_FAILURE_RETRY(read(srcfd, pbuf, sb.st_size));
395 destfd = TEMP_FAILURE_RETRY(open(config_file, O_RDWR, 0660));
401 TEMP_FAILURE_RETRY(write(destfd, pbuf, nread + mlen - ilen -1));
433 srcfd = TEMP_FAILURE_RETRY(open(SUPP_CONFIG_TEMPLATE, O_RDONLY));
439 destfd = TEMP_FAILURE_RETRY(open(config_file, O_CREAT|O_RDWR, 0660));
446 while ((nread = TEMP_FAILURE_RETRY(read(srcfd, buf, sizeof(buf)))) != 0) {
454 TEMP_FAILURE_RETRY(write(destfd, buf, nread))
    [all...]
  /frameworks/native/libs/utils/
ZipFileRO.cpp 52 * TEMP_FAILURE_RETRY is defined by some, but not all, versions of
56 #ifndef TEMP_FAILURE_RETRY
58 #define TEMP_FAILURE_RETRY(exp) ({ \
110 TEMP_FAILURE_RETRY(close(mFd));
143 fd = TEMP_FAILURE_RETRY(::open(zipFileName, O_RDONLY | O_BINARY));
151 TEMP_FAILURE_RETRY(close(fd));
181 TEMP_FAILURE_RETRY(close(fd));
211 ssize_t actual = TEMP_FAILURE_RETRY(read(mFd, scanBuf, sizeof(int32_t)));
250 actual = TEMP_FAILURE_RETRY(read(mFd, scanBuf, readAmount));
563 TEMP_FAILURE_RETRY(pread64(mFd, lfhBuf, sizeof(lfhBuf), localHdrOffset))
    [all...]
  /frameworks/base/libs/androidfw/
ObbFile.cpp 58 * TEMP_FAILURE_RETRY is defined by some, but not all, versions of
62 #ifndef TEMP_FAILURE_RETRY
64 #define TEMP_FAILURE_RETRY(exp) ({ \
137 actual = TEMP_FAILURE_RETRY(read(fd, footer, kFooterTagSize));
179 actual = TEMP_FAILURE_RETRY(read(fd, scanBuf, footerSize));
  /system/core/debuggerd/
utility.c 85 while (TEMP_FAILURE_RETRY(ptrace(PTRACE_GETSIGINFO, tid, 0, &si)) < 0 && errno == ESRCH) {
  /system/core/run-as/
package.c 83 fd = TEMP_FAILURE_RETRY(open(filename, O_RDONLY));
88 ret = TEMP_FAILURE_RETRY(fstat(fd, &st));
110 address = TEMP_FAILURE_RETRY(mmap(NULL, length, PROT_READ, MAP_PRIVATE, fd, 0));
133 TEMP_FAILURE_RETRY(munmap(address, size));
  /libnativehelper/include/nativehelper/
JNIHelp.h 179 * TEMP_FAILURE_RETRY is defined by some, but not all, versions of
183 #ifndef TEMP_FAILURE_RETRY
185 #define TEMP_FAILURE_RETRY(exp) ({ \

Completed in 665 milliseconds

1 2 3 4