/freebsd-9.3-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-9.3-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-9.3-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-9.3-release/contrib/ipfilter/ipsend/ |
H A D | resend.c | 85 int fd, wfd = initdevice(dev, 5), len, i; local 87 if (wfd == -1) 140 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-9.3-release/bin/cat/ |
H A D | cat.c | 267 int off, wfd; local 273 wfd = fileno(stdout); 275 if (fstat(wfd, &sbuf)) 291 if ((nw = write(wfd, buf + off, (size_t)nr)) < 0)
|
/freebsd-9.3-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; 623 if (!aflag && (s->wfd = open(wfile,
|
/freebsd-9.3-release/contrib/ipfilter/tools/ |
H A D | ipfs.c | 406 int wfd = -1; local 411 wfd = open(file, O_WRONLY|O_TRUNC|O_CREAT, 0600); 412 if (wfd == -1) { 435 close(wfd); 440 if (write(wfd, ipsp, sizeof(ips)) != sizeof(ips)) { 442 close(wfd); 446 close(wfd);
|
/freebsd-9.3-release/usr.sbin/usbdump/ |
H A D | usbdump.c | 83 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)); 956 if (p->wfd > 0) 957 close(p->wfd);
|
/freebsd-9.3-release/contrib/ipfilter/l4check/ |
H A D | l4check.c | 294 fd_set rfd, wfd; local 347 FD_ZERO(&wfd); 380 FD_SET(l4->l4_fd, &wfd); 388 i = select(mfd + 1, &rfd, &wfd, NULL, &tv); 407 if ((l4->l4_fd >= 0) && FD_ISSET(l4->l4_fd, &wfd)) {
|
/freebsd-9.3-release/crypto/openssh/ |
H A D | channels.c | 235 channel_register_fds(Channel *c, int rfd, int wfd, int efd, argument 240 channel_max_fd = MAX(channel_max_fd, wfd); 245 if (wfd != -1 && wfd != rfd) 246 fcntl(wfd, F_SETFD, FD_CLOEXEC); 247 if (efd != -1 && efd != rfd && efd != wfd) 251 c->wfd = wfd; 252 c->sock = (rfd == wfd) ? rfd : -1; 260 c->wfd_isatty = is_tty || isatty(c->wfd); 279 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 778 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-9.3-release/contrib/nvi/common/ |
H A D | exf.c | 1036 int flags, maxnum, nr, num, nw, rfd, wfd, version; local 1039 rfd = wfd = -1; 1157 if ((wfd = open(wfname, flags | O_WRONLY, S_IRUSR | S_IWUSR)) < 0) { 1165 if ((nw = write(wfd, buf + off, nr)) < 0) { 1178 if (close(wfd)) { 1189 if (wfd != -1) { 1191 (void)close(wfd);
|
H A D | recover.c | 780 rcv_copy(sp, wfd, fname) 782 int wfd; 792 if ((nw = write(wfd, buf + off, nr)) < 0)
|
/freebsd-9.3-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-9.3-release/contrib/netcat/ |
H A D | netcat.c | 800 int n, wfd = fileno(stdin); local 811 pfd[1].fd = wfd; 842 if ((n = read(wfd, buf, plen)) < 0)
|