F_DUPFD
newfd = io->ops->op_fcntl(fd, F_DUPFD, 3);
#define ksh_dupbase(fd, base) fcntl(fd, F_DUPFD, base)
nfd = fcntl(fds[0], F_DUPFD, 3);
nfd = fcntl(fds[1], F_DUPFD, 3);
if ((i = fcntl(fd, F_DUPFD,
i = fcntl(fd, F_DUPFD,
i = fcntl(fd, F_DUPFD,
if ((fd = fcntl(0, F_DUPFD, (fcntl_int)(i - 1))) >= 0) {
#define F_DUPFD_CLOEXEC F_DUPFD
newd = op_fcntl(oldd, F_DUPFD, minfd);
fd = op_fcntl(ofd, F_DUPFD, i);
case F_DUPFD:
cmd = F_DUPFD;
case F_DUPFD:
CASERETURN(F_DUPFD);
int fd = fcntl(pipe_fds[i], F_DUPFD, minfd);