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

123

/netbsd-current/external/bsd/ipf/dist/ipsend/
H A Diptests.c141 int nfd, i = 0, len, id = getpid(); local
158 nfd = initdevice(dev, 1);
159 if (nfd == -1)
170 (void) send_ip(nfd, 1500, ip, gwip, 1);
186 (void) send_ip(nfd, 1500, ip, gwip, 1);
203 (void) send_ip(nfd, 1500, ip, gwip, 1);
219 (void) send_ip(nfd, 1500, ip, gwip, 1);
239 (void) send_ether(nfd, (char *)ip, i, gwip);
251 (void) send_ether(nfd, (char *)ip, len, gwip);
270 (void) send_ether(nfd, (cha
491 int nfd; local
590 int nfd, i; local
789 int nfd, i; local
954 int nfd, i; local
1304 int nfd, i, j, k; local
1386 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.c201 int fd, nfd, len; local
231 nfd = initdevice(dev, 0);
232 if (nfd == -1)
255 if (send_tcp(nfd, mtu, (ip_t *)ti, gwip) == -1)
/netbsd-current/external/bsd/ipf/dist/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.c62 int nfd = -1; variable
177 if (nfd != -1) {
178 close(nfd);
179 nfd = -1;
210 if (nfd != -1)
211 close(nfd);
233 FD_SET(nfd, &mrd);
234 maxfd = nfd;
237 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...]
/netbsd-current/external/bsd/libarchive/dist/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...]
/netbsd-current/regress/sys/kern/select/
H A Dselect.c88 int nfd = 0; local
106 nfd++;
112 } while (nfd == 0);
130 if (ret > nfd) {
141 nfd = 0;
164 nfd++;
167 if (ret != nfd) {
168 fprintf(stderr, "[%p] ret(%d) != nfd(%d)\n",
169 (void *)pthread_self(), ret, nfd);
/netbsd-current/external/gpl2/gettext/dist/gettext-tools/gnulib-lib/
H A Dw32spawn.h39 int nfd; local
51 nfd = _open_osfhandle ((long) new_handle, O_BINARY);
52 if (nfd < 0)
55 return nfd;
/netbsd-current/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);
/netbsd-current/lib/libedit/
H A Drefresh.c544 wchar_t *ofd, *ols, *oe, *nfd, *nls, *ne; local
555 nfd = n;
578 while (nfd < n) {
589 if (*ofd == '\0' && *nfd == '\0') {
596 while ((o > ofd) && (n > nfd) && (*--o == *--n))
610 * case 1: insert: scan from nfd to nls looking for *ofd
613 for (c = *ofd, n = nfd; n < nls; n++) {
624 (2 * (p - n) > n - nfd)) {
634 * case 2: delete: scan from ofd to ols looking for *nfd
636 if (*nfd) {
[all...]
/netbsd-current/usr.bin/write/
H A Dwrite.c159 int fd, nfd; local
174 nfd = term_chk(uid, ep->line, &msgsok, &atime, 0,
176 if (nfd == -1)
179 close(nfd);
185 fd = nfd;
187 close(nfd);
195 fd = nfd;
197 close(nfd);
/netbsd-current/sys/ufs/chfs/
H A Dchfs_vnode.c203 struct chfs_dirent *nfd; local
285 nfd = chfs_alloc_dirent(cnp->cn_namelen + 1);
286 nfd->vno = ip->ino;
287 nfd->version = (++pdir->chvc->highest_version);
288 nfd->type = ip->ch_type;
289 nfd->nsize = cnp->cn_namelen;
290 memcpy(&(nfd->name), cnp->cn_nameptr, cnp->cn_namelen);
291 nfd->name[nfd->nsize] = 0;
292 nfd
[all...]
/netbsd-current/external/bsd/blocklist/bin/
H A Dblocklistd.c334 addfd(struct pollfd **pfdp, bl_t **blp, size_t *nfd, size_t *maxfd, argument
340 if (*nfd >= *maxfd) {
350 (*pfdp)[*nfd].fd = bl_getfd(bl);
351 (*pfdp)[*nfd].events = POLLIN;
352 (*blp)[*nfd] = bl;
353 *nfd += 1;
517 size_t nfd = 0; local
521 addfd(&pfd, &bl, &nfd, &maxfd, blsock[i]);
531 addfd(&pfd, &bl, &nfd, &maxfd, line);
534 if (nfd
[all...]
/netbsd-current/external/bsd/ipf/dist/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)))
/netbsd-current/bin/ksh/
H A Dio.c231 ksh_dup2(ofd, nfd, errok)
233 int nfd;
236 int ret = dup2(ofd, nfd);
253 int nfd; local
256 nfd = ksh_dupbase(fd, FDBASE);
257 if (nfd < 0) {
266 nfd = fd;
267 fd_clexec(nfd);
268 return nfd;
H A Dshf.h14 #define shf_setfileno(shf,nfd) ((shf)->fd = (nfd))
/netbsd-current/external/gpl3/gdb.old/dist/readline/readline/
H A Ddisplay.c1468 register char *ofd, *ols, *oe, *nfd, *nls, *ne; local
1613 nfd = new + nd;
1666 nfd = new + temp;
1679 nfd = new + nmax;
1686 for (ofd = old, nfd = new;
1694 nfd = new + new_offset;
1701 for (ofd = old, nfd = new;
1702 (ofd - old < omax) && *ofd && (*ofd == *nfd);
1703 ofd++, nfd++)
1710 for (nd = nfd
[all...]
/netbsd-current/external/gpl3/gdb/dist/readline/readline/
H A Ddisplay.c1632 char *ofd, *ols, *oe, *nfd, *nls, *ne; local
1782 nfd = new + nd;
1844 nfd = new;
1849 for (nd = 0, ne = nfd; nd < nmax && *ne; ne++, nd++);
1853 bytes_to_insert = ne - nfd;
1858 _rl_output_some_chars (nfd, local_prompt_len);
1895 nfd = new + temp;
1910 nfd = new + nmax;
1919 for (ofd = old, ofdf = old_face, nfd = new, nfdf = new_face;
1929 nfd
[all...]
/netbsd-current/sys/arch/acorn32/stand/lib/
H A Driscosdisk.c66 int drive, partition, nfd, nhd, err; local
78 if (xfilecore_drives(&privword, NULL, &nfd, &nhd) != NULL)
81 (drive < 4 && drive >= nfd) ||
/netbsd-current/tests/crypto/opencrypto/
H A Dh_ioctl.c68 int nfd; local
70 nfd = poll(&pfd, 1, 5000);
71 if (nfd == -1) {
75 if (nfd == 0) {
80 if (nfd != 1 || (pfd.revents & POLLIN) == 0) {
81 warnx("failed: invalid poll: %d", nfd);
/netbsd-current/games/hack/
H A Dhack.save.c162 int nfd; local
199 if ((nfd = creat(lock, FMASK)) < 0)
201 savelev(nfd, tmp);
202 (void) close(nfd);
/netbsd-current/sys/external/bsd/compiler_rt/dist/lib/tsan/rtl/
H A Dtsan_platform_linux.cc304 int ExtractResolvFDs(void *state, int *fds, int nfd) { argument
308 for (int i = 0; i < MAXNS && cnt < nfd; i++) {
321 int ExtractRecvmsgFDs(void *msgp, int *fds, int nfd) { argument
331 if (res == nfd)

Completed in 452 milliseconds

123