Searched refs:wfd (Results 1 - 25 of 30) sorted by relevance

12

/freebsd-12-stable/tests/sys/kern/pipe/
H A Dbig_pipe_test.c22 fd_set wfd; local
26 FD_ZERO(&wfd);
27 FD_SET(fd, &wfd);
28 i = select(fd+1, NULL, &wfd, NULL, NULL);
/freebsd-12-stable/usr.sbin/ppp/
H A Dserver.c100 int ssize = sizeof ss, wfd; local
105 wfd = accept(s->fd, sa, &ssize);
106 if (wfd < 0)
109 close(wfd);
110 wfd = -1;
113 wfd = -1;
115 if (wfd >= 0)
127 close(wfd);
128 wfd = -1;
142 close(wfd);
[all...]
/freebsd-12-stable/contrib/sendmail/src/
H A Dsfsasl.c566 ** wfd -- write fd
579 tls_retry(ssl, rfd, wfd, tlsstart, timeout, err, where)
582 int wfd;
620 where, rfd, wfd, err);
624 (err == SSL_ERROR_WANT_WRITE && !SM_FD_OK_SELECT(wfd)))
630 where, rfd, wfd);
659 FD_SET(wfd, &ssl_maskw);
664 ret = select(wfd + 1, NULL, &ssl_maskw, &ssl_maskx,
726 int r, rfd, wfd, try, ssl_err; local
754 wfd
852 int r, rfd, wfd, try, ssl_err; local
[all...]
/freebsd-12-stable/contrib/ipfilter/ipsend/
H A Dresend.c76 int fd, wfd = initdevice(dev, 5), len, i; local
79 if (wfd == -1)
132 if (sendip(wfd, (char *)eh, len) == -1)
H A Dipsend.c131 int wfd; local
133 wfd = initdevice(dev, 5);
134 if (wfd == -1)
136 return send_packet(wfd, mtu, ip, gwip);
/freebsd-12-stable/usr.sbin/rtsold/
H A Dcap_script.c92 int error, wfd; local
106 wfd = nvlist_take_descriptor(nvl, "fd");
110 return (error == 0 ? wfd : -1);
H A Drtsol.c730 int status, wfd; local
735 wfd = cap_script_run(capscript, argv);
736 if (wfd == -1) {
747 if (write(wfd, smp->sm_msg, len) != len) {
756 (void)close(wfd);
/freebsd-12-stable/contrib/llvm-project/compiler-rt/lib/tsan/rtl/
H A Dtsan_fd.h47 void FdPipeCreate(ThreadState *thr, uptr pc, int rfd, int wfd);
H A Dtsan_fd.cpp236 void FdPipeCreate(ThreadState *thr, uptr pc, int rfd, int wfd) { argument
237 DPrintf("#%d: FdCreatePipe(%d, %d)\n", thr->tid, rfd, wfd);
240 init(thr, pc, wfd, ref(s));
/freebsd-12-stable/bin/cat/
H A Dcat.c303 int off, wfd; local
309 wfd = fileno(stdout);
311 if (fstat(wfd, &sbuf))
330 if ((nw = write(wfd, buf + off, (size_t)nr)) < 0)
/freebsd-12-stable/usr.bin/sed/
H A Ddefs.h68 int wfd; /* Cached file descriptor */ member in struct:s_subst
H A Dprocess.c483 if (cp->u.s->wfd == -1 && (cp->u.s->wfd = open(cp->u.s->wfile,
486 if (write(cp->u.s->wfd, ps, psl) != (ssize_t)psl ||
487 write(cp->u.s->wfd, "\n", 1) != 1)
778 if (cp->u.s->wfd != -1 && close(cp->u.s->wfd))
780 cp->u.s->wfd = -1;
H A Dcompile.c682 s->wfd = -1;
742 if (!aflag && (s->wfd = open(wfile,
/freebsd-12-stable/usr.sbin/bhyve/
H A Duart_emul.c105 int wfd; /* fd for writing, may be == rfd */ member in struct:ttyfd
174 (void)write(tf->wfd, &wb, 1);
649 sc->tty.wfd = STDOUT_FILENO;
654 if (fcntl(sc->tty.wfd, F_SETFL, O_NONBLOCK) != 0)
683 sc->tty.rfd = sc->tty.wfd = fd;
/freebsd-12-stable/contrib/ipfilter/tools/
H A Dipfs.c386 int wfd = -1; local
391 wfd = open(file, O_WRONLY|O_TRUNC|O_CREAT, 0600);
392 if (wfd == -1) {
415 close(wfd);
420 if (write(wfd, ipsp, sizeof(ips)) != sizeof(ips)) {
422 close(wfd);
426 close(wfd);
/freebsd-12-stable/usr.sbin/usbdump/
H A Dusbdump.c85 int wfd; member in struct:usbcap
655 ret = write(p->wfd, &len, sizeof(int));
660 ret = write(p->wfd, data, datalen);
760 p->wfd = open(w_arg, O_CREAT | O_TRUNC | O_WRONLY, S_IRUSR | S_IWUSR);
761 if (p->wfd < 0) {
769 ret = write(p->wfd, (const void *)&uf, sizeof(uf));
991 if (p->wfd > 0)
992 close(p->wfd);
/freebsd-12-stable/contrib/ipfilter/l4check/
H A Dl4check.c279 fd_set rfd, wfd; local
332 FD_ZERO(&wfd);
365 FD_SET(l4->l4_fd, &wfd);
373 i = select(mfd + 1, &rfd, &wfd, NULL, &tv);
392 if ((l4->l4_fd >= 0) && FD_ISSET(l4->l4_fd, &wfd)) {
/freebsd-12-stable/contrib/nvi/common/
H A Dexf.c1030 int flags, maxnum, nr, num, nw, rfd, wfd, version; local
1037 rfd = wfd = -1;
1166 if ((wfd = open(wfname, flags | O_WRONLY, S_IRUSR | S_IWUSR)) < 0) {
1174 if ((nw = write(wfd, buf + off, nr)) < 0) {
1187 if (close(wfd)) {
1198 if (wfd != -1) {
1200 (void)close(wfd);
H A Drecover.c795 int wfd,
805 if ((nw = write(wfd, buf + off, nr)) < 0)
793 rcv_copy( SCR *sp, int wfd, char *fname) argument
/freebsd-12-stable/crypto/openssh/
H A Dnchan.c379 debug2("channel %d: %s (i%d o%d sock %d wfd %d efd %d [%s])",
380 c->self, __func__, c->istate, c->ostate, c->sock, c->wfd, c->efd,
390 if (channel_close_fd(ssh, &c->wfd) < 0) {
393 c->self, __func__, c->wfd, c->istate, c->ostate,
404 debug2("channel %d: %s (i%d o%d sock %d wfd %d efd %d [%s])",
437 debug2("channel %d: %s (i%d o%d sock %d wfd %d efd %d [%s])",
H A Dchannels.c309 channel_register_fds(struct ssh *ssh, Channel *c, int rfd, int wfd, int efd, argument
316 sc->channel_max_fd = MAXIMUM(sc->channel_max_fd, wfd);
321 if (wfd != -1 && wfd != rfd)
322 fcntl(wfd, F_SETFD, FD_CLOEXEC);
323 if (efd != -1 && efd != rfd && efd != wfd)
327 c->wfd = wfd;
328 c->sock = (rfd == wfd) ? rfd : -1;
336 c->wfd_isatty = is_tty || isatty(c->wfd);
355 channel_new(struct ssh *ssh, char *ctype, int type, int rfd, int wfd, int efd, u_int window, u_int maxpack, int extusage, char *remote_name, int nonblock) argument
444 int sock = c->sock, rfd = c->rfd, wfd = c->wfd, efd = c->efd; local
1029 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 Dchannels.h118 int wfd; /* write fd */ member in struct:Channel
124 int wfd_isatty; /* wfd is a tty */
/freebsd-12-stable/contrib/wpa/src/p2p/
H A Dp2p_sd.c19 static int wfd_wsd_supported(struct wpabuf *wfd) argument
25 if (wfd == NULL)
28 pos = wpabuf_head(wfd);
29 end = pos + wpabuf_len(wfd);
H A Dp2p_group.c473 struct wpabuf *wfd = wpabuf_dup(group->wfd_ie); local
474 ie = wpabuf_concat(wfd, ie);
632 " to group (p2p=%d wfd=%d client_info=%d); num_members=%u/%u",
/freebsd-12-stable/contrib/wpa/src/common/
H A Dieee802_11_common.h61 const u8 *wfd; member in struct:ieee802_11_elems

Completed in 376 milliseconds

12