Lines Matching refs:nfd
1378 int nfd;
1380 nfd = fcntl(shl_dbg_fd, F_DUPFD, FDBASE);
1382 if ((shl_dbg_fd = nfd) == -1)
1394 ksh_dup2(int ofd, int nfd, bool errok)
1398 if (((rv = dup2(ofd, nfd)) < 0) && !errok && (errno != EBADF))
1404 fcntl(nfd, F_SETFD, 0);
1417 int nfd = fd;
1419 if (fd < FDBASE && (nfd = fcntl(fd, F_DUPFD, FDBASE)) < 0 &&
1422 if (nfd < 0 || nfd > SHRT_MAX)
1424 fcntl(nfd, F_SETFD, FD_CLOEXEC);
1425 return ((short)nfd);
1647 int nfd;
1650 if ((nfd = savefd(i)) != i) {
1652 i = nfd;