Home
last modified time | relevance | path

Searched refs:old_fd (Results 1 – 1 of 1) sorted by relevance

/toolchain/binutils/binutils-2.27/libiberty/
Dpex-unix.c403 save_and_install_fd(int *pnew_fd, int *pflags, int old_fd, int child_fd) in save_and_install_fd() argument
407 flags = fcntl (old_fd, F_GETFD); in save_and_install_fd()
413 if (child_fd >= 0 && dup2 (child_fd, old_fd) < 0) in save_and_install_fd()
419 new_fd = old_fd; in save_and_install_fd()
420 if ((flags & FD_CLOEXEC) == 0 && fcntl (old_fd, F_SETFD, FD_CLOEXEC) < 0) in save_and_install_fd()
427 new_fd = fcntl (old_fd, F_DUPFD_CLOEXEC, 3); in save_and_install_fd()
433 new_fd = fcntl (old_fd, F_DUPFD, 3); in save_and_install_fd()
439 if (dup2 (child_fd, old_fd) < 0) in save_and_install_fd()
446 else if (new_fd != old_fd) in save_and_install_fd()
456 restore_fd(int old_fd, int save_fd, int flags) in restore_fd() argument
[all …]