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

12

/freebsd-11.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.c51 int send_ether(nfd, buf, len, gwip)
52 int nfd, len;
79 err = sendip(nfd, s, sizeof(*eh) + len);
86 int send_ip(nfd, mtu, ip, gwip, frag)
87 int nfd, mtu;
151 err = sendip(nfd, ipbuf, sizeof(*eh) + iplen);
224 err = sendip(nfd, ipbuf, sizeof(*eh) + ts);
247 int send_tcp(nfd, mtu, ip, gwip)
248 int nfd, mtu;
293 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)
/freebsd-11.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.c564 int nfd, i; local
569 nfd = -1;
577 nfd = open(file, O_RDONLY);
578 if (nfd == -1) {
590 i = read(nfd, &ipn, sizeof(ipn));
613 i = read(nfd, s, n);
656 close(nfd);
657 nfd = -1;
699 if (nfd != -1)
700 close(nfd);
711 int nfd = -1; local
[all...]
/freebsd-11.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-11.0-release/usr.sbin/bluetooth/btpand/
H A Devent.c87 int nfd; local
94 nfd = 0;
128 nfd = (nfd > ev->fd) ? nfd : ev->fd;
133 nfd = (nfd > ev->fd) ? nfd : ev->fd;
142 nfd = select(nfd
[all...]
/freebsd-11.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-11.0-release/contrib/netbsd-tests/lib/libc/c063/
H A Dt_linkat.c63 int ofd, nfd, fd; local
72 ATF_REQUIRE((nfd = open(NDIR, O_RDONLY, 0)) != -1);
73 ATF_REQUIRE(linkat(ofd, BASEFILE, nfd, BASETARGET, 0) == 0);
75 ATF_REQUIRE(close(nfd) == 0);
149 int ofd, nfd, fd; local
159 ATF_REQUIRE((nfd = open(NDIR, O_RDONLY, 0)) != -1);
160 ATF_REQUIRE(linkat(ofd, BASELINK, nfd, BASETARGET,
163 ATF_REQUIRE(close(nfd) == 0);
182 int ofd, nfd, fd; local
192 ATF_REQUIRE((nfd
[all...]
H A Dt_renameat.c61 int ofd, nfd, fd; local
72 ATF_REQUIRE((nfd = open(NDIR, O_RDONLY, 0)) != -1);
73 ATF_REQUIRE(renameat(ofd, BASEFILE, nfd, BASETARGET) == 0);
75 ATF_REQUIRE(close(nfd) == 0);
/freebsd-11.0-release/lib/libedit/
H A Drefresh.c506 Char *ofd, *ols, *oe, *nfd, *nls, *ne; local
517 nfd = n;
540 while (nfd < n) {
551 if (*ofd == '\0' && *nfd == '\0') {
558 while ((o > ofd) && (n > nfd) && (*--o == *--n))
572 * case 1: insert: scan from nfd to nls looking for *ofd
575 for (c = *ofd, n = nfd; n < nls; n++) {
586 (2 * (p - n) > n - nfd)) {
596 * case 2: delete: scan from ofd to ols looking for *nfd
598 if (*nfd) {
[all...]
/freebsd-11.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-11.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-11.0-release/contrib/blacklist/bin/
H A Dblacklistd.c317 addfd(struct pollfd **pfdp, bl_t **blp, size_t *nfd, size_t *maxfd, argument
323 if (*nfd >= *maxfd) {
333 (*pfdp)[*nfd].fd = bl_getfd(bl);
334 (*pfdp)[*nfd].events = POLLIN;
335 (*blp)[*nfd] = bl;
336 *nfd += 1;
481 size_t nfd = 0; local
485 addfd(&pfd, &bl, &nfd, &maxfd, blsock);
493 addfd(&pfd, &bl, &nfd, &maxfd, line);
515 switch (poll(pfd, (nfds_t)nfd, tou
[all...]
/freebsd-11.0-release/contrib/libreadline/
H A Ddisplay.c1217 register char *ofd, *ols, *oe, *nfd, *nls, *ne; local
1317 nfd = new + temp;
1327 nfd = new + nmax;
1332 for (ofd = old, nfd = new;
1339 nfd = new + new_offset;
1346 for (ofd = old, nfd = new;
1347 (ofd - old < omax) && *ofd && (*ofd == *nfd);
1348 ofd++, nfd++)
1355 for (nd = nfd - new, ne = nfd; n
[all...]
/freebsd-11.0-release/contrib/bmake/
H A Djob.h104 emul_poll(struct pollfd *fd, int nfd, int timeout);
/freebsd-11.0-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-11.0-release/sbin/mdmfs/
H A Dmdmfs.c600 int nfd; /* Null (/dev/null) file descriptor. */ local
661 nfd = open(_PATH_DEVNULL, O_RDWR);
662 if (nfd == -1)
664 if (dup2(nfd, STDIN_FILENO) < 0)
667 if (dup2(nfd, STDOUT_FILENO) < 0)
669 if (dup2(nfd, STDERR_FILENO) < 0)
/freebsd-11.0-release/contrib/compiler-rt/lib/tsan/rtl/
H A Dtsan_platform_linux.cc311 int ExtractResolvFDs(void *state, int *fds, int nfd) { argument
315 for (int i = 0; i < MAXNS && cnt < nfd; i++) {
328 int ExtractRecvmsgFDs(void *msgp, int *fds, int nfd) { argument
338 if (res == nfd)
/freebsd-11.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-11.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-11.0-release/libexec/rshd/
H A Drshd.c194 int cc, fd, nfd, pv[2], pid, s; local
442 nfd = pv[0];
444 nfd = s;
448 nfd++;
451 if (select(nfd, &ready, (fd_set *)0,
/freebsd-11.0-release/sbin/swapon/
H A Dswapon.c645 int pfd[2], nfd, dup2dn; local
692 nfd = open(_PATH_DEVNULL, O_RDWR);
693 if (nfd == -1)
695 if (dup2(nfd, STDIN_FILENO) < 0)
697 if (dup2dn && dup2(nfd, STDOUT_FILENO) < 0)
699 if (dup2(nfd, STDERR_FILENO) < 0)

Completed in 189 milliseconds

12