/freebsd-10.0-release/tools/regression/pipe/ |
H A D | bigpipetest.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-10.0-release/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-10.0-release/contrib/sendmail/src/ |
H A D | sfsasl.c | 564 ** wfd -- write fd 577 tls_retry(ssl, rfd, wfd, tlsstart, timeout, err, where) 580 int wfd; 618 where, rfd, wfd, err); 623 (err == SSL_ERROR_WANT_WRITE && wfd >= FD_SETSIZE))) 629 where, rfd, wfd); 659 FD_SET(wfd, &ssl_maskw); 664 ret = select(wfd + 1, NULL, &ssl_maskw, &ssl_maskx, 722 int r, rfd, wfd, try, ssl_err; local 750 wfd 851 int r, rfd, wfd, try, ssl_err; local [all...] |
H A D | deliver.c | 6114 int rfd, wfd; local 6168 wfd = sm_io_getinfo(mci->mci_out, SM_IO_WHAT_FD, NULL); 6171 if (rfd < 0 || wfd < 0 || 6173 (result = SSL_set_wfd(clt_ssl, wfd)) != 1) 6194 i = tls_retry(clt_ssl, rfd, wfd, tlsstart,
|
H A D | srvrsmtp.c | 621 int rfd, wfd; local 1882 wfd = sm_io_getinfo(OutChannel, SM_IO_WHAT_FD, NULL); 1884 if (rfd < 0 || wfd < 0 || 1886 SSL_set_wfd(srv_ssl, wfd) <= 0) 1910 i = tls_retry(srv_ssl, rfd, wfd, tlsstart,
|
/freebsd-10.0-release/contrib/ipfilter/ipsend/ |
H A D | resend.c | 81 int fd, wfd = initdevice(dev, 5), len, i; local 84 if (wfd == -1) 137 if (sendip(wfd, (char *)eh, len) == -1)
|
H A D | ipsend.c | 155 int wfd; local 157 wfd = initdevice(dev, 5); 158 if (wfd == -1) 160 return send_packet(wfd, mtu, ip, gwip);
|
/freebsd-10.0-release/bin/cat/ |
H A D | cat.c | 268 int off, wfd; local 274 wfd = fileno(stdout); 276 if (fstat(wfd, &sbuf)) 292 if ((nw = write(wfd, buf + off, (size_t)nr)) < 0)
|
/freebsd-10.0-release/usr.bin/sed/ |
H A D | defs.h | 66 int wfd; /* Cached file descriptor */ member in struct:s_subst
|
H A D | process.c | 456 if (cp->u.s->wfd == -1 && (cp->u.s->wfd = open(cp->u.s->wfile, 459 if (write(cp->u.s->wfd, ps, psl) != (ssize_t)psl || 460 write(cp->u.s->wfd, "\n", 1) != 1) 750 if (cp->u.s->wfd != -1 && close(cp->u.s->wfd)) 752 cp->u.s->wfd = -1;
|
H A D | compile.c | 566 s->wfd = -1; 622 if (!aflag && (s->wfd = open(wfile,
|
/freebsd-10.0-release/contrib/ipfilter/tools/ |
H A D | ipfs.c | 398 int wfd = -1; local 403 wfd = open(file, O_WRONLY|O_TRUNC|O_CREAT, 0600); 404 if (wfd == -1) { 427 close(wfd); 432 if (write(wfd, ipsp, sizeof(ips)) != sizeof(ips)) { 434 close(wfd); 438 close(wfd);
|
/freebsd-10.0-release/contrib/wpa/src/common/ |
H A D | ieee802_11_common.h | 40 const u8 *wfd; member in struct:ieee802_11_elems
|
H A D | ieee802_11_common.c | 102 elems->wfd = pos;
|
/freebsd-10.0-release/usr.sbin/usbdump/ |
H A D | usbdump.c | 82 int wfd; member in struct:usbcap 644 ret = write(p->wfd, &len, sizeof(int)); 649 ret = write(p->wfd, data, datalen); 749 p->wfd = open(w_arg, O_CREAT | O_TRUNC | O_WRONLY, S_IRUSR | S_IWUSR); 750 if (p->wfd < 0) { 758 ret = write(p->wfd, (const void *)&uf, sizeof(uf)); 961 if (p->wfd > 0) 962 close(p->wfd);
|
/freebsd-10.0-release/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-10.0-release/crypto/openssh/ |
H A D | channels.c | 234 channel_register_fds(Channel *c, int rfd, int wfd, int efd, argument 239 channel_max_fd = MAX(channel_max_fd, wfd); 244 if (wfd != -1 && wfd != rfd) 245 fcntl(wfd, F_SETFD, FD_CLOEXEC); 246 if (efd != -1 && efd != rfd && efd != wfd) 250 c->wfd = wfd; 251 c->sock = (rfd == wfd) ? rfd : -1; 259 c->wfd_isatty = is_tty || isatty(c->wfd); 278 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 777 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 | channels.h | 102 int wfd; /* write fd */ member in struct:Channel 108 int wfd_isatty; /* wfd is a tty */
|
H A D | nchan.c | 501 if (channel_close_fd(&c->wfd) < 0) 504 c->self, c->wfd, strerror(errno));
|
/freebsd-10.0-release/contrib/nvi/common/ |
H A D | exf.c | 1029 int flags, maxnum, nr, num, nw, rfd, wfd, version; local 1036 rfd = wfd = -1; 1165 if ((wfd = open(wfname, flags | O_WRONLY, S_IRUSR | S_IWUSR)) < 0) { 1173 if ((nw = write(wfd, buf + off, nr)) < 0) { 1186 if (close(wfd)) { 1197 if (wfd != -1) { 1199 (void)close(wfd);
|
H A D | recover.c | 798 int wfd, 808 if ((nw = write(wfd, buf + off, nr)) < 0) 796 rcv_copy( SCR *sp, int wfd, char *fname) argument
|
/freebsd-10.0-release/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-10.0-release/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_parse.c | 418 if (elems.wfd) {
|
/freebsd-10.0-release/contrib/netcat/ |
H A D | netcat.c | 796 int n, wfd = fileno(stdin); local 807 pfd[1].fd = wfd; 838 if ((n = read(wfd, buf, plen)) < 0)
|