/netbsd/external/gpl3/gdb/dist/gnulib/import/m4/ |
H A D | dup2.m4 | 12 AC_CHECK_FUNCS_ONCE([dup2]) 20 AC_CACHE_CHECK([whether dup2 works], [gl_cv_func_dup2_works], 48 if (dup2 (1, 1) != 1) 55 if (dup2 (0, 0) != -1) 58 if (dup2 (2, bad_fd) == -1 && errno != EBADF) 61 if (dup2 (2, -1) != -1 || errno != EBADF) 63 dup2 (2, 255); 64 dup2 (2, 256); 70 else if (dup2 (fd, fd + 1) == -1) 81 cygwin*) # on cygwin 1.5.x, dup2(1,1) returns 0 [all …]
|
/netbsd/external/gpl3/gdb.old/dist/gnulib/import/m4/ |
H A D | dup2.m4 | 12 AC_CHECK_FUNCS_ONCE([dup2]) 20 AC_CACHE_CHECK([whether dup2 works], [gl_cv_func_dup2_works], 48 if (dup2 (1, 1) != 1) 55 if (dup2 (0, 0) != -1) 58 if (dup2 (2, bad_fd) == -1 && errno != EBADF) 61 if (dup2 (2, -1) != -1 || errno != EBADF) 63 dup2 (2, 255); 64 dup2 (2, 256); 70 else if (dup2 (fd, fd + 1) == -1) 81 cygwin*) # on cygwin 1.5.x, dup2(1,1) returns 0 [all …]
|
/netbsd/external/gpl3/gdb/dist/gnulib/import/ |
H A D | dup2.c | 30 # undef dup2 57 result = dup2 (fd, desired_fd); in dup2_nothrow() 69 # define dup2_nothrow dup2 106 # define dup2 ms_windows_dup2 macro 146 dupfd = dup2 (fd, desired_fd); in klibc_dup2() 158 # define dup2 klibc_dup2 macro 181 result = dup2 (fd, desired_fd); in rpl_dup2() 216 dup2 (int fd, int desired_fd) in dup2() function
|
/netbsd/external/gpl3/gdb.old/dist/gnulib/import/ |
H A D | dup2.c | 30 # undef dup2 57 result = dup2 (fd, desired_fd); in dup2_nothrow() 69 # define dup2_nothrow dup2 106 # define dup2 ms_windows_dup2 macro 146 dupfd = dup2 (fd, desired_fd); in klibc_dup2() 158 # define dup2 klibc_dup2 macro 181 result = dup2 (fd, desired_fd); in rpl_dup2() 216 dup2 (int fd, int desired_fd) in dup2() function
|
/netbsd/external/gpl2/gettext/dist/gettext-tools/gnulib-lib/ |
H A D | pipe.c | 178 if ((!pipe_stdin || dup2 (ofd[0], STDIN_FILENO) >= 0) in create_pipe() 183 || (dup2 (nulloutfd, STDERR_FILENO) >= 0 in create_pipe() 189 || (dup2 (stdinfd, STDIN_FILENO) >= 0 in create_pipe() 195 || (dup2 (stdoutfd, STDOUT_FILENO) >= 0 in create_pipe() 212 dup2 (orig_stderr, STDERR_FILENO), close (orig_stderr); in create_pipe() 214 dup2 (orig_stdout, STDOUT_FILENO), close (orig_stdout); in create_pipe() 216 dup2 (orig_stdin, STDIN_FILENO), close (orig_stdin); in create_pipe() 372 && (!pipe_stdout || dup2 (ifd[1], STDOUT_FILENO) >= 0) in create_pipe() 380 || (dup2 (nulloutfd, STDERR_FILENO) >= 0 in create_pipe() 386 || (dup2 (stdinfd, STDIN_FILENO) >= 0 in create_pipe() [all …]
|
H A D | execute.c | 150 || (dup2 (nullinfd, STDIN_FILENO) >= 0 in execute() 156 || dup2 (nulloutfd, STDOUT_FILENO) >= 0) in execute() 159 || dup2 (nulloutfd, STDERR_FILENO) >= 0) in execute() 171 dup2 (orig_stderr, STDERR_FILENO), close (orig_stderr); in execute() 173 dup2 (orig_stdout, STDOUT_FILENO), close (orig_stdout); in execute() 175 dup2 (orig_stdin, STDIN_FILENO), close (orig_stdin); in execute() 276 || (dup2 (nullinfd, STDIN_FILENO) >= 0 in execute() 282 || dup2 (nulloutfd, STDOUT_FILENO) >= 0) in execute() 285 || dup2 (nulloutfd, STDERR_FILENO) >= 0) in execute()
|
/netbsd/crypto/external/bsd/heimdal/dist/lib/roken/ |
H A D | detach.c | 44 #define dup2 _dup2 macro 122 (void) dup2(fd, STDIN_FILENO); in roken_detach_prep() 157 #ifdef dup2 158 #undef dup2 160 #define dup2 _dup2 macro 211 (void) dup2(fd, STDOUT_FILENO); in roken_detach_finish() 212 (void) dup2(fd, STDERR_FILENO); in roken_detach_finish()
|
H A D | daemon.c | 73 dup2(fd, STDIN_FILENO); in daemon() 74 dup2(fd, STDOUT_FILENO); in daemon() 75 dup2(fd, STDERR_FILENO); in daemon()
|
/netbsd/tests/lib/librumpclient/ |
H A D | t_fd.c | 72 RL(dup2(0, 10)); in ATF_TC_BODY() 73 RL(dup2(1, 11)); in ATF_TC_BODY() 74 RL(dup2(2, 12)); in ATF_TC_BODY() 90 dup2(10, 0); in ATF_TC_BODY() 91 dup2(11, 1); in ATF_TC_BODY() 92 dup2(12, 2); in ATF_TC_BODY()
|
/netbsd/external/gpl2/groff/dist/src/roff/groff/ |
H A D | pipeline.c | 248 if (dup2(pdes[1], STDOUT_FILENO) < 0) { in run_pipeline() 266 if (dup2(last_input, STDIN_FILENO) < 0) { in run_pipeline() 275 if (dup2(pdes[1], STDOUT_FILENO) < 0) { in run_pipeline() 288 if (dup2(last_input, STDIN_FILENO) < 0) { in run_pipeline() 297 if (dup2(save_stdout, STDOUT_FILENO) < 0) { in run_pipeline() 319 if (dup2(save_stdin, STDIN_FILENO) < 0) { in run_pipeline() 395 if (dup2(f, 0) < 0) in run_pipeline() 405 if (dup2(f, 1) < 0) in run_pipeline() 410 else if (dup2(save_stdout, 1) < 0) in run_pipeline() 438 if (dup2(save_stdin, 0) < 0) in run_pipeline()
|
/netbsd/external/gpl3/gdb/dist/libiberty/ |
H A D | pex-djgpp.c | 138 if (dup2 (in, STDIN_FILE_NO) < 0) in pex_djgpp_exec_child() 161 if (dup2 (out, STDOUT_FILE_NO) < 0) in pex_djgpp_exec_child() 185 if (dup2 ((flags & PEX_STDERR_TO_STDOUT) != 0 ? STDOUT_FILE_NO : errdes, in pex_djgpp_exec_child() 218 if (dup2 (org_in, STDIN_FILE_NO) < 0) in pex_djgpp_exec_child() 234 if (dup2 (org_out, STDOUT_FILE_NO) < 0) in pex_djgpp_exec_child() 251 if (dup2 (org_errdes, STDERR_FILE_NO) < 0) in pex_djgpp_exec_child()
|
/netbsd/external/bsd/mdocml/dist/ |
H A D | mandocd.c | 202 if (dup2(fds[0], STDIN_FILENO) == -1 || in main() 203 dup2(fds[1], STDOUT_FILENO) == -1 || in main() 204 dup2(fds[2], STDERR_FILENO) == -1) { in main() 222 if (dup2(old_stderr, STDERR_FILENO) == -1 || in main() 223 dup2(old_stdout, STDOUT_FILENO) == -1 || in main() 224 dup2(old_stdin, STDIN_FILENO) == -1) { in main()
|
/netbsd/external/gpl3/binutils.old/dist/libiberty/ |
H A D | pex-djgpp.c | 138 if (dup2 (in, STDIN_FILE_NO) < 0) in pex_djgpp_exec_child() 161 if (dup2 (out, STDOUT_FILE_NO) < 0) in pex_djgpp_exec_child() 185 if (dup2 ((flags & PEX_STDERR_TO_STDOUT) != 0 ? STDOUT_FILE_NO : errdes, in pex_djgpp_exec_child() 218 if (dup2 (org_in, STDIN_FILE_NO) < 0) in pex_djgpp_exec_child() 234 if (dup2 (org_out, STDOUT_FILE_NO) < 0) in pex_djgpp_exec_child() 251 if (dup2 (org_errdes, STDERR_FILE_NO) < 0) in pex_djgpp_exec_child()
|
/netbsd/external/gpl3/binutils/dist/libiberty/ |
H A D | pex-djgpp.c | 138 if (dup2 (in, STDIN_FILE_NO) < 0) in pex_djgpp_exec_child() 161 if (dup2 (out, STDOUT_FILE_NO) < 0) in pex_djgpp_exec_child() 185 if (dup2 ((flags & PEX_STDERR_TO_STDOUT) != 0 ? STDOUT_FILE_NO : errdes, in pex_djgpp_exec_child() 218 if (dup2 (org_in, STDIN_FILE_NO) < 0) in pex_djgpp_exec_child() 234 if (dup2 (org_out, STDOUT_FILE_NO) < 0) in pex_djgpp_exec_child() 251 if (dup2 (org_errdes, STDERR_FILE_NO) < 0) in pex_djgpp_exec_child()
|
/netbsd/external/gpl3/gcc.old/dist/libiberty/ |
H A D | pex-djgpp.c | 138 if (dup2 (in, STDIN_FILE_NO) < 0) in pex_djgpp_exec_child() 161 if (dup2 (out, STDOUT_FILE_NO) < 0) in pex_djgpp_exec_child() 185 if (dup2 ((flags & PEX_STDERR_TO_STDOUT) != 0 ? STDOUT_FILE_NO : errdes, in pex_djgpp_exec_child() 218 if (dup2 (org_in, STDIN_FILE_NO) < 0) in pex_djgpp_exec_child() 234 if (dup2 (org_out, STDOUT_FILE_NO) < 0) in pex_djgpp_exec_child() 251 if (dup2 (org_errdes, STDERR_FILE_NO) < 0) in pex_djgpp_exec_child()
|
/netbsd/external/gpl3/gdb.old/dist/libiberty/ |
H A D | pex-djgpp.c | 138 if (dup2 (in, STDIN_FILE_NO) < 0) in pex_djgpp_exec_child() 161 if (dup2 (out, STDOUT_FILE_NO) < 0) in pex_djgpp_exec_child() 185 if (dup2 ((flags & PEX_STDERR_TO_STDOUT) != 0 ? STDOUT_FILE_NO : errdes, in pex_djgpp_exec_child() 218 if (dup2 (org_in, STDIN_FILE_NO) < 0) in pex_djgpp_exec_child() 234 if (dup2 (org_out, STDOUT_FILE_NO) < 0) in pex_djgpp_exec_child() 251 if (dup2 (org_errdes, STDERR_FILE_NO) < 0) in pex_djgpp_exec_child()
|
/netbsd/external/gpl3/gcc/dist/libiberty/ |
H A D | pex-djgpp.c | 138 if (dup2 (in, STDIN_FILE_NO) < 0) in pex_djgpp_exec_child() 161 if (dup2 (out, STDOUT_FILE_NO) < 0) in pex_djgpp_exec_child() 185 if (dup2 ((flags & PEX_STDERR_TO_STDOUT) != 0 ? STDOUT_FILE_NO : errdes, in pex_djgpp_exec_child() 218 if (dup2 (org_in, STDIN_FILE_NO) < 0) in pex_djgpp_exec_child() 234 if (dup2 (org_out, STDOUT_FILE_NO) < 0) in pex_djgpp_exec_child() 251 if (dup2 (org_errdes, STDERR_FILE_NO) < 0) in pex_djgpp_exec_child()
|
/netbsd/tests/lib/libc/sys/ |
H A D | t_dup.c | 78 fd = dup2(fd1, fd2); in check_mode() 120 fd = dup2(fd1, fd2); in ATF_TC_BODY() 146 ATF_REQUIRE_ERRNO(EBADF, dup2(-1, -1) == -1); in ATF_TC_BODY() 149 ATF_REQUIRE_ERRNO(EBADF, dup2(fd, -1) == -1); in ATF_TC_BODY() 152 ATF_REQUIRE_ERRNO(EBADF, dup2(-1, fd) == -1); in ATF_TC_BODY() 157 ATF_REQUIRE(dup2(fd, fd) != -1); in ATF_TC_BODY() 176 ATF_REQUIRE_ERRNO(EBADF, dup2(STDERR_FILENO, res.rlim_cur + 1) == -1); in ATF_TC_BODY()
|
/netbsd/lib/libutil/ |
H A D | login_tty.c | 58 (void) dup2(fd, STDIN_FILENO); in login_tty() 59 (void) dup2(fd, STDOUT_FILENO); in login_tty() 60 (void) dup2(fd, STDERR_FILENO); in login_tty()
|
/netbsd/external/bsd/libbind/dist/bsd/ |
H A D | daemon.c | 73 (void)dup2(fd, STDIN_FILENO); in daemon() 74 (void)dup2(fd, STDOUT_FILENO); in daemon() 75 (void)dup2(fd, STDERR_FILENO); in daemon()
|
/netbsd/lib/libc/gen/ |
H A D | daemon.c | 72 (void)dup2(fd, STDIN_FILENO); in __weak_alias() 73 (void)dup2(fd, STDOUT_FILENO); in __weak_alias() 74 (void)dup2(fd, STDERR_FILENO); in __weak_alias()
|
/netbsd/external/bsd/tmux/dist/ |
H A D | cmd-pipe-pane.c | 141 if (dup2(pipe_fd[1], STDIN_FILENO) == -1) in cmd_pipe_pane_exec() 144 if (dup2(null_fd, STDIN_FILENO) == -1) in cmd_pipe_pane_exec() 148 if (dup2(pipe_fd[1], STDOUT_FILENO) == -1) in cmd_pipe_pane_exec() 153 if (dup2(null_fd, STDOUT_FILENO) == -1) in cmd_pipe_pane_exec() 156 if (dup2(null_fd, STDERR_FILENO) == -1) in cmd_pipe_pane_exec()
|
/netbsd/external/bsd/tmux/dist/compat/ |
H A D | forkpty-haiku.c | 65 dup2(slave, 0); in forkpty() 66 dup2(slave, 1); in forkpty() 67 dup2(slave, 2); in forkpty()
|
/netbsd/external/bsd/openldap/dist/libraries/liblutil/ |
H A D | detach.c | 105 dup2( sd, STDIN_FILENO ); in lutil_detach() 106 dup2( sd, STDOUT_FILENO ); in lutil_detach() 107 dup2( sd, STDERR_FILENO ); in lutil_detach()
|
/netbsd/lib/librumpuser/ |
H A D | rumpuser_daemonize.c | 127 dup2(fd, STDIN_FILENO); in rumpuser_daemonize_done() 128 dup2(fd, STDOUT_FILENO); in rumpuser_daemonize_done() 129 dup2(fd, STDERR_FILENO); in rumpuser_daemonize_done()
|