Lines Matching defs:nfd
1357 int nfd;
1359 nfd = fcntl(shl_dbg_fd, F_DUPFD, FDBASE);
1361 if ((shl_dbg_fd = nfd) == -1)
1373 ksh_dup2(int ofd, int nfd, bool errok)
1377 if (((rv = dup2(ofd, nfd)) < 0) && !errok && (errno != EBADF))
1383 fcntl(nfd, F_SETFD, 0);
1396 int nfd = fd;
1398 if (fd < FDBASE && (nfd = fcntl(fd, F_DUPFD, FDBASE)) < 0 &&
1401 if (nfd < 0 || nfd > SHRT_MAX)
1403 fcntl(nfd, F_SETFD, FD_CLOEXEC);
1404 return ((short)nfd);