/bionic/tests/ |
D | sys_sendfile_test.cpp | 28 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()
|
D | utils.h | 192 while ((bytes_read = TEMP_FAILURE_RETRY(read(fds[0], buf, sizeof(buf)))) > 0) { in Run()
|
D | sys_ptrace_test.cpp | 390 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()
|
D | gtest_main.cpp | 38 #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()
|
D | sched_test.cpp | 37 ASSERT_EQ(tid, TEMP_FAILURE_RETRY(waitpid(tid, &status, __WCLONE))); in TEST()
|
D | dlext_test.cpp | 110 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/ |
D | pthread_setname_np.cpp | 65 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()
|
D | bionic_systrace.cpp | 104 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()
|
D | bionic_netlink.cpp | 77 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()
|
D | libc_init_common.cpp | 142 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()
|
D | netinet_in.cpp | 64 int rc = TEMP_FAILURE_RETRY(bind(sd, reinterpret_cast<sockaddr*>(sin), sizeof(*sin))); in bindresvport()
|
D | libc_logging.cpp | 117 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()
|
D | dirent.cpp | 96 int rc = TEMP_FAILURE_RETRY(__getdents64(d->fd_, d->buff_, sizeof(d->buff_))); in __fill_DIR()
|
D | system_properties.cpp | 494 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/ |
D | main.cc | 109 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/ |
D | stdio.cpp | 443 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/ |
D | linker_phdr.cpp | 188 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()
|
D | linker_main.cpp | 269 if (TEMP_FAILURE_RETRY(stat("/proc/self/exe", &file_stat)) != 0) {
|
D | linker.cpp | 904 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/ |
D | localtime.c | 429 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/ |
D | unistd.h | 237 #define TEMP_FAILURE_RETRY(exp) ({ \ macro
|
/bionic/libc/dns/net/ |
D | gethnamaddr.c | 583 …if (TEMP_FAILURE_RETRY(connect(s, (const struct sockaddr*) &proxy_addr, sizeof(proxy_addr))) != 0)… in android_open_proxy()
|