Searched refs:new_fd (Results 1 – 1 of 1) sorted by relevance
406 int new_fd, flags; in save_and_install_fd() local413 new_fd = -1, flags = 0; in save_and_install_fd()420 new_fd = old_fd; in save_and_install_fd()428 new_fd = fcntl (old_fd, F_DUPFD_CLOEXEC, 3); in save_and_install_fd()429 if (new_fd < 0) in save_and_install_fd()434 new_fd = fcntl (old_fd, F_DUPFD, 3); in save_and_install_fd()435 if (new_fd < 0) in save_and_install_fd()437 if (fcntl (new_fd, F_SETFD, FD_CLOEXEC) < 0) in save_and_install_fd()446 *pnew_fd = new_fd; in save_and_install_fd()447 else if (new_fd != old_fd) in save_and_install_fd()