HomeSort by relevance Sort by last modified time
    Searched refs:TEMP_FAILURE_RETRY (Results 26 - 50 of 279) sorted by null

12 3 4 5 6 7 8 91011>>

  /system/security/keystore/
entropy.cpp 39 mRandom = TEMP_FAILURE_RETRY(::open(randomDevice, O_RDONLY));
  /frameworks/base/core/jni/
fd_utils-inl.h 72 if (TEMP_FAILURE_RETRY(fstat(fd, &f_stat)) == -1) {
119 const int fd_flags = TEMP_FAILURE_RETRY(fcntl(fd, F_GETFD));
137 int fs_flags = TEMP_FAILURE_RETRY(fcntl(fd, F_GETFL));
144 const off_t offset = TEMP_FAILURE_RETRY(lseek64(fd, 0, SEEK_CUR));
159 if (TEMP_FAILURE_RETRY(fstat(fd, &f_stat)) == -1) {
174 const int new_fd = TEMP_FAILURE_RETRY(open(file_path.c_str(), open_flags));
181 if (TEMP_FAILURE_RETRY(fcntl(new_fd, F_SETFD, fd_flags)) == -1) {
187 if (TEMP_FAILURE_RETRY(fcntl(new_fd, F_SETFL, fs_flags)) == -1) {
193 if (offset != -1 && TEMP_FAILURE_RETRY(lseek64(new_fd, offset, SEEK_SET)) == -1) {
199 if (TEMP_FAILURE_RETRY(dup2(new_fd, fd)) == -1)
    [all...]
  /art/runtime/base/
logging.cc 307 TEMP_FAILURE_RETRY(write(STDERR_FILENO, program_name, strlen(program_name)));
308 TEMP_FAILURE_RETRY(write(STDERR_FILENO, " ", 1));
309 TEMP_FAILURE_RETRY(write(STDERR_FILENO, &kLogCharacters[static_cast<size_t>(log_severity)], 1));
310 TEMP_FAILURE_RETRY(write(STDERR_FILENO, " ", 1));
312 TEMP_FAILURE_RETRY(write(STDERR_FILENO, file, strlen(file)));
315 TEMP_FAILURE_RETRY(write(STDERR_FILENO, "] ", 2));
316 TEMP_FAILURE_RETRY(write(STDERR_FILENO, message, strlen(message)));
317 TEMP_FAILURE_RETRY(write(STDERR_FILENO, "\n", 1));
file_magic.cc 36 int n = TEMP_FAILURE_RETRY(read(fd.get(), magic, sizeof(*magic)));
  /bionic/libc/bionic/
bionic_netlink.cpp 76 return (TEMP_FAILURE_RETRY(send(fd_, &request, sizeof(request), 0)) == sizeof(request));
82 while ((bytes_read = TEMP_FAILURE_RETRY(recv(fd_, data_, size_, 0))) > 0) {
bionic_systrace.cpp 102 TEMP_FAILURE_RETRY(write(trace_marker_fd, buf, len));
115 TEMP_FAILURE_RETRY(write(trace_marker_fd, "E", 1));
libc_init_common.cpp 127 int dev_null = TEMP_FAILURE_RETRY(open("/dev/null", O_RDWR));
130 dev_null = TEMP_FAILURE_RETRY(open("/sys/fs/selinux/null", O_RDWR));
145 int status = TEMP_FAILURE_RETRY(fcntl(i, F_GETFL));
156 status = TEMP_FAILURE_RETRY(dup2(dev_null, i));
netinet_in.cpp 63 int rc = TEMP_FAILURE_RETRY(bind(sd, reinterpret_cast<sockaddr*>(sin), sizeof(*sin)));
pthread_setname_np.cpp 72 ssize_t n = TEMP_FAILURE_RETRY(write(fd, thread_name, thread_name_len));
  /device/google/dragon/crash_collector/
crash_dispatcher.cc 70 if (TEMP_FAILURE_RETRY(dup2(pipe_fds[0], STDIN_FILENO)) != 0) {
90 int rv = TEMP_FAILURE_RETRY(read(STDIN_FILENO, buf, kBufSize));
  /external/conscrypt/src/openjdk/native/
JNIHelp.h 122 * TEMP_FAILURE_RETRY is defined by some, but not all, versions of
126 #ifndef TEMP_FAILURE_RETRY
128 #define TEMP_FAILURE_RETRY(exp) ({ \
  /external/skia/src/core/
SkUtilsArm.cpp 59 int fd = TEMP_FAILURE_RETRY(open("/proc/cpuinfo", O_RDONLY));
69 int size = TEMP_FAILURE_RETRY(read(fd, buffer+1, sizeof(buffer)-2));
  /frameworks/native/cmds/bugreport/
bugreport.cpp 67 ssize_t bytes_read = TEMP_FAILURE_RETRY(read(s, buffer, sizeof(buffer)));
82 bytes_written = TEMP_FAILURE_RETRY(write(STDOUT_FILENO,
  /hardware/libhardware/tests/input/evdev/
TestHelpers.cpp 50 int result = TEMP_FAILURE_RETRY(mkfifo(mName, S_IRWXU));
53 mFd = TEMP_FAILURE_RETRY(open(mName, O_RDWR | O_NONBLOCK));
  /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/extras/squashfs_utils/
squashfs_utils.c 66 data_device = TEMP_FAILURE_RETRY(open(blk_device, O_RDONLY | O_CLOEXEC));
72 if (TEMP_FAILURE_RETRY(read(data_device, &sb, sizeof(sb)))
  /system/core/libsuspend/
autosuspend_wakeup_count.c 56 wakeup_count_len = TEMP_FAILURE_RETRY(read(wakeup_count_fd, wakeup_count,
79 ret = TEMP_FAILURE_RETRY(write(wakeup_count_fd, wakeup_count, wakeup_count_len));
85 ret = TEMP_FAILURE_RETRY(write(state_fd, sleep_state, strlen(sleep_state)));
162 state_fd = TEMP_FAILURE_RETRY(open(SYS_POWER_STATE, O_RDWR));
169 wakeup_count_fd = TEMP_FAILURE_RETRY(open(SYS_POWER_WAKEUP_COUNT, O_RDWR));
  /system/extras/simpleperf/
workload.cpp 101 ssize_t nread = TEMP_FAILURE_RETRY(read(start_signal_fd, &start_signal, 1));
109 TEMP_FAILURE_RETRY(write(exec_child_fd, &exec_child_failed, 1));
121 ssize_t nwrite = TEMP_FAILURE_RETRY(write(start_signal_fd_, &start_signal, 1));
127 ssize_t nread = TEMP_FAILURE_RETRY(read(exec_child_fd_, &exec_child_failed, 1));
143 pid_t result = TEMP_FAILURE_RETRY(waitpid(work_pid_, &status, (wait_forever ? 0 : WNOHANG)));
  /system/core/fastboot/
socket.cpp 99 int result = TEMP_FAILURE_RETRY(select(sock_ + 1, &read_set, nullptr, nullptr, &timeout));
136 return TEMP_FAILURE_RETRY(sendto(sock_, reinterpret_cast<const char*>(data), length, 0,
147 return TEMP_FAILURE_RETRY(socket_send_buffers_function_(
163 return TEMP_FAILURE_RETRY(recvfrom(sock_, reinterpret_cast<char*>(data), length, 0,
185 TEMP_FAILURE_RETRY(send(sock_, reinterpret_cast<const char*>(data), length, 0));
198 ssize_t sent = TEMP_FAILURE_RETRY(
235 return TEMP_FAILURE_RETRY(recv(sock_, reinterpret_cast<char*>(data), length, 0));
  /system/core/liblog/
logd_writer.c 70 i = TEMP_FAILURE_RETRY(socket(PF_UNIX, SOCK_DGRAM | SOCK_CLOEXEC, 0));
73 } else if (TEMP_FAILURE_RETRY(fcntl(i, F_SETFL, O_NONBLOCK)) < 0) {
82 if (TEMP_FAILURE_RETRY(connect(i, (struct sockaddr *)&un,
181 ret = TEMP_FAILURE_RETRY(writev(logdLoggerWrite.context.sock, newVec, 2));
201 ret = TEMP_FAILURE_RETRY(writev(logdLoggerWrite.context.sock, newVec, 2));
230 ret = TEMP_FAILURE_RETRY(writev(logdLoggerWrite.context.sock, newVec, i));
243 ret = TEMP_FAILURE_RETRY(writev(logdLoggerWrite.context.sock, newVec, i));
  /system/extras/memory_replay/tests/
LineBufferTest.cpp 42 ASSERT_TRUE(TEMP_FAILURE_RETRY(
61 ASSERT_TRUE(TEMP_FAILURE_RETRY(
82 ASSERT_TRUE(TEMP_FAILURE_RETRY(
111 ASSERT_TRUE(TEMP_FAILURE_RETRY(
141 ASSERT_TRUE(TEMP_FAILURE_RETRY(
176 ASSERT_TRUE(TEMP_FAILURE_RETRY(
211 ASSERT_TRUE(TEMP_FAILURE_RETRY(
  /bootable/recovery/mtdutils/
flash_image.c 75 int headerlen = TEMP_FAILURE_RETRY(read(fd, header, sizeof(header)));
107 while ((len = TEMP_FAILURE_RETRY(read(fd, buf, sizeof(buf)))) > 0) {
128 if (TEMP_FAILURE_RETRY(lseek(fd, headerlen, SEEK_SET)) != headerlen)
134 len = TEMP_FAILURE_RETRY(read(fd, buf, left > (int)sizeof(buf) ? (int)sizeof(buf) : left));
  /hardware/libhardware/include/hardware/
qemu_pipe.h 80 ret = TEMP_FAILURE_RETRY(write(fd, buff, buffLen+1));
  /system/core/libmemunreachable/
LineBuffer.cpp 47 ssize_t bytes = TEMP_FAILURE_RETRY(read(fd_, buffer_ + bytes_, buffer_len_ - bytes_ - 1));
  /system/core/libsysutils/src/
FrameworkClient.cpp 24 ret = TEMP_FAILURE_RETRY(write(mSocket, msg, strlen(msg) +1));

Completed in 647 milliseconds

12 3 4 5 6 7 8 91011>>