/freebsd-11-stable/tests/sys/kern/pipe/ |
H A D | big_pipe_test.c | 22 fd_set wfd; local 26 FD_ZERO(&wfd); 27 FD_SET(fd, &wfd); 28 i = select(fd+1, NULL, &wfd, NULL, NULL);
|
/freebsd-11-stable/usr.sbin/ppp/ |
H A D | server.c | 100 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-11-stable/contrib/sendmail/src/ |
H A D | sfsasl.c | 566 ** 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...] |
H A D | srvrsmtp.c | 880 int rfd, wfd; local 2245 wfd = sm_io_getinfo(OutChannel, SM_IO_WHAT_FD, NULL); 2247 if (rfd < 0 || wfd < 0 || 2249 SSL_set_wfd(srv_ssl, wfd) <= 0) 2268 tlsret = tls_retry(srv_ssl, rfd, wfd, tlsstart,
|
/freebsd-11-stable/contrib/ipfilter/ipsend/ |
H A D | resend.c | 76 int fd, wfd = initdevice(dev, 5), len, i; local 79 if (wfd == -1) 132 if (sendip(wfd, (char *)eh, len) == -1)
|
H A D | ipsend.c | 131 int wfd; local 133 wfd = initdevice(dev, 5); 134 if (wfd == -1) 136 return send_packet(wfd, mtu, ip, gwip);
|
/freebsd-11-stable/usr.bin/sed/ |
H A D | defs.h | 66 int wfd; /* Cached file descriptor */ member in struct:s_subst
|
H A D | process.c | 480 if (cp->u.s->wfd == -1 && (cp->u.s->wfd = open(cp->u.s->wfile, 483 if (write(cp->u.s->wfd, ps, psl) != (ssize_t)psl || 484 write(cp->u.s->wfd, "\n", 1) != 1) 775 if (cp->u.s->wfd != -1 && close(cp->u.s->wfd)) 777 cp->u.s->wfd = -1;
|
H A D | compile.c | 566 s->wfd = -1; 626 if (!aflag && (s->wfd = open(wfile,
|
/freebsd-11-stable/bin/cat/ |
H A D | cat.c | 294 int off, wfd; local 300 wfd = fileno(stdout); 302 if (fstat(wfd, &sbuf)) 318 if ((nw = write(wfd, buf + off, (size_t)nr)) < 0)
|
/freebsd-11-stable/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 | 236 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-11-stable/contrib/ipfilter/tools/ |
H A D | ipfs.c | 386 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-11-stable/usr.sbin/usbdump/ |
H A D | usbdump.c | 85 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-11-stable/contrib/ipfilter/l4check/ |
H A D | l4check.c | 279 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-11-stable/crypto/openssh/ |
H A D | channels.c | 261 channel_register_fds(Channel *c, int rfd, int wfd, int efd, argument 266 channel_max_fd = MAXIMUM(channel_max_fd, wfd); 271 if (wfd != -1 && wfd != rfd) 272 fcntl(wfd, F_SETFD, FD_CLOEXEC); 273 if (efd != -1 && efd != rfd && efd != wfd) 277 c->wfd = wfd; 278 c->sock = (rfd == wfd) ? rfd : -1; 286 c->wfd_isatty = is_tty || isatty(c->wfd); 305 channel_new(char *ctype, int type, int rfd, int wfd, int efd, u_int window, u_int maxpack, int extusage, char *remote_name, int nonblock) argument 855 channel_set_fds(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 | 501 if (channel_close_fd(&c->wfd) < 0) 504 c->self, c->wfd, strerror(errno));
|
H A D | channels.h | 104 int wfd; /* write fd */ member in struct:Channel 110 int wfd_isatty; /* wfd is a tty */
|
/freebsd-11-stable/contrib/nvi/common/ |
H A D | exf.c | 1030 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 D | recover.c | 795 int wfd, 805 if ((nw = write(wfd, buf + off, nr)) < 0) 793 rcv_copy( SCR *sp, int wfd, char *fname) argument
|
/freebsd-11-stable/gnu/usr.bin/rcs/ci/ |
H A D | ci.c | 669 int wfd = Ifileno(workptr); variable 703 wfd_off = lseek(wfd, (off_t)0, SEEK_CUR); 706 && lseek(wfd, (off_t)0, SEEK_SET) != 0)) 719 switch (runv(wfd, diffname, diffv)) { 724 if (lseek(wfd, wfd_off, SEEK_CUR) == -1) 743 fstat(wfd, &checkworkstat) != 0
|
/freebsd-11-stable/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);
|
H A D | p2p_group.c | 473 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",
|
H A D | p2p_parse.c | 556 if (elems.wfd) {
|
/freebsd-11-stable/contrib/wpa/src/common/ |
H A D | ieee802_11_common.h | 61 const u8 *wfd; member in struct:ieee802_11_elems
|