Searched refs:newfd (Results 1 – 1 of 1) sorted by relevance
57 int newfd = fcntl(fd, F_DUPFD_CLOEXEC, minfd); in os_dupfd_cloexec() local59 if (newfd >= 0) in os_dupfd_cloexec()60 return newfd; in os_dupfd_cloexec()65 newfd = fcntl(fd, F_DUPFD, minfd); in os_dupfd_cloexec()67 if (newfd < 0) in os_dupfd_cloexec()70 long flags = fcntl(newfd, F_GETFD); in os_dupfd_cloexec()72 close(newfd); in os_dupfd_cloexec()76 if (fcntl(newfd, F_SETFD, flags | FD_CLOEXEC) == -1) { in os_dupfd_cloexec()77 close(newfd); in os_dupfd_cloexec()81 return newfd; in os_dupfd_cloexec()