/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)));
|
/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 | 114 return TEMP_FAILURE_RETRY( writev(log_channels[log_id].fd, vec, 3) ); 125 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 | 70 * Used to retry syscalls that can return EINTR. This differs from TEMP_FAILURE_RETRY in that 328 int rc = isLstat ? TEMP_FAILURE_RETRY(lstat(path.c_str(), &sb)) 329 : TEMP_FAILURE_RETRY(stat(path.c_str(), &sb)); 398 int rc = TEMP_FAILURE_RETRY(access(path.c_str(), mode)); 420 throwIfMinusOne(env, "chmod", TEMP_FAILURE_RETRY(chmod(path.c_str(), mode))); 430 // Using TEMP_FAILURE_RETRY will either lead to EBADF or closing someone else's fd. 447 int newFd = throwIfMinusOne(env, "dup", TEMP_FAILURE_RETRY(dup(oldFd))); 453 int fd = throwIfMinusOne(env, "dup2", TEMP_FAILURE_RETRY(dup2(oldFd, newFd))); 464 return throwIfMinusOne(env, "fcntl", TEMP_FAILURE_RETRY(fcntl(fd, cmd))); 469 return throwIfMinusOne(env, "fcntl", TEMP_FAILURE_RETRY(fcntl(fd, cmd, arg))) [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)); 383 destfd = TEMP_FAILURE_RETRY(open(config_file, O_RDWR, 0660)); 389 TEMP_FAILURE_RETRY(write(destfd, pbuf, nread + mlen - ilen -1)); 421 srcfd = TEMP_FAILURE_RETRY(open(SUPP_CONFIG_TEMPLATE, O_RDONLY)); 427 destfd = TEMP_FAILURE_RETRY(open(config_file, O_CREAT|O_RDWR, 0660)); 434 while ((nread = TEMP_FAILURE_RETRY(read(srcfd, buf, sizeof(buf)))) != 0) { 442 TEMP_FAILURE_RETRY(write(destfd, buf, nread)) [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));
|
/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)); 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)); 544 TEMP_FAILURE_RETRY(pread64(mFd, lfhBuf, sizeof(lfhBuf), localHdrOffset)); 575 TEMP_FAILURE_RETRY(read(mFd, lfhBuf, sizeof(lfhBuf))) [all...] |
/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) ({ \
|
/development/tools/emulator/system/camera/ |
EmulatedCameraDevice.cpp | 315 TEMP_FAILURE_RETRY(write(mThreadControl, &msg, sizeof(msg))); 364 int res = TEMP_FAILURE_RETRY(select(fd_num, fds, NULL, NULL, tvp)); 375 res = TEMP_FAILURE_RETRY(read(mControlFD, &msg, sizeof(msg)));
|
/external/elfutils/libdwfl/ |
dwfl_build_id_find_elf.c | 113 fd = TEMP_FAILURE_RETRY (open64 (name, O_RDONLY));
|