| /src/external/gpl2/xcvs/dist/lib/ |
| dup2.c | 37 dupfd (int fd, int desired_fd) function 44 int r = dupfd (fd, desired_fd); 62 return dupfd (fd, desired_fd);
|
| /src/external/gpl3/gdb/dist/gnulib/import/ |
| dup.c | 63 int dupfd; local 66 dupfd = dup (fd); 67 if (dupfd == -1 && errno == ENOTSUP \ 74 dupfd = open (path, O_RDONLY); 77 return dupfd;
|
| dup2.c | 114 int dupfd; local 131 dupfd = klibc_dup2dirfd (fd, desired_fd); 135 return dupfd; 141 int dupfd; local 144 dupfd = dup2 (fd, desired_fd); 145 if (dupfd == -1 && errno == ENOTSUP \ 153 return dupfd;
|
| fdopendir.c | 138 int dupfd = dup (fd); local 139 if (dupfd < 0 && errno == EMFILE) 140 dupfd = older_dupfd; 141 if (dupfd < 0) 147 if (dupfd < fd - 1 && dupfd != older_dupfd) 149 dir = fdopendir_with_dup (fd, dupfd, cwd); 155 dir = fd_clone_opendir (dupfd, cwd); 159 int fd1 = dup (dupfd); 165 if (dupfd != older_dupfd [all...] |
| fcntl.c | 55 dupfd (int oldfd, int newfd, int flags) function 451 result = dupfd (fd, target, 0); 492 result = dupfd (fd, target, O_CLOEXEC);
|
| /src/external/gpl3/gdb.old/dist/gnulib/import/ |
| dup.c | 63 int dupfd; local 66 dupfd = dup (fd); 67 if (dupfd == -1 && errno == ENOTSUP \ 74 dupfd = open (path, O_RDONLY); 77 return dupfd;
|
| dup2.c | 114 int dupfd; local 131 dupfd = klibc_dup2dirfd (fd, desired_fd); 135 return dupfd; 141 int dupfd; local 144 dupfd = dup2 (fd, desired_fd); 145 if (dupfd == -1 && errno == ENOTSUP \ 153 return dupfd;
|
| fdopendir.c | 138 int dupfd = dup (fd); local 139 if (dupfd < 0 && errno == EMFILE) 140 dupfd = older_dupfd; 141 if (dupfd < 0) 147 if (dupfd < fd - 1 && dupfd != older_dupfd) 149 dir = fdopendir_with_dup (fd, dupfd, cwd); 155 dir = fd_clone_opendir (dupfd, cwd); 159 int fd1 = dup (dupfd); 165 if (dupfd != older_dupfd [all...] |
| fcntl.c | 55 dupfd (int oldfd, int newfd, int flags) function 451 result = dupfd (fd, target, 0); 492 result = dupfd (fd, target, O_CLOEXEC);
|
| /src/usr.bin/make/ |
| meta.c | 126 int dupfd; local 150 if ((dupfd = dup(pbm->mon_fd)) == -1) { 153 (void)fcntl(dupfd, F_SETFD, FD_CLOEXEC); 154 if (filemon_setfd(pbm->filemon, dupfd) == -1) {
|
| /src/sys/kern/ |
| vfs_syscalls.c | 1763 int dupfd; local 1791 &vp, &dupfd_move, &dupfd); 1799 error = fd_dupopen(dupfd, dupfd_move, flags, &indx);
|
| /src/crypto/external/bsd/openssh/dist/ |
| misc.c | 1575 int nullfd, dupfd; local 1577 if ((nullfd = dupfd = open(_PATH_DEVNULL, O_RDWR)) == -1) { 1582 while (++dupfd <= STDERR_FILENO) { 1584 if (fcntl(dupfd, F_GETFL) == -1 && errno == EBADF) { 1585 if (dup2(nullfd, dupfd) == -1) {
|