Searched refs:dupfd (Results 1 – 3 of 3) sorted by relevance
/external/bison/lib/ |
D | dup2.c | 121 dupfd (int fd, int desired_fd) in dupfd() function 128 int r = dupfd (fd, desired_fd); in dupfd() 151 result = dupfd (fd, desired_fd); in dup2()
|
D | fcntl.c | 50 dupfd (int oldfd, int newfd, int flags) in dupfd() function 181 result = dupfd (fd, target, 0); in rpl_fcntl() 222 result = dupfd (fd, target, O_CLOEXEC); in rpl_fcntl()
|
/external/openssh/ |
D | misc.c | 721 int nullfd, dupfd; in sanitise_stdfd() local 723 if ((nullfd = dupfd = open(_PATH_DEVNULL, O_RDWR)) == -1) { in sanitise_stdfd() 728 while (++dupfd <= 2) { in sanitise_stdfd() 730 if (fcntl(dupfd, F_GETFL, 0) >= 0) in sanitise_stdfd() 732 if (dup2(nullfd, dupfd) == -1) { in sanitise_stdfd()
|