Lines Matching refs:nfd
1375 int nfd; in initio() local
1377 nfd = fcntl(shl_dbg_fd, F_DUPFD, FDBASE); in initio()
1379 if ((shl_dbg_fd = nfd) == -1) in initio()
1391 ksh_dup2(int ofd, int nfd, bool errok) in ksh_dup2() argument
1395 if (((rv = dup2(ofd, nfd)) < 0) && !errok && (errno != EBADF)) in ksh_dup2()
1401 fcntl(nfd, F_SETFD, 0); in ksh_dup2()
1414 int nfd = fd; in savefd() local
1416 if (fd < FDBASE && (nfd = fcntl(fd, F_DUPFD, FDBASE)) < 0 && in savefd()
1419 if (nfd < 0 || nfd > SHRT_MAX) in savefd()
1421 fcntl(nfd, F_SETFD, FD_CLOEXEC); in savefd()
1422 return ((short)nfd); in savefd()