/netbsd-6-1-5-RELEASE/dist/ipf/ipsend/ |
H A D | iptests.c | 142 int nfd, i = 0, len, id = getpid(); local 159 nfd = initdevice(dev, 1); 160 if (nfd == -1) 171 (void) send_ip(nfd, 1500, ip, gwip, 1); 187 (void) send_ip(nfd, 1500, ip, gwip, 1); 204 (void) send_ip(nfd, 1500, ip, gwip, 1); 220 (void) send_ip(nfd, 1500, ip, gwip, 1); 240 (void) send_ether(nfd, (char *)ip, i, gwip); 252 (void) send_ether(nfd, (char *)ip, len, gwip); 271 (void) send_ether(nfd, (cha 492 int nfd; local 591 int nfd, i; local 790 int nfd, i; local 955 int nfd, i; local 1305 int nfd, i, j, k; local 1387 int nfd, i, j; local [all...] |
H A D | ip.c | 56 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 D | lsock.c | 199 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 D | sock.c | 403 int fd, nfd; local 435 nfd = initdevice(dev, 1); 436 if (nfd == -1) 458 if (send_tcp(nfd, mtu, (ip_t *)ti, gwip) == -1)
|
/netbsd-6-1-5-RELEASE/usr.bin/window/ |
H A D | wwiomux.c | 70 nfds_t nfd; local 88 nfd = 0; 92 nfd++; 95 if (maxfds <= ++nfd) { /* One more for the fd=0 case below */ 97 malloc(sizeof(*pfd) * nfd) : 98 realloc(pfd, sizeof(*pfd) * nfd); 108 maxfds = nfd; 111 nfd = 0; 116 pfd[nfd].fd = w->ww_pty; 117 pfd[nfd [all...] |
/netbsd-6-1-5-RELEASE/dist/ipf/tools/ |
H A D | ipsyncm.c | 64 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 D | ipsyncs.c | 60 int nfd = -1 , lfd = -1; local 113 if (nfd != -1) 114 close(nfd); 122 nfd = socket(AF_INET, SOCK_DGRAM, 0); 123 if (nfd == -1) { 129 setsockopt(nfd, SOL_SOCKET, SO_REUSEADDR, &n1, sizeof(n1)); 131 if (bind(nfd, (struct sockaddr *)&sin, sizeof(sin)) == -1) { 146 n1 = read(nfd, buff+inbuf, BUFFERLEN-inbuf); 267 if (nfd != -1) 268 close(nfd); [all...] |
H A D | ipfs.c | 575 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...] |
/netbsd-6-1-5-RELEASE/external/bsd/ntp/dist/arlib/ |
H A D | sample.c | 28 int afd, nfd, pid = getpid(), del; local 47 nfd = select(FD_SETSIZE, &rd, NULL, NULL, &tv2); 50 nfd = select(FD_SETSIZE, &rd, NULL, NULL, NULL); 113 int nfd, del; local 126 nfd = select(FD_SETSIZE, &rd, 0, 0, &delay); 127 if (nfd == 0)
|
/netbsd-6-1-5-RELEASE/regress/sys/kern/select/ |
H A D | select.c | 88 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-6-1-5-RELEASE/gnu/dist/gettext/gettext-tools/lib/ |
H A D | w32spawn.h | 39 int nfd; local 51 nfd = _open_osfhandle ((long) new_handle, O_BINARY); 52 if (nfd < 0) 55 return nfd;
|
/netbsd-6-1-5-RELEASE/lib/libedit/ |
H A D | refresh.c | 504 Char *ofd, *ols, *oe, *nfd, *nls, *ne; local 515 nfd = n; 538 while (nfd < n) { 549 if (*ofd == '\0' && *nfd == '\0') { 556 while ((o > ofd) && (n > nfd) && (*--o == *--n)) 570 * case 1: insert: scan from nfd to nls looking for *ofd 573 for (c = *ofd, n = nfd; n < nls; n++) { 584 (2 * (p - n) > n - nfd)) { 594 * case 2: delete: scan from ofd to ols looking for *nfd 596 if (*nfd) { [all...] |
/netbsd-6-1-5-RELEASE/usr.bin/write/ |
H A D | write.c | 159 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-6-1-5-RELEASE/bin/ksh/ |
H A D | io.c | 276 ksh_dup2(ofd, nfd, errok) 278 int nfd; 281 int ret = dup2(ofd, nfd); 289 (void) fcntl(nfd, F_SETFD, 0); 304 int nfd; local 307 nfd = ksh_dupbase(fd, FDBASE); 308 if (nfd < 0) { 317 nfd = fd; 318 fd_clexec(nfd); 319 return nfd; [all...] |
H A D | shf.h | 14 #define shf_setfileno(shf,nfd) ((shf)->fd = (nfd))
|
/netbsd-6-1-5-RELEASE/sys/ufs/chfs/ |
H A D | chfs_vnode.c | 196 struct chfs_dirent *nfd;//, *fd; local 273 nfd = chfs_alloc_dirent(cnp->cn_namelen + 1); 274 nfd->vno = ip->ino; 275 nfd->version = (++pdir->chvc->highest_version); 276 nfd->type = type; 277 // nfd->next = NULL; 278 nfd->nsize = cnp->cn_namelen; 279 memcpy(&(nfd->name), cnp->cn_nameptr, cnp->cn_namelen); 280 nfd->name[nfd [all...] |
/netbsd-6-1-5-RELEASE/dist/ipf/samples/ |
H A D | relay.c | 37 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-6-1-5-RELEASE/external/gpl3/gdb/dist/readline/ |
H A D | display.c | 1172 register char *ofd, *ols, *oe, *nfd, *nls, *ne; local 1272 nfd = new + temp; 1282 nfd = new + nmax; 1287 for (ofd = old, nfd = new; 1294 nfd = new + new_offset; 1301 for (ofd = old, nfd = new; 1302 (ofd - old < omax) && *ofd && (*ofd == *nfd); 1303 ofd++, nfd++) 1310 for (nd = nfd - new, ne = nfd; n [all...] |
/netbsd-6-1-5-RELEASE/sys/arch/acorn32/stand/lib/ |
H A D | riscosdisk.c | 66 int drive, partition, nfd, nhd, err; local 78 if (xfilecore_drives(&privword, NULL, &nfd, &nhd) != NULL) 81 (drive < 4 && drive >= nfd) ||
|
/netbsd-6-1-5-RELEASE/games/hack/ |
H A D | hack.save.c | 162 int nfd; local 199 if ((nfd = creat(lock, FMASK)) < 0) 201 savelev(nfd, tmp); 202 (void) close(nfd);
|
/netbsd-6-1-5-RELEASE/usr.bin/make/ |
H A D | job.h | 104 emul_poll(struct pollfd *fd, int nfd, int timeout);
|
/netbsd-6-1-5-RELEASE/regress/sys/kern/unfdpass/ |
H A D | unfdpass.c | 351 int i, fd, sock, nfd, *files; local 377 nfd = NFILES; 385 nfd--; 392 for (; i < nfd; i++) {
|
/netbsd-6-1-5-RELEASE/sys/kern/ |
H A D | sys_select.c | 378 selscan(char *bits, const int nfd, const size_t ni, register_t *retval) argument 390 for (i = 0; i < nfd; i += NFDBITS) { 395 while ((j = ffs(ibits)) && (fd = i + --j) < nfd) { 527 pollscan(struct pollfd *fds, const int nfd, register_t *retval) argument 532 for (i = 0; i < nfd; i++, fds++) {
|
/netbsd-6-1-5-RELEASE/bin/sh/ |
H A D | eval.c | 135 int nfd; local 141 nfd = fcntl(fds[0], F_DUPFD, 3); 142 if (nfd != -1) { 144 fds[0] = nfd; 149 nfd = fcntl(fds[1], F_DUPFD, 3); 150 if (nfd != -1) { 152 fds[1] = nfd;
|
/netbsd-6-1-5-RELEASE/usr.bin/ftp/ |
H A D | ftp.c | 514 int nr, nfd; local 517 nfd = 0; 519 pfd[nfd].fd = fileno(ecin); 520 pfd[nfd++].events = POLLIN; 524 pfd[nfd].fd = fileno(din); 525 pfd[nfd++].events = POLLIN; 528 if ((nr = ftp_poll(pfd, nfd, sec * 1000)) <= 0) 532 nfd = 0; 534 nr |= (pfd[nfd++].revents & POLLIN) ? 1 : 0; 536 nr |= (pfd[nfd [all...] |