dupfd
socket_t dupfd = INVALID_SOCKET;
dupfd = fcntl(connfd, F_DUPFD, 256);
if (ValidSocket(dupfd) && SM_FD_OK_SELECT(dupfd))
connfd = dupfd;
dupfd = INVALID_SOCKET;
int dupfd;
if ((dupfd = fdmap[i].dup_fd) > 0)
renamef(dupfd, fdmap[i].org_fd);
int dupfd;
dupfd = open(_PATH_DEVNULL, O_RDONLY);
if (dupfd < 0)
if (dup2(dupfd, STDIN_FILENO) == -1)
(fd = dupfd(fd, P->asfd)) != P->asfd) {
(fd = dupfd(fd, P->statfd)) != P->statfd) {
(fd = dupfd(fd, P->ctlfd)) != P->ctlfd) {
(fd = dupfd(fd, 0)) < 0) {
(fd = dupfd(fd, 0)) < 0) {
(fd = dupfd(fd, 0)) < 0) {
(fd = dupfd(fd, 0)) < 0) {
(fd = dupfd(fd, 0)) < 0) {
(fd = dupfd(fd, 0)) < 0) {
(fd = dupfd(fd, 0)) < 0) {
(fd = dupfd(fd, 0)) < 0) {
extern int dupfd(int, int);
(fd = dupfd(fd, 0)) < 0)
(fd = dupfd(fd, 0)) < 0)
int dupfd, ret = 0;
dupfd = open(_PATH_DEVNULL, O_RDONLY);
if (dupfd < 0) {
if (dup2(dupfd, STDIN_FILENO) == -1) {
VERIFY0(close(dupfd));
int fd, dupfd;
if ((dupfd = dup2(fd, FNO_DUPFD)) != FNO_DUPFD) {
f = fdopen(dupfd, "r+");
check_file(f, dupfd, "fdopen of dup2'd file");
dupfd = getminor(vp->v_rdev);
if ((fp = getf(dupfd)) == NULL) {
releasef(dupfd);
int fd, dupfd;