Home
last modified time | relevance | path

Searched refs:wr (Results 1 – 17 of 17) sorted by relevance

/busybox-1.35.0/networking/
Dtelnetd.c181 unsigned wr; in safe_write_to_pty_decode_iac() local
187 wr = MIN(BUFSIZE - ts->wridx1, ts->size1); in safe_write_to_pty_decode_iac()
196 wr++; in safe_write_to_pty_decode_iac()
203 found = memchr(buf, IAC, wr); in safe_write_to_pty_decode_iac()
209 wr = found - buf; in safe_write_to_pty_decode_iac()
216 rc = wr; in safe_write_to_pty_decode_iac()
217 found = memchr(buf, '\r', wr); in safe_write_to_pty_decode_iac()
223 if (rc < wr /* don't look past available data */ in safe_write_to_pty_decode_iac()
242 if (wr <= 1) { in safe_write_to_pty_decode_iac()
306 if (wr <= 2) { in safe_write_to_pty_decode_iac()
[all …]
Disrv.c38 fd_set wr; member
58 if (!FD_ISSET(fd, &state->wr)) { in isrv_want_wr()
60 FD_SET(fd, &state->wr); in isrv_want_wr()
73 if (FD_ISSET(fd, &state->wr)) { in isrv_dont_want_wr()
75 FD_CLR(fd, &state->wr); in isrv_dont_want_wr()
293 fd_set wr; in isrv_run() local
303 wr = state->wr; in isrv_run()
304 wrp = &wr; in isrv_run()
Difupdown.c1249 close(infd.wr); in popen2()
1252 xmove_fd(outfd.wr, 1); in popen2()
1257 close(outfd.wr); in popen2()
1258 *in = xfdopen_for_write(infd.wr); in popen2()
Dhttpd.c1658 close(toCgi.wr); in send_cgi_and_exit()
1661 xmove_fd(fromCgi.wr, 1); /* replace stdout with the pipe */ in send_cgi_and_exit()
1725 close(fromCgi.wr); in send_cgi_and_exit()
1727 cgi_io_loop_and_exit(fromCgi.rd, toCgi.wr, post_len); in send_cgi_and_exit()
Dftpd.c712 xmove_fd(outfd.wr, STDOUT_FILENO); in popen_ls()
742 close(outfd.wr); in popen_ls()
/busybox-1.35.0/networking/udhcp/
Dsignalpipe.c50 if (signal_pipe.wr != WRITE_FD) in udhcp_sp_setup()
51 xmove_fd(signal_pipe.wr, WRITE_FD); in udhcp_sp_setup()
/busybox-1.35.0/mailutils/
Dmail.c59 close(child_in.wr); in launch_helper()
62 xmove_fd(child_out.wr, STDOUT_FILENO); in launch_helper()
77 close(child_out.wr); in launch_helper()
80 xmove_fd(child_in.wr, STDOUT_FILENO); in launch_helper()
/busybox-1.35.0/archival/libarchive/bz/
Dcompress.c199 int32_t wr; in generateMTFValues() local
226 wr = 0; in generateMTFValues()
238 AssertD(wr <= i, "generateMTFValues(1)"); in generateMTFValues()
256 s->mtfv[wr] = BZ_RUNB; wr++; in generateMTFValues()
259 s->mtfv[wr] = BZ_RUNA; wr++; in generateMTFValues()
264 s->mtfv[wr] = run; in generateMTFValues()
265 wr++; in generateMTFValues()
279 s->mtfv[wr] = j+1; in generateMTFValues()
280 wr++; in generateMTFValues()
288 s->mtfv[wr] = s->nInUse+1; in generateMTFValues()
[all …]
/busybox-1.35.0/util-linux/
Dunshare.c279 fdp.wr = -1; in unshare_main()
292 close(fdp.wr); in unshare_main()
308 if (fdp.wr >= 0) { in unshare_main()
309 close(fdp.wr); /* Release child */ in unshare_main()
/busybox-1.35.0/libbb/
Dcopyfd.c100 ssize_t wr = full_write(dst_fd, buffer, rd); in bb_full_fd_action() local
101 if (wr < rd) { in bb_full_fd_action()
/busybox-1.35.0/runit/
Drunsvdir.c284 close_on_exec_on(logpipe.wr); in runsvdir_main()
286 ndelay_on(logpipe.wr); in runsvdir_main()
287 if (dup2(logpipe.wr, 2) == -1) { in runsvdir_main()
364 write(logpipe.wr, ".", 1); in runsvdir_main()
Drunsv.c161 write(selfpipe.wr, "", 1); in s_chld_term()
297 if (haslog && dup2(logpipe.wr, 1) == -1) in custom()
377 close(logpipe.wr); in startservice()
381 xdup2(logpipe.wr, 1); in startservice()
513 close_on_exec_on(selfpipe.wr); in runsv_main()
515 ndelay_on(selfpipe.wr); in runsv_main()
557 close_on_exec_on(logpipe.wr); in runsv_main()
708 close(logpipe.wr); in runsv_main()
/busybox-1.35.0/archival/libarchive/
Dopen_transformer.c124 xstate.dst_fd = fd_pipe.wr; in fork_transformer()
127 close(fd_pipe.wr); /* send EOF */ in fork_transformer()
137 xmove_fd(fd_pipe.wr, 1); in fork_transformer()
150 close(fd_pipe.wr); /* don't want to write to the child */ in fork_transformer()
/busybox-1.35.0/archival/
Dcpio.c491 pp.wr = 4; in cpio_main()
503 xmove_fd(pp.wr, STDOUT_FILENO); in cpio_main()
509 close(pp.wr); in cpio_main()
Dtar.c592 close(data.wr); in vfork_compressor()
597 fcntl(status.wr, F_SETFD, FD_CLOEXEC); in vfork_compressor()
628 xmove_fd(data.wr, tar_fd); in vfork_compressor()
631 close(status.wr); in vfork_compressor()
/busybox-1.35.0/shell/
Dhush.c7743 ndelay_on(pair.wr); in setup_heredoc()
7745 written = write(pair.wr, heredoc, len); in setup_heredoc()
7750 close(pair.wr); in setup_heredoc()
7756 ndelay_off(pair.wr); in setup_heredoc()
7776 full_write(pair.wr, heredoc, len); /* may loop or block */ in setup_heredoc()
7780 xmove_fd(pair.wr, STDOUT_FILENO); in setup_heredoc()
7793 close(pair.wr); in setup_heredoc()
9547 pipefds.wr = 1; in run_pipe()
9587 xmove_fd(pipefds.wr, 1); in run_pipe()
9644 close(pipefds.wr); in run_pipe()
/busybox-1.35.0/include/
Dlibbb.h678 struct fd_pair { int rd; int wr; }; member