Home
last modified time | relevance | path

Searched refs:rd (Results 1 – 20 of 20) sorted by relevance

/busybox-1.35.0/libbb/
Dcopyfd.c60 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/
Ddecompress_unxz.c75 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()
Dopen_transformer.c115 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/
Disrv.c37 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()
Dntpd.c1124 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 …]
Difupdown.c1250 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()
Dhttpd.c1659 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()
Dftpd.c711 close(outfd.rd); in popen_ls()
743 return outfd.rd; in popen_ls()
/busybox-1.35.0/networking/udhcp/
Dsignalpipe.c48 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/
Dmail.c60 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/
Dmdev_fat.conf47 ram([0-9]*) root:disk 660 >rd/%1
84 rd!(.*) root:disk 660 =rd/%1
/busybox-1.35.0/runit/
Drunsvdir.c283 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()
Drunsv.c378 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/
Dbootchartd.c155 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/
Dunshare.c295 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/
Dcpio.c490 pp.rd = 3; in cpio_main()
502 close(pp.rd); in cpio_main()
510 xmove_fd(pp.rd, STDIN_FILENO); in cpio_main()
Dtar.c594 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/
Dless.c1095 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/
Dlibbb.h678 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/
Dhush.c7739 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()