/freebsd-current/tests/sys/kern/pipe/ |
H A D | big_pipe_test.c | 20 fd_set wfd; local 24 FD_ZERO(&wfd); 25 FD_SET(fd, &wfd); 26 i = select(fd+1, NULL, &wfd, NULL, NULL);
|
/freebsd-current/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cp_files/ |
H A D | seekflood.c | 131 int h = 0, i, j, rfd, wfd; local 137 wfd = _open_file(i, 1); 139 _write_file(i, wfd); 141 close(wfd); 145 wfd = _open_file(j, 1); 147 _write_file(j, wfd); 149 close(wfd);
|
/freebsd-current/usr.sbin/ppp/ |
H A D | server.c | 98 int ssize = sizeof ss, wfd; local 103 wfd = accept(s->fd, sa, &ssize); 104 if (wfd < 0) 107 close(wfd); 108 wfd = -1; 111 wfd = -1; 113 if (wfd >= 0) 125 close(wfd); 126 wfd = -1; 140 close(wfd); [all...] |
/freebsd-current/bin/cat/ |
H A D | cat.c | 382 int wfd; local 385 wfd = fileno(stdout); 389 ret = copy_file_range(rfd, NULL, wfd, NULL, SSIZE_MAX, 0); 399 int off, wfd; local 405 wfd = fileno(stdout); 407 if (fstat(wfd, &sbuf)) 426 if ((nw = write(wfd, buf + off, (size_t)nr)) < 0)
|
/freebsd-current/contrib/sendmail/src/ |
H A D | sfsasl.c | 558 ** wfd -- write fd 571 tls_retry(ssl, rfd, wfd, tlsstart, timeout, err, where) 574 int wfd; 612 where, rfd, wfd, err); 616 (err == SSL_ERROR_WANT_WRITE && !SM_FD_OK_SELECT(wfd))) 622 where, rfd, wfd); 651 FD_SET(wfd, &ssl_maskw); 656 ret = select(wfd + 1, NULL, &ssl_maskw, &ssl_maskx, 718 int r, rfd, wfd, try, ssl_err; local 746 wfd 844 int r, rfd, wfd, try, ssl_err; local [all...] |
/freebsd-current/usr.sbin/bhyve/ |
H A D | uart_backend.c | 53 int wfd; /* fd for writing, may be == rfd */ member in struct:ttyfd 113 (void)write(tf->wfd, &wb, 1); 274 sc->tty.wfd = STDOUT_FILENO; 279 if (fcntl(sc->tty.wfd, F_SETFL, O_NONBLOCK) != 0) 313 sc->tty.rfd = sc->tty.wfd = fd;
|
/freebsd-current/sbin/ipf/ipsend/ |
H A D | resend.c | 68 int fd, wfd = initdevice(dev, 5), len, i; local 71 if (wfd == -1) 124 if (sendip(wfd, (char *)eh, len) == -1)
|
H A D | ipsend.c | 122 int wfd; local 124 wfd = initdevice(dev, 5); 125 if (wfd == -1) 127 return (send_packet(wfd, mtu, ip, gwip));
|
/freebsd-current/usr.sbin/rtsold/ |
H A D | cap_script.c | 89 int error, wfd; local 103 wfd = nvlist_take_descriptor(nvl, "fd"); 107 return (error == 0 ? wfd : -1);
|
H A D | rtsol.c | 744 int status, wfd; local 749 wfd = cap_script_run(capscript, argv); 750 if (wfd == -1) { 761 if (write(wfd, smp->sm_msg, len) != len) { 770 (void)close(wfd);
|
/freebsd-current/contrib/llvm-project/compiler-rt/lib/tsan/rtl/ |
H A D | tsan_fd.h | 47 void FdPipeCreate(ThreadState *thr, uptr pc, int rfd, int wfd);
|
H A D | tsan_fd.cpp | 271 void FdPipeCreate(ThreadState *thr, uptr pc, int rfd, int wfd) { argument 272 DPrintf("#%d: FdCreatePipe(%d, %d)\n", thr->tid, rfd, wfd); 275 init(thr, pc, wfd, ref(s));
|
/freebsd-current/usr.bin/sed/ |
H A D | defs.h | 65 int wfd; /* Cached file descriptor */ member in struct:s_subst
|
H A D | process.c | 478 if (cp->u.s->wfd == -1 && (cp->u.s->wfd = open(cp->u.s->wfile, 481 if (write(cp->u.s->wfd, ps, psl) != (ssize_t)psl || 482 write(cp->u.s->wfd, "\n", 1) != 1) 773 if (cp->u.s->wfd != -1 && close(cp->u.s->wfd)) 775 cp->u.s->wfd = -1;
|
/freebsd-current/sbin/ipf/ipfs/ |
H A D | ipfs.c | 373 int wfd = -1; local 378 wfd = open(file, O_WRONLY|O_TRUNC|O_CREAT, 0600); 379 if (wfd == -1) { 402 close(wfd); 407 if (write(wfd, ipsp, sizeof(ips)) != sizeof(ips)) { 409 close(wfd); 413 close(wfd);
|
/freebsd-current/crypto/openssh/ |
H A D | channels.c | 424 channel_register_fds(struct ssh *ssh, Channel *c, int rfd, int wfd, int efd, argument 431 if (wfd != -1 && wfd != rfd) 432 (void)fcntl(wfd, F_SETFD, FD_CLOEXEC); 433 if (efd != -1 && efd != rfd && efd != wfd) 437 c->wfd = wfd; 438 c->sock = (rfd == wfd) ? rfd : -1; 446 c->wfd_isatty = is_tty || isatty(c->wfd); 464 if (wfd ! 492 channel_new(struct ssh *ssh, char *ctype, int type, int rfd, int wfd, int efd, u_int window, u_int maxpack, int extusage, const char *remote_name, int nonblock) argument 603 int sock = c->sock, rfd = c->rfd, wfd = c->wfd, efd = c->efd; local 1229 channel_set_fds(struct ssh *ssh, int id, int rfd, int wfd, int efd, int extusage, int nonblock, int is_tty, u_int window_max) argument [all...] |
H A D | nchan.c | 381 debug2_f("channel %d: (i%d o%d sock %d wfd %d efd %d [%s])", 382 c->self, c->istate, c->ostate, c->sock, c->wfd, c->efd, 391 if (channel_close_fd(ssh, c, &c->wfd) < 0) { 393 "fd %d [i%d o%d]: %.100s", c->self, c->wfd, 404 debug2_f("channel %d: (i%d o%d sock %d wfd %d efd %d [%s])", 435 debug_f("channel %d: (i%d o%d sock %d wfd %d efd %d [%s])",
|
H A D | channels.h | 136 int wfd; /* write fd */ member in struct:Channel 141 int pfds[4]; /* pollfd entries for rfd/wfd/efd/sock */ 145 int wfd_isatty; /* wfd is a tty */
|
/freebsd-current/usr.sbin/usbdump/ |
H A D | usbdump.c | 83 int wfd; member in struct:usbcap 653 ret = write(p->wfd, &len, sizeof(int)); 658 ret = write(p->wfd, data, datalen); 758 p->wfd = open(w_arg, O_CREAT | O_TRUNC | O_WRONLY, S_IRUSR | S_IWUSR); 759 if (p->wfd < 0) { 767 ret = write(p->wfd, (const void *)&uf, sizeof(uf)); 1027 if (p->wfd > 0) 1028 close(p->wfd);
|
/freebsd-current/share/examples/ipfilter/l4check/ |
H A D | l4check.c | 277 fd_set rfd, wfd; local 330 FD_ZERO(&wfd); 363 FD_SET(l4->l4_fd, &wfd); 371 i = select(mfd + 1, &rfd, &wfd, NULL, &tv); 390 if ((l4->l4_fd >= 0) && FD_ISSET(l4->l4_fd, &wfd)) {
|
/freebsd-current/usr.bin/script/ |
H A D | script.c | 110 fd_set rfd, wfd; local 300 FD_ZERO(&wfd); 305 FD_SET(master, &wfd); 318 n = pselect(master + 1, &rfd, &wfd, NULL, tvp, pselmask); 349 if (n > 0 && FD_ISSET(master, &wfd)) {
|
/freebsd-current/contrib/nvi/common/ |
H A D | exf.c | 1027 int flags, maxnum, nr, num, nw, rfd, wfd, version; local 1034 rfd = wfd = -1; 1163 if ((wfd = open(wfname, flags | O_WRONLY, S_IRUSR | S_IWUSR)) < 0) { 1171 if ((nw = write(wfd, buf + off, nr)) < 0) { 1184 if (close(wfd)) { 1196 if (wfd != -1) { 1198 (void)close(wfd);
|
H A D | recover.c | 787 rcv_copy(SCR *sp, int wfd, char *fname) argument 796 if ((nw = write(wfd, buf + off, nr)) < 0)
|
/freebsd-current/contrib/wpa/src/p2p/ |
H A D | p2p_sd.c | 19 static int wfd_wsd_supported(struct wpabuf *wfd) argument 25 if (wfd == NULL) 28 pos = wpabuf_head(wfd); 29 end = pos + wpabuf_len(wfd);
|
/freebsd-current/sys/contrib/openzfs/contrib/pyzfs/libzfs_core/ |
H A D | _libzfs_core.py | 1870 (rfd, wfd) = os.pipe() 1872 fcntl.fcntl(wfd, fcntl.F_SETFD, fcntl.FD_CLOEXEC) 1874 options['fd'] = int32_t(wfd) 1880 return (rfd, wfd)
|