| /src/external/bsd/libbind/dist/bsd/ |
| daemon.c | 73 (void)dup2(fd, STDIN_FILENO); 74 (void)dup2(fd, STDOUT_FILENO); 75 (void)dup2(fd, STDERR_FILENO);
|
| /src/lib/libc/gen/ |
| daemon.c | 72 (void)dup2(fd, STDIN_FILENO); 73 (void)dup2(fd, STDOUT_FILENO); 74 (void)dup2(fd, STDERR_FILENO);
|
| /src/lib/libutil/ |
| login_tty.c | 58 (void) dup2(fd, STDIN_FILENO); 59 (void) dup2(fd, STDOUT_FILENO); 60 (void) dup2(fd, STDERR_FILENO);
|
| /src/crypto/external/bsd/heimdal/dist/lib/roken/ |
| daemon.c | 73 dup2(fd, STDIN_FILENO); 74 dup2(fd, STDOUT_FILENO); 75 dup2(fd, STDERR_FILENO);
|
| detach.c | 44 #define dup2 _dup2 macro 122 (void) dup2(fd, STDIN_FILENO); 157 #ifdef dup2 158 #undef dup2 macro 160 #define dup2 _dup2 macro 211 (void) dup2(fd, STDOUT_FILENO); 212 (void) dup2(fd, STDERR_FILENO);
|
| /src/external/bsd/kyua-cli/dist/utils/process/ |
| system.cpp | 41 /// Indirection to execute the dup2(2) system call. 42 int (*detail::syscall_dup2)(const int, const int) = ::dup2;
|
| /src/external/gpl3/binutils/dist/libiberty/ |
| filedescriptor.c | 45 return dup2 (fd, fd) < 0;
|
| pex-djgpp.c | 138 if (dup2 (in, STDIN_FILE_NO) < 0) 141 *errmsg = "dup2"; 161 if (dup2 (out, STDOUT_FILE_NO) < 0) 164 *errmsg = "dup2"; 185 if (dup2 ((flags & PEX_STDERR_TO_STDOUT) != 0 ? STDOUT_FILE_NO : errdes, 189 *errmsg = "dup2"; 218 if (dup2 (org_in, STDIN_FILE_NO) < 0) 221 *errmsg = "dup2"; 234 if (dup2 (org_out, STDOUT_FILE_NO) < 0) 237 *errmsg = "dup2"; [all...] |
| /src/external/gpl3/binutils.old/dist/libiberty/ |
| filedescriptor.c | 45 return dup2 (fd, fd) < 0;
|
| pex-djgpp.c | 138 if (dup2 (in, STDIN_FILE_NO) < 0) 141 *errmsg = "dup2"; 161 if (dup2 (out, STDOUT_FILE_NO) < 0) 164 *errmsg = "dup2"; 185 if (dup2 ((flags & PEX_STDERR_TO_STDOUT) != 0 ? STDOUT_FILE_NO : errdes, 189 *errmsg = "dup2"; 218 if (dup2 (org_in, STDIN_FILE_NO) < 0) 221 *errmsg = "dup2"; 234 if (dup2 (org_out, STDOUT_FILE_NO) < 0) 237 *errmsg = "dup2"; [all...] |
| /src/external/gpl3/gcc/dist/libiberty/ |
| filedescriptor.c | 45 return dup2 (fd, fd) < 0;
|
| /src/external/gpl3/gcc.old/dist/libiberty/ |
| filedescriptor.c | 45 return dup2 (fd, fd) < 0;
|
| /src/external/gpl3/gdb.old/dist/libiberty/ |
| filedescriptor.c | 45 return dup2 (fd, fd) < 0;
|
| /src/external/gpl3/gdb/dist/libiberty/ |
| filedescriptor.c | 45 return dup2 (fd, fd) < 0;
|
| /src/external/gpl3/gdb/dist/gnulib/import/ |
| dup2.c | 28 #undef dup2 macro 75 /* If fd is closed, mingw hangs on dup2 (fd, fd). If fd is open, 76 dup2 (fd, fd) returns 0, but all further attempts to use fd in 77 future dup2 calls will hang. */ 104 # define dup2 ms_windows_dup2 macro 144 dupfd = dup2 (fd, desired_fd); 156 # define dup2 klibc_dup2 macro 165 /* On Linux kernels 2.6.26-2.6.29, dup2 (fd, fd) returns -EBADF. 166 On Cygwin 1.5.x, dup2 (1, 1) returns 0. 167 On Cygwin 1.7.17, dup2 (1, -1) dumps core [all...] |
| cloexec.c | 58 /* Use dup2 to reject invalid file descriptors; the cloexec flag 65 if (dup2 (desc, desc) < 0)
|
| /src/external/gpl3/gdb.old/dist/gnulib/import/ |
| dup2.c | 28 #undef dup2 macro 75 /* If fd is closed, mingw hangs on dup2 (fd, fd). If fd is open, 76 dup2 (fd, fd) returns 0, but all further attempts to use fd in 77 future dup2 calls will hang. */ 104 # define dup2 ms_windows_dup2 macro 144 dupfd = dup2 (fd, desired_fd); 156 # define dup2 klibc_dup2 macro 165 /* On Linux kernels 2.6.26-2.6.29, dup2 (fd, fd) returns -EBADF. 166 On Cygwin 1.5.x, dup2 (1, 1) returns 0. 167 On Cygwin 1.7.17, dup2 (1, -1) dumps core [all...] |
| cloexec.c | 58 /* Use dup2 to reject invalid file descriptors; the cloexec flag 65 if (dup2 (desc, desc) < 0)
|
| /src/tests/lib/librumpclient/ |
| t_fd.c | 72 RL(dup2(0, 10)); 73 RL(dup2(1, 11)); 74 RL(dup2(2, 12)); 90 dup2(10, 0); 91 dup2(11, 1); 92 dup2(12, 2);
|
| /src/external/ibm-public/postfix/dist/src/util/ |
| dup2_pass_on_exec.c | 7 /* dup2 close-on-exec behavior test program 12 /* standard input and then dup2() to duplicate it. 13 /* Posix-1003.1 specifies in section 6.2.1.2 that dup2(o,n) should behave 20 /* dup2(o, n). 48 DO(dup2(0, 3)); 54 "Yes, a newly dup2()ed file-descriptor has the close-on-exec \ 61 "No, a newly dup2()ed file-descriptor has the close-on-exec \
|
| /src/external/bsd/openldap/dist/libraries/liblutil/ |
| detach.c | 105 dup2( sd, STDIN_FILENO ); 106 dup2( sd, STDOUT_FILENO ); 107 dup2( sd, STDERR_FILENO );
|
| /src/external/bsd/tmux/dist/compat/ |
| forkpty-haiku.c | 65 dup2(slave, 0); 66 dup2(slave, 1); 67 dup2(slave, 2);
|
| /src/lib/librumpuser/ |
| rumpuser_daemonize.c | 65 dup2(fd, STDOUT_FILENO); 71 dup2(fd, STDERR_FILENO); 155 dup2(fd, STDIN_FILENO); 157 dup2(fd, STDOUT_FILENO); 159 dup2(fd, STDERR_FILENO);
|
| /src/external/gpl2/gettext/dist/gettext-tools/gnulib-lib/ |
| pipe.c | 134 This uses _pipe(), dup2(), and spawnv(). It could also be implemented 178 if ((!pipe_stdin || dup2 (ofd[0], STDIN_FILENO) >= 0) 179 && (!pipe_stdout || dup2 (ifd[1], STDOUT_FILENO) >= 0) 183 || (dup2 (nulloutfd, STDERR_FILENO) >= 0 189 || (dup2 (stdinfd, STDIN_FILENO) >= 0 195 || (dup2 (stdoutfd, STDOUT_FILENO) >= 0 198 but it inherits all open()ed or dup2()ed file handles (which is what 212 dup2 (orig_stderr, STDERR_FILENO), close (orig_stderr); 214 dup2 (orig_stdout, STDOUT_FILENO), close (orig_stdout); 216 dup2 (orig_stdin, STDIN_FILENO), close (orig_stdin) [all...] |
| /src/external/bsd/mdocml/dist/ |
| mandocd.c | 202 if (dup2(fds[0], STDIN_FILENO) == -1 || 203 dup2(fds[1], STDOUT_FILENO) == -1 || 204 dup2(fds[2], STDERR_FILENO) == -1) { 205 warn("dup2"); 222 if (dup2(old_stderr, STDERR_FILENO) == -1 || 223 dup2(old_stdout, STDOUT_FILENO) == -1 || 224 dup2(old_stdin, STDIN_FILENO) == -1) { 225 warn("dup2");
|