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

12

/freebsd-10.0-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.c54 int send_ether(nfd, buf, len, gwip)
55 int nfd, len;
82 err = sendip(nfd, s, sizeof(*eh) + len);
89 int send_ip(nfd, mtu, ip, gwip, frag)
90 int nfd, mtu;
154 err = sendip(nfd, ipbuf, sizeof(*eh) + iplen);
227 err = sendip(nfd, ipbuf, sizeof(*eh) + ts);
250 int send_tcp(nfd, mtu, ip, gwip)
251 int nfd, mtu;
296 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.c396 int fd, nfd; local
428 nfd = initdevice(dev, 1);
429 if (nfd == -1)
451 if (send_tcp(nfd, mtu, (ip_t *)ti, gwip) == -1)
/freebsd-10.0-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 Dipfsyncd.c60 int nfd = -1; variable
175 if (nfd != -1) {
176 close(nfd);
177 nfd = -1;
208 if (nfd != -1)
209 close(nfd);
231 FD_SET(nfd, &mrd);
232 maxfd = nfd;
235 debug(2, "nfd %d lfd %d maxfd %d\n", nfd, lf
[all...]
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.c567 int nfd, i; local
572 nfd = -1;
580 nfd = open(file, O_RDONLY);
581 if (nfd == -1) {
593 i = read(nfd, &ipn, sizeof(ipn));
616 i = read(nfd, s, n);
659 close(nfd);
660 nfd = -1;
702 if (nfd != -1)
703 close(nfd);
714 int nfd = -1; local
[all...]
/freebsd-10.0-release/contrib/ntp/arlib/
H A Dsample.c26 int afd, nfd, pid = getpid(), del; local
45 nfd = select(FD_SETSIZE, &rd, NULL, NULL, &tv2);
48 nfd = select(FD_SETSIZE, &rd, NULL, NULL, NULL);
111 int nfd, del; local
124 nfd = select(FD_SETSIZE, &rd, 0, 0, &delay);
125 if (nfd == 0)
/freebsd-10.0-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-10.0-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-10.0-release/contrib/libarchive/libarchive/test/
H A Dtest_archive_string_conversion.c313 char nfc[80], nfd[80]; local
339 strncpy(nfd, e, sizeof(nfd)-1);
340 nfd[sizeof(nfd)-1] = '\0';
352 nfd, 0);
361 nfd, nfc, line);
388 nfd, nfc, line);
397 nfd, nfc, line);
417 "to WCS NFC(%s):%d", nfd, nf
524 char nfc[80], nfd[80]; local
[all...]
/freebsd-10.0-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-10.0-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-10.0-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-10.0-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-10.0-release/contrib/bmake/
H A Djob.h104 emul_poll(struct pollfd *fd, int nfd, int timeout);
/freebsd-10.0-release/lib/libc/rpc/
H A Dclnt_generic.c446 int nfd; local
451 if ((nfd = _fcntl(fd, F_DUPFD, __rpc_minfd)) == -1)
454 if (_fsync(nfd) == -1) {
455 _close(nfd);
465 return (nfd);
/freebsd-10.0-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-10.0-release/usr.sbin/ipfwpcap/
H A Dipfwpcap.c158 int nfd; local
227 nfd = sd + 1;
232 r = select(nfd, &rds, NULL, NULL, NULL);
/freebsd-10.0-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-10.0-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-10.0-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-10.0-release/contrib/netcat/
H A Dnetcat.c792 readwrite(int nfd) argument
803 pfd[0].fd = nfd;
815 close(nfd);
823 if ((n = read(nfd, buf, plen)) < 0)
826 shutdown(nfd, SHUT_RD);
831 atelnet(nfd, buf, n);
842 shutdown(nfd, SHUT_WR);
846 if (atomicio(vwrite, nfd, buf, n) != n)
855 atelnet(int nfd, unsigned char *buf, unsigned int size) argument
879 if (atomicio(vwrite, nfd, obu
[all...]
/freebsd-10.0-release/sbin/swapon/
H A Dswapon.c643 int pfd[2], nfd, dup2dn; local
689 nfd = open(_PATH_DEVNULL, O_RDWR);
690 if (nfd == -1)
692 if (dup2(nfd, STDIN_FILENO) < 0)
694 if (dup2dn && dup2(nfd, STDOUT_FILENO) < 0)
696 if (dup2(nfd, STDERR_FILENO) < 0)

Completed in 420 milliseconds

12