| /src/regress/sys/kern/select/ |
| select.c | 88 int nfd = 0; local in function:f 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);
|
| /src/tests/lib/libc/c063/ |
| t_linkat.c | 63 int ofd, nfd, fd; local in function:ATF_TC_BODY 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 in function:ATF_TC_BODY 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 in function:ATF_TC_BODY 192 ATF_REQUIRE((nfd = open(NDIR, O_RDONLY, 0)) != -1) [all...] |
| t_renameat.c | 61 int ofd, nfd, fd; local in function:ATF_TC_BODY 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);
|
| /src/lib/libedit/ |
| refresh.c | 544 wchar_t *ofd, *ols, *oe, *nfd, *nls, *ne; local in function:re_update_line 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...] |
| /src/usr.bin/write/ |
| write.c | 159 int fd, nfd; local in function:search_utmp 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);
|
| /src/sys/ufs/chfs/ |
| chfs_vnode.c | 203 struct chfs_dirent *nfd; local in function:chfs_makeinode 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->nhash = hash32_buf(nfd->name, cnp->cn_namelen, HASH32_BUF_INIT) [all...] |
| /src/bin/ksh/ |
| io.c | 231 ksh_dup2(ofd, nfd, errok) 233 int nfd; 236 int ret = dup2(ofd, nfd); 253 int nfd; local in function:savefd 256 nfd = ksh_dupbase(fd, FDBASE); 257 if (nfd < 0) { 266 nfd = fd; 267 fd_clexec(nfd); 268 return nfd;
|
| shf.h | 14 #define shf_setfileno(shf,nfd) ((shf)->fd = (nfd))
|
| shf.c | 60 int nfd; local in function:shf_open 62 nfd = ksh_dupbase(fd, FDBASE); 64 if (nfd < 0) { 68 fd = nfd;
|
| /src/sys/arch/acorn32/stand/lib/ |
| riscosdisk.c | 66 int drive, partition, nfd, nhd, err; local in function:rodisk_open 78 if (xfilecore_drives(&privword, NULL, &nfd, &nhd) != NULL) 81 (drive < 4 && drive >= nfd) ||
|
| /src/tests/crypto/opencrypto/ |
| h_ioctl.c | 68 int nfd; local in function:wait_for_read 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);
|
| /src/games/hack/ |
| hack.save.c | 162 int nfd; local in function:dorecover 199 if ((nfd = creat(lock, FMASK)) < 0) 201 savelev(nfd, tmp); 202 (void) close(nfd);
|
| /src/regress/sys/kern/unfdpass/ |
| unfdpass.c | 352 int i, fd, sock, nfd, *files; local in function:child 378 nfd = NFILES; 386 nfd--; 393 for (; i < nfd; i++) {
|
| /src/sys/external/bsd/compiler_rt/dist/lib/tsan/rtl/ |
| tsan_platform_linux.cc | 304 int ExtractResolvFDs(void *state, int *fds, int nfd) { 308 for (int i = 0; i < MAXNS && cnt < nfd; i++) { 321 int ExtractRecvmsgFDs(void *msgp, int *fds, int nfd) { 331 if (res == nfd)
|
| tsan_platform.h | 1013 int ExtractResolvFDs(void *state, int *fds, int nfd); 1014 int ExtractRecvmsgFDs(void *msg, int *fds, int nfd);
|
| /src/usr.bin/ftp/ |
| ftp.c | 546 int nr, nfd; local in function:empty 549 nfd = 0; 551 pfd[nfd].fd = fileno(ecin); 552 pfd[nfd++].events = POLLIN; 556 pfd[nfd].fd = fileno(din); 557 pfd[nfd++].events = POLLIN; 560 if ((nr = ftp_poll(pfd, nfd, sec * 1000)) <= 0) 564 nfd = 0; 566 nr |= (pfd[nfd++].revents & POLLIN) ? 1 : 0; 568 nr |= (pfd[nfd++].revents & POLLIN) ? 2 : 0 [all...] |
| /src/bin/sh/ |
| eval.c | 154 int nfd; local in function:sh_pipe 160 nfd = fcntl(fds[0], F_DUPFD, 3); 161 if (nfd != -1) { 163 fds[0] = nfd; 168 nfd = fcntl(fds[1], F_DUPFD, 3); 169 if (nfd != -1) { 171 fds[1] = nfd;
|
| /src/sys/kern/ |
| sys_select.c | 510 selscan(char *bits, const int nfd, const size_t ni, register_t *retval) 524 for (i = 0; i < nfd; i += NFDBITS) { 529 while ((j = ffs(ibits)) && (fd = i + --j) < nfd) { 679 pollscan(struct pollfd *fds, const int nfd, register_t *retval) 684 for (i = 0; i < nfd; i++, fds++) {
|
| /src/libexec/rlogind/ |
| rlogind.c | 454 int cc, nfd; local in function:protocol 480 if ((nfd = poll(set, 2, INFTIM)) < 0) { 485 if (nfd == 0) {
|
| /src/usr.sbin/mopd/mopd/ |
| process.c | 435 int i, nfd; local in function:mopProcessDL 512 if ((nfd = open(filename, O_RDONLY, 0)) != -1) { 513 close(nfd);
|
| /src/tests/net/net/ |
| t_unix.c | 459 int nfd, error; local in function:ATF_TC_BODY 514 RL(nfd = poll(&pfd, 1, 0));
|
| /src/lib/libc/rpc/ |
| svc_fdset.c | 171 svc_pollfd_init(struct pollfd *pfd, int nfd) 173 for (int i = 0; i < nfd; i++) {
|
| /src/sys/miscfs/procfs/ |
| procfs_vnops.c | 1432 int nfd; local in function:procfs_readdir 1514 nfd = atomic_load_consume(&p->p_fd->fd_dt)->dt_nfiles; 1523 ncookies = uimin(ncookies, (nfd + 2 - i)); 1544 for (; uio->uio_resid >= UIO_MX && i < nfd; i++) { 1568 nfd = 3; /* ., .., pid */ 1571 ncookies = uimin(ncookies, (nfd + 2 - i)); 1592 for (; uio->uio_resid >= UIO_MX && i < nfd; i++) {
|
| /src/usr.bin/nc/ |
| netcat.c | 136 void fdpass(int nfd) __dead; 1312 fdpass(int nfd) 1339 *(int *)CMSG_DATA(cmsg) = nfd; 1368 atelnet(int nfd, unsigned char *buf, unsigned int size) 1392 if (atomicio(vwrite, nfd, obuf, 3) != 3)
|
| /src/tests/lib/libcurses/director/ |
| testlang_parse.y | 900 int nfd, check_fd; 949 nfd = 2; 955 nfd = 1; 958 while (poll(fds, nfd, 500) == nfd) { 979 nfd = 2;
|