Home
last modified time | relevance | path

Searched refs:TEMP_FAILURE_RETRY (Results 1 – 22 of 22) sorted by relevance

/bionic/tests/
Dsys_sendfile_test.cpp28 ASSERT_EQ(5, TEMP_FAILURE_RETRY(write(src_file.fd, "hello", 5))); in TEST()
41 ASSERT_EQ(2, TEMP_FAILURE_RETRY(read(dst_file.fd, &buf, 2))); in TEST()
47 ASSERT_EQ(5, TEMP_FAILURE_RETRY(write(src_file.fd, "hello", 5))); in TEST()
60 ASSERT_EQ(2, TEMP_FAILURE_RETRY(read(dst_file.fd, &buf, 2))); in TEST()
Dutils.h192 while ((bytes_read = TEMP_FAILURE_RETRY(read(fds[0], buf, sizeof(buf)))) > 0) { in Run()
Dsys_ptrace_test.cpp390 TEMP_FAILURE_RETRY(read(worker_pipe_read.get(), &buf, sizeof(buf))); in Start()
429 pid_t rc = TEMP_FAILURE_RETRY(waitpid(pid, &status, __WALL)); in wait_for_ptrace_stop()
Dgtest_main.cpp38 #ifndef TEMP_FAILURE_RETRY
41 #define TEMP_FAILURE_RETRY(exp) ({ \ macro
793 ssize_t bytes_read = TEMP_FAILURE_RETRY(read(child_proc.child_read_fd, buf, sizeof(buf) - 1)); in ReadChildProcOutput()
816 while ((result = TEMP_FAILURE_RETRY(waitpid(-1, &status, WNOHANG))) > 0) { in WaitChildProcs()
851 pid_t result = TEMP_FAILURE_RETRY(waitpid(pid, &exit_status, 0)); in WaitForOneChild()
Dsched_test.cpp37 ASSERT_EQ(tid, TEMP_FAILURE_RETRY(waitpid(tid, &status, __WCLONE))); in TEST()
Ddlext_test.cpp110 extinfo.library_fd = TEMP_FAILURE_RETRY(open(lib_path.c_str(), O_RDONLY | O_CLOEXEC)); in TEST_F()
128 extinfo.library_fd = TEMP_FAILURE_RETRY(open(lib_path.c_str(), O_RDONLY | O_CLOEXEC)); in TEST_F()
154 extinfo.library_fd = TEMP_FAILURE_RETRY(open(lib_path.c_str(), O_RDONLY | O_CLOEXEC)); in TEST_F()
825 int tmpfd = TEMP_FAILURE_RETRY( in TEST()
879 ASSERT_TRUE(TEMP_FAILURE_RETRY(fstatfs(memfd, &st)) == 0) << strerror(errno); in TEST()
/bionic/libc/bionic/
Dpthread_setname_np.cpp65 ssize_t n = TEMP_FAILURE_RETRY(read(fd, buf, buf_size)); in pthread_getname_np()
97 ssize_t n = TEMP_FAILURE_RETRY(write(fd, thread_name, thread_name_len)); in pthread_setname_np()
Dbionic_systrace.cpp104 TEMP_FAILURE_RETRY(write(trace_marker_fd, buf, len)); in bionic_trace_begin()
117 TEMP_FAILURE_RETRY(write(trace_marker_fd, "E", 1)); in bionic_trace_end()
Dbionic_netlink.cpp77 return (TEMP_FAILURE_RETRY(send(fd_, &request, sizeof(request), 0)) == sizeof(request)); in SendRequest()
83 while ((bytes_read = TEMP_FAILURE_RETRY(recv(fd_, data_, size_, 0))) > 0) { in ReadResponses()
Dlibc_init_common.cpp142 int dev_null = TEMP_FAILURE_RETRY(open("/dev/null", O_RDWR)); in __nullify_closed_stdio()
145 dev_null = TEMP_FAILURE_RETRY(open("/sys/fs/selinux/null", O_RDWR)); in __nullify_closed_stdio()
160 int status = TEMP_FAILURE_RETRY(fcntl(i, F_GETFL)); in __nullify_closed_stdio()
171 status = TEMP_FAILURE_RETRY(dup2(dev_null, i)); in __nullify_closed_stdio()
Dnetinet_in.cpp64 int rc = TEMP_FAILURE_RETRY(bind(sd, reinterpret_cast<sockaddr*>(sin), sizeof(*sin))); in bindresvport()
Dlibc_logging.cpp117 int rc = TEMP_FAILURE_RETRY(write(fd_, data, len)); in Send()
448 int result = TEMP_FAILURE_RETRY(writev(STDERR_FILENO, vec, 4)); in __libc_write_stderr()
459 int log_fd = TEMP_FAILURE_RETRY(socket(PF_UNIX, SOCK_DGRAM | SOCK_CLOEXEC | SOCK_NONBLOCK, 0)); in __libc_open_log_socket()
472 if (TEMP_FAILURE_RETRY(connect(log_fd, &u.addr, sizeof(u.addrUn))) != 0) { in __libc_open_log_socket()
572 int result = TEMP_FAILURE_RETRY(writev(main_log_fd, vec, sizeof(vec) / sizeof(vec[0]))); in __libc_write_log()
608 TEMP_FAILURE_RETRY(writev(2, iov, 2)); in __libc_fatal_va_list()
Ddirent.cpp96 int rc = TEMP_FAILURE_RETRY(__getdents64(d->fd_, d->buff_, sizeof(d->buff_))); in __fill_DIR()
Dsystem_properties.cpp494 if (TEMP_FAILURE_RETRY(connect(socket_, reinterpret_cast<sockaddr*>(&addr), alen)) == -1) { in PropertyServiceConnection()
510 int result = TEMP_FAILURE_RETRY(recv(socket_, value, sizeof(*value), MSG_WAITALL)); in RecvInt32()
617 const int num_bytes = TEMP_FAILURE_RETRY(send(s, msg, sizeof(prop_msg), 0)); in send_prop_msg()
629 const int poll_result = TEMP_FAILURE_RETRY(poll(pollfds, 1, 250 /* ms */)); in send_prop_msg()
/bionic/tools/relocation_packer/src/
Dmain.cc109 if (TEMP_FAILURE_RETRY(read(fd.get(), e_ident, EI_NIDENT) != EI_NIDENT)) { in main()
114 if (TEMP_FAILURE_RETRY(lseek(fd.get(), 0, SEEK_SET)) != 0) { in main()
/bionic/libc/stdio/
Dstdio.cpp443 return TEMP_FAILURE_RETRY(read(fp->_file, buf, n)); in __sread()
452 TEMP_FAILURE_RETRY(lseek64(fp->_file, 0, SEEK_END)); in __swrite()
454 return TEMP_FAILURE_RETRY(write(fp->_file, buf, n)); in __swrite()
459 return TEMP_FAILURE_RETRY(lseek(fp->_file, offset, whence)); in __sseek()
464 return TEMP_FAILURE_RETRY(lseek64(fp->_file, offset, whence)); in __sseek64()
/bionic/linker/
Dlinker_phdr.cpp188 ssize_t rc = TEMP_FAILURE_RETRY(pread64(fd_, &header_, sizeof(header_), file_offset_)); in ReadElfHeader()
853 ssize_t written = TEMP_FAILURE_RETRY(write(fd, reinterpret_cast<void*>(seg_page_start), size)); in phdr_table_serialize_gnu_relro()
889 if (TEMP_FAILURE_RETRY(fstat(fd, &file_stat)) != 0) { in phdr_table_map_gnu_relro()
Dlinker_main.cpp269 if (TEMP_FAILURE_RETRY(stat("/proc/self/exe", &file_stat)) != 0) {
Dlinker.cpp904 int fd = TEMP_FAILURE_RETRY(open(zip_path, O_RDONLY | O_CLOEXEC)); in get_or_open()
956 int fd = TEMP_FAILURE_RETRY(open(zip_path, O_RDONLY | O_CLOEXEC)); in open_library_in_zipfile()
1021 fd = TEMP_FAILURE_RETRY(open(buf, O_RDONLY | O_CLOEXEC)); in open_library_on_paths()
1054 fd = TEMP_FAILURE_RETRY(open(name, O_RDONLY | O_CLOEXEC)); in open_library()
1168 if (TEMP_FAILURE_RETRY(fstat(task->get_fd(), &file_stat)) != 0) { in load_library()
1196 if (TEMP_FAILURE_RETRY(fstatfs(task->get_fd(), &fs_stat)) != 0) { in load_library()
/bionic/libc/tzcode/
Dlocaltime.c429 nread = TEMP_FAILURE_RETRY(read(fid, up->buf, entry_length)); in tzloadbody()
2378 int fd = TEMP_FAILURE_RETRY(open(path, O_RDONLY | O_CLOEXEC)); in __bionic_open_tzdata_path()
2394 ssize_t bytes_read = TEMP_FAILURE_RETRY(read(fd, &header, sizeof(header))); in __bionic_open_tzdata_path()
2416 if (TEMP_FAILURE_RETRY(lseek(fd, ntohl(header.index_offset), SEEK_SET)) == -1) { in __bionic_open_tzdata_path()
2432 if (TEMP_FAILURE_RETRY(read(fd, index, index_size)) != index_size) { in __bionic_open_tzdata_path()
2470 if (TEMP_FAILURE_RETRY(lseek(fd, specific_zone_offset, SEEK_SET)) == -1) { in __bionic_open_tzdata_path()
/bionic/libc/include/
Dunistd.h237 #define TEMP_FAILURE_RETRY(exp) ({ \ macro
/bionic/libc/dns/net/
Dgethnamaddr.c583 …if (TEMP_FAILURE_RETRY(connect(s, (const struct sockaddr*) &proxy_addr, sizeof(proxy_addr))) != 0)… in android_open_proxy()