Searched refs:dupfd (Results 1 – 9 of 9) sorted by relevance
/netbsd-src/external/gpl3/gdb/dist/gnulib/import/ |
H A D | fdopendir.c | 138 int dupfd = dup (fd); in fdopendir_with_dup() local 139 if (dupfd < 0 && errno == EMFILE) in fdopendir_with_dup() 140 dupfd = older_dupfd; in fdopendir_with_dup() 141 if (dupfd < 0) in fdopendir_with_dup() 147 if (dupfd < fd - 1 && dupfd != older_dupfd) in fdopendir_with_dup() 149 dir = fdopendir_with_dup (fd, dupfd, cwd); in fdopendir_with_dup() 155 dir = fd_clone_opendir (dupfd, cwd); in fdopendir_with_dup() 159 int fd1 = dup (dupfd); in fdopendir_with_dup() 165 if (dupfd != older_dupfd) in fdopendir_with_dup() 166 close (dupfd); in fdopendir_with_dup()
|
H A D | dup2.c | 114 int dupfd; in klibc_dup2dirfd() local 131 dupfd = klibc_dup2dirfd (fd, desired_fd); in klibc_dup2dirfd() 135 return dupfd; in klibc_dup2dirfd() 141 int dupfd; in klibc_dup2() local 144 dupfd = dup2 (fd, desired_fd); in klibc_dup2() 145 if (dupfd == -1 && errno == ENOTSUP \ in klibc_dup2() 153 return dupfd; in klibc_dup2()
|
H A D | dup.c | 63 int dupfd; in dup_nothrow() local 66 dupfd = dup (fd); in dup_nothrow() 67 if (dupfd == -1 && errno == ENOTSUP \ in dup_nothrow() 74 dupfd = open (path, O_RDONLY); in dup_nothrow() 77 return dupfd; in dup_nothrow()
|
H A D | fcntl.c | 55 dupfd (int oldfd, int newfd, int flags) in dupfd() function 451 result = dupfd (fd, target, 0); in rpl_fcntl_DUPFD() 492 result = dupfd (fd, target, O_CLOEXEC); in rpl_fcntl_DUPFD_CLOEXEC()
|
/netbsd-src/external/gpl2/xcvs/dist/lib/ |
H A D | dup2.c | 37 dupfd (int fd, int desired_fd) in dupfd() function 44 int r = dupfd (fd, desired_fd); in dupfd() 62 return dupfd (fd, desired_fd); in dup2()
|
/netbsd-src/bin/sh/ |
H A D | nodetypes | 131 NTOFD ndup # fd<&dupfd 132 NFROMFD ndup # fd>&dupfd 136 dupfd int # file descriptor to duplicate
|
/netbsd-src/usr.bin/make/ |
H A D | meta.c | 125 int dupfd; in meta_open_filemon() local 149 if ((dupfd = dup(pbm->mon_fd)) == -1) { in meta_open_filemon() 152 (void)fcntl(dupfd, F_SETFD, FD_CLOEXEC); in meta_open_filemon() 153 if (filemon_setfd(pbm->filemon, dupfd) == -1) { in meta_open_filemon()
|
/netbsd-src/crypto/external/bsd/openssh/dist/ |
H A D | misc.c | 1481 int nullfd, dupfd; in sanitise_stdfd() local 1483 if ((nullfd = dupfd = open(_PATH_DEVNULL, O_RDWR)) == -1) { in sanitise_stdfd() 1488 while (++dupfd <= STDERR_FILENO) { in sanitise_stdfd() 1490 if (fcntl(dupfd, F_GETFL) == -1 && errno == EBADF) { in sanitise_stdfd() 1491 if (dup2(nullfd, dupfd) == -1) { in sanitise_stdfd()
|
/netbsd-src/sys/kern/ |
H A D | vfs_syscalls.c | 1760 int dupfd; in do_open() 1788 &vp, &dupfd_move, &dupfd); in do_open() 1796 error = fd_dupopen(dupfd, dupfd_move, flags, &indx); in fd_open() 1739 int dupfd; do_open() local
|