/busybox-1.35.0/libbb/ |
D | copyfd.c | 60 ssize_t rd; in bb_full_fd_action() local 65 rd = sendfile(dst_fd, src_fd, NULL, in bb_full_fd_action() 67 if (rd >= 0) in bb_full_fd_action() 87 rd = safe_read(src_fd, buffer, in bb_full_fd_action() 89 if (rd < 0) { in bb_full_fd_action() 94 if (!rd) { /* eof - all done */ in bb_full_fd_action() 100 ssize_t wr = full_write(dst_fd, buffer, rd); in bb_full_fd_action() 101 if (wr < rd) { in bb_full_fd_action() 109 total += rd; in bb_full_fd_action() 111 size -= rd; in bb_full_fd_action()
|
/busybox-1.35.0/archival/libarchive/ |
D | decompress_unxz.c | 75 int rd = safe_read(xstate->src_fd, membuf, BUFSIZ); in IF_DESKTOP() local 76 if (rd < 0) { in IF_DESKTOP() 81 if (rd == 0 && xz_result == XZ_STREAM_END) in IF_DESKTOP() 83 iobuf.in_size = rd; in IF_DESKTOP()
|
D | open_transformer.c | 115 close(fd_pipe.rd); /* we don't want to read from the parent */ in fork_transformer() 151 xmove_fd(fd_pipe.rd, fd); in fork_transformer()
|
/busybox-1.35.0/networking/ |
D | isrv.c | 37 fd_set rd; member 52 FD_SET(fd, &state->rd); in isrv_want_rd() 67 FD_CLR(fd, &state->rd); in isrv_dont_want_rd() 292 fd_set rd; in isrv_run() local 301 rd = state->rd; in isrv_run() 309 n = select(FD_COUNT, &rd, wrp, NULL, tv.tv_sec ? &tv : NULL); in isrv_run() 329 handle_fd_set(state, &rd, do_rd); in isrv_run()
|
D | ntpd.c | 1124 fit(peer_t *p, double rd) in fit() argument 1142 if (rd > MAXDIST + FREQ_TOLERANCE * (1 << G.poll_exp)) { in fit() 1145 p->p_dotted, rd, p->filter_jitter in fit() 1176 double rd, offset; in select_and_cluster() local 1179 rd = root_distance(p); in select_and_cluster() 1181 if (!fit(p, rd)) { in select_and_cluster() 1187 offset - rd, in select_and_cluster() 1189 offset + rd, in select_and_cluster() 1194 point[num_points].edge = offset - rd; in select_and_cluster() 1195 point[num_points].opt_rd = rd; in select_and_cluster() [all …]
|
D | ifupdown.c | 1250 close(outfd.rd); in popen2() 1251 xmove_fd(infd.rd, 0); in popen2() 1256 close(infd.rd); in popen2() 1259 *out = xfdopen_for_read(outfd.rd); in popen2()
|
D | httpd.c | 1659 close(fromCgi.rd); in send_cgi_and_exit() 1660 xmove_fd(toCgi.rd, 0); /* replace stdin with the pipe */ in send_cgi_and_exit() 1726 close(toCgi.rd); in send_cgi_and_exit() 1727 cgi_io_loop_and_exit(fromCgi.rd, toCgi.wr, post_len); in send_cgi_and_exit()
|
D | ftpd.c | 711 close(outfd.rd); in popen_ls() 743 return outfd.rd; in popen_ls()
|
/busybox-1.35.0/networking/udhcp/ |
D | signalpipe.c | 48 if (signal_pipe.rd != READ_FD) in udhcp_sp_setup() 49 xmove_fd(signal_pipe.rd, READ_FD); in udhcp_sp_setup()
|
/busybox-1.35.0/mailutils/ |
D | mail.c | 60 close(child_out.rd); in launch_helper() 61 xmove_fd(child_in.rd, STDIN_FILENO); in launch_helper() 78 close(child_in.rd); in launch_helper() 79 xmove_fd(child_out.rd, STDIN_FILENO); in launch_helper()
|
/busybox-1.35.0/examples/ |
D | mdev_fat.conf | 47 ram([0-9]*) root:disk 660 >rd/%1 84 rd!(.*) root:disk 660 =rd/%1
|
/busybox-1.35.0/runit/ |
D | runsvdir.c | 283 close_on_exec_on(logpipe.rd); in runsvdir_main() 285 ndelay_on(logpipe.rd); in runsvdir_main() 290 pfd[0].fd = logpipe.rd; in runsvdir_main() 383 while (read(logpipe.rd, &ch, 1) > 0) { in runsvdir_main()
|
D | runsv.c | 378 xdup2(logpipe.rd, 0); in startservice() 380 close(logpipe.rd); in startservice() 512 close_on_exec_on(selfpipe.rd); in runsv_main() 514 ndelay_on(selfpipe.rd); in runsv_main() 556 close_on_exec_on(logpipe.rd); in runsv_main() 628 x[0].fd = selfpipe.rd; in runsv_main() 642 while (read(selfpipe.rd, &ch, 1) == 1) in runsv_main() 709 close(logpipe.rd); in runsv_main()
|
/busybox-1.35.0/init/ |
D | bootchartd.c | 155 int rd = safe_read(stat_fd, stat_line, sizeof(stat_line)-2); in dump_procs() local 158 if (rd < 0) in dump_procs() 160 stat_line[rd] = '\0'; in dump_procs()
|
/busybox-1.35.0/util-linux/ |
D | unshare.c | 295 read(fdp.rd, ns_ctx_list, 1); /* ...using bogus buffer */ in unshare_main() 310 close(fdp.rd); /* should close fd, to not confuse exec'ed PROG */ in unshare_main()
|
/busybox-1.35.0/archival/ |
D | cpio.c | 490 pp.rd = 3; in cpio_main() 502 close(pp.rd); in cpio_main() 510 xmove_fd(pp.rd, STDIN_FILENO); in cpio_main()
|
D | tar.c | 594 close(status.rd); in vfork_compressor() 613 xmove_fd(data.rd, 0); in vfork_compressor() 629 close(data.rd); in vfork_compressor() 635 int n = full_read(status.rd, &buf, 1); in vfork_compressor() 639 close(status.rd); in vfork_compressor()
|
/busybox-1.35.0/miscutils/ |
D | less.c | 1095 int rd; in getch_nowait() local 1111 rd = 1; in getch_nowait() 1115 rd = 0; /* yes, we are interested in stdin */ in getch_nowait() 1127 r = poll(pfd + rd, 2 - rd, -1); in getch_nowait() 1133 safe_poll(pfd + rd, 2 - rd, -1); in getch_nowait()
|
/busybox-1.35.0/include/ |
D | libbb.h | 678 struct fd_pair { int rd; int wr; }; member 679 #define piped_pair(pair) pipe(&((pair).rd)) 680 #define xpiped_pair(pair) xpipe(&((pair).rd))
|
/busybox-1.35.0/shell/ |
D | hush.c | 7739 xmove_fd(pair.rd, redir->rd_fd); in setup_heredoc() 9546 pipefds.rd = 0; in run_pipe() 9588 if (pipefds.rd > 1) in run_pipe() 9589 close(pipefds.rd); in run_pipe() 9646 next_infd = pipefds.rd; in run_pipe()
|