Searched refs:nfd (Results 1 - 25 of 31) sorted by relevance

12

/freebsd-9.3-release/contrib/ipfilter/ipsend/
H A Diptests.c138 int nfd, i = 0, len, id = getpid(); local
155 nfd = initdevice(dev, 1);
156 if (nfd == -1)
167 (void) send_ip(nfd, 1500, ip, gwip, 1);
183 (void) send_ip(nfd, 1500, ip, gwip, 1);
200 (void) send_ip(nfd, 1500, ip, gwip, 1);
216 (void) send_ip(nfd, 1500, ip, gwip, 1);
236 (void) send_ether(nfd, (char *)ip, i, gwip);
248 (void) send_ether(nfd, (char *)ip, len, gwip);
267 (void) send_ether(nfd, (cha
488 int nfd; local
587 int nfd, i; local
786 int nfd, i; local
951 int nfd, i; local
1301 int nfd, i, j, k; local
1383 int nfd, i, j; local
[all...]
H A Dip.c56 int send_ether(nfd, buf, len, gwip)
57 int nfd, len;
84 err = sendip(nfd, s, sizeof(*eh) + len);
91 int send_ip(nfd, mtu, ip, gwip, frag)
92 int nfd, mtu;
156 err = sendip(nfd, ipbuf, sizeof(*eh) + iplen);
229 err = sendip(nfd, ipbuf, sizeof(*eh) + ts);
252 int send_tcp(nfd, mtu, ip, gwip)
253 int nfd, mtu;
298 return send_ip(nfd, mt
[all...]
H A Dlsock.c199 int fd, nfd, len; local
229 nfd = initdevice(dev, 0);
230 if (nfd == -1)
253 if (send_tcp(nfd, mtu, (ip_t *)ti, gwip) == -1)
H A Dsock.c400 int fd, nfd; local
432 nfd = initdevice(dev, 1);
433 if (nfd == -1)
455 if (send_tcp(nfd, mtu, (ip_t *)ti, gwip) == -1)
/freebsd-9.3-release/contrib/ipfilter/tools/
H A Dipsyncm.c64 int nfd = -1, lfd = -1, n1, n2, n3, len; local
103 if (nfd != -1)
104 close(nfd);
112 nfd = socket(AF_INET, SOCK_DGRAM, 0);
113 if (nfd == -1) {
118 if (connect(nfd, (struct sockaddr *)&sin, sizeof(sin)) == -1) {
209 n3 = write(nfd, buff, n2);
249 if (nfd != -1)
250 close(nfd);
H A Dipsyncs.c60 int nfd = -1 , lfd = -1; local
114 if (nfd != -1)
115 close(nfd);
123 nfd = socket(AF_INET, SOCK_DGRAM, 0);
124 if (nfd == -1) {
130 setsockopt(nfd, SOL_SOCKET, SO_REUSEADDR, &n1, sizeof(n1));
132 if (bind(nfd, (struct sockaddr *)&sin, sizeof(sin)) == -1) {
147 n1 = read(nfd, buff+inbuf, BUFFERLEN-inbuf);
268 if (nfd != -1)
269 close(nfd);
[all...]
H A Dipfs.c575 int nfd, i; local
580 nfd = -1;
588 nfd = open(file, O_RDONLY);
589 if (nfd == -1) {
601 i = read(nfd, &ipn, sizeof(ipn));
624 i = read(nfd, s, n);
667 close(nfd);
668 nfd = -1;
710 if (nfd != -1)
711 close(nfd);
722 int nfd = -1; local
[all...]
/freebsd-9.3-release/contrib/tcsh/
H A Ded.refresh.c562 Char *ofd, *ols, *oe, *nfd, *nls, *ne; local
572 nfd = n;
597 while (nfd < n) {
609 if (*ofd == '\0' && *nfd == '\0') {
619 while ((o > ofd) && (n > nfd) && (*--o == *--n))
641 * case 1: insert: scan from nfd to nls looking for *ofd
644 for (c = *ofd, n = nfd; n < nls; n++) {
652 if (((nse - nsb) < (p - n)) && (2 * (p - n) > n - nfd)) {
663 * case 2: delete: scan from ofd to ols looking for *nfd
665 if (*nfd) {
[all...]
/freebsd-9.3-release/usr.sbin/bluetooth/btpand/
H A Devent.c86 int nfd; local
93 nfd = 0;
127 nfd = (nfd > ev->fd) ? nfd : ev->fd;
132 nfd = (nfd > ev->fd) ? nfd : ev->fd;
141 nfd = select(nfd
[all...]
/freebsd-9.3-release/lib/libedit/
H A Drefresh.c484 char *ofd, *ols, *oe, *nfd, *nls, *ne; local
495 nfd = n;
518 while (nfd < n) {
529 if (*ofd == '\0' && *nfd == '\0') {
536 while ((o > ofd) && (n > nfd) && (*--o == *--n))
550 * case 1: insert: scan from nfd to nls looking for *ofd
553 for (c = *ofd, n = nfd; n < nls; n++) {
564 (2 * (p - n) > n - nfd)) {
574 * case 2: delete: scan from ofd to ols looking for *nfd
576 if (*nfd) {
[all...]
/freebsd-9.3-release/contrib/sendmail/libmilter/
H A Dworker.c381 int nfd, r, i; local
436 nfd = 0;
439 pfd[nfd].fd = RD_PIPE;
440 pfd[nfd].events = MI_POLL_RD_FLAGS;
441 pfd[nfd].revents = 0;
442 nfd++;
463 if (nfd >= dim_pfd)
486 if (nfd < dim_pfd)
489 pfd[nfd].fd = ctx->ctx_sd;
490 pfd[nfd]
[all...]
/freebsd-9.3-release/contrib/ipfilter/samples/
H A Drelay.c37 int nfd, n, rw; local
41 nfd = ifd;
42 if (nfd < ofd)
43 nfd = ofd;
44 if (nfd < rfd)
45 nfd = rfd;
59 switch ((n = select(nfd + 1, &rfds, &wfds, NULL, NULL)))
/freebsd-9.3-release/contrib/libreadline/
H A Ddisplay.c1207 register char *ofd, *ols, *oe, *nfd, *nls, *ne; local
1307 nfd = new + temp;
1317 nfd = new + nmax;
1322 for (ofd = old, nfd = new;
1329 nfd = new + new_offset;
1336 for (ofd = old, nfd = new;
1337 (ofd - old < omax) && *ofd && (*ofd == *nfd);
1338 ofd++, nfd++)
1345 for (nd = nfd - new, ne = nfd; n
[all...]
/freebsd-9.3-release/contrib/bmake/
H A Djob.h104 emul_poll(struct pollfd *fd, int nfd, int timeout);
/freebsd-9.3-release/lib/libc/rpc/
H A Dclnt_generic.c428 int nfd; local
433 if ((nfd = _fcntl(fd, F_DUPFD, __rpc_minfd)) == -1)
436 if (_fsync(nfd) == -1) {
437 _close(nfd);
447 return (nfd);
/freebsd-9.3-release/sbin/mdmfs/
H A Dmdmfs.c597 int nfd; /* Null (/dev/null) file descriptor. */ local
658 nfd = open(_PATH_DEVNULL, O_RDWR);
659 if (nfd == -1)
661 if (dup2(nfd, STDIN_FILENO) < 0)
664 if (dup2(nfd, STDOUT_FILENO) < 0)
666 if (dup2(nfd, STDERR_FILENO) < 0)
/freebsd-9.3-release/contrib/netcat/
H A Dnetcat.c111 void fdpass(int nfd) __attribute__((noreturn));
796 readwrite(int nfd) argument
807 pfd[0].fd = nfd;
819 close(nfd);
827 if ((n = read(nfd, buf, plen)) < 0)
830 shutdown(nfd, SHUT_RD);
835 atelnet(nfd, buf, n);
846 shutdown(nfd, SHUT_WR);
850 if (atomicio(vwrite, nfd, buf, n) != n)
862 fdpass(int nfd) argument
919 atelnet(int nfd, unsigned char *buf, unsigned int size) argument
[all...]
/freebsd-9.3-release/usr.sbin/ipfwpcap/
H A Dipfwpcap.c158 int nfd; local
227 nfd = sd + 1;
232 r = select(nfd, &rds, NULL, NULL, NULL);
/freebsd-9.3-release/usr.sbin/ppp/
H A Dbundle.c1381 int niov, expect, f, *fd, nfd, onfd; local
1450 nfd = ((caddr_t)cmsg + cmsg->cmsg_len - (caddr_t)fd) / sizeof(int);
1452 if (nfd < 2) {
1454 nfd, nfd == 1 ? "" : "s");
1455 while (nfd--)
1456 close(fd[nfd]);
1471 while (nfd--)
1472 close(fd[nfd]);
1490 while (nfd
1548 int niov, f, expect, newsid, fd[SEND_MAXFD], nfd, reply[2]; local
[all...]
/freebsd-9.3-release/libexec/rlogind/
H A Drlogind.c343 int cc, nfd, n; local
354 nfd = f + 1;
356 nfd = p + 1;
357 if (nfd > FD_SETSIZE) {
381 if ((n = select(nfd, &ibits, omask, &ebits, 0)) < 0) {
/freebsd-9.3-release/libexec/rshd/
H A Drshd.c194 int cc, fd, nfd, pv[2], pid, s; local
421 nfd = pv[0];
423 nfd = s;
427 nfd++;
430 if (select(nfd, &ready, (fd_set *)0,
/freebsd-9.3-release/sbin/iscontrol/
H A Dfsm.c271 int n, fd, nfd; local
297 nfd = open(dev, O_RDWR);
298 if(nfd < 0) {
305 sess->fd = nfd;
/freebsd-9.3-release/contrib/tnftp/src/
H A Dftp.c520 int nr, nfd; local
523 nfd = 0;
525 pfd[nfd].fd = fileno(ecin);
526 pfd[nfd++].events = POLLIN;
530 pfd[nfd].fd = fileno(din);
531 pfd[nfd++].events = POLLIN;
534 if ((nr = ftp_poll(pfd, nfd, sec * 1000)) <= 0)
538 nfd = 0;
540 nr |= (pfd[nfd++].revents & POLLIN) ? 1 : 0;
542 nr |= (pfd[nfd
[all...]
/freebsd-9.3-release/sys/kern/
H A Dsys_generic.c1212 selscan(td, ibits, obits, nfd)
1215 int nfd;
1226 for (idx = 0, fd = 0; fd < nfd; idx++) {
1227 end = imin(fd + NFDBITS, nfd);
1384 pollout(td, fds, ufds, nfd)
1388 u_int nfd;
1394 for (i = 0; i < nfd; i++) {
1409 pollscan(td, fds, nfd)
1412 u_int nfd;
1420 for (i = 0; i < nfd;
[all...]
/freebsd-9.3-release/contrib/telnet/telnetd/
H A Dtelnetd.c743 int nfd; local
941 nfd = ((f > p) ? f : p) + 1;
969 if ((c = select(nfd, &ibits, &obits, &xbits,

Completed in 157 milliseconds

12