/external/linux-tools-perf/util/ |
D | run-command.c | 14 dup2(fd, to); in dup_devnull() 74 dup2(fdin[0], 0); in start_command() 77 dup2(cmd->in, 0); in start_command() 84 dup2(fderr[1], 2); in start_command() 91 dup2(2, 1); in start_command() 93 dup2(fdout[1], 1); in start_command() 96 dup2(cmd->out, 1); in start_command()
|
D | pager.c | 81 dup2(pager_process.in, 1); in setup_pager() 83 dup2(pager_process.in, 2); in setup_pager()
|
/external/openssh/openbsd-compat/ |
D | daemon.c | 72 (void)dup2(fd, STDIN_FILENO); in daemon() 73 (void)dup2(fd, STDOUT_FILENO); in daemon() 74 (void)dup2(fd, STDERR_FILENO); in daemon()
|
/external/bison/djgpp/ |
D | subpipe.c | 146 if (dup2(from_in_fd, STDOUT_FILENO) < 0) in create_subpipe() 190 if (dup2(from_out_fd, STDIN_FILENO) < 0) in end_of_output_subpipe() 206 if (dup2(to_in_fd, STDOUT_FILENO) < 0) in end_of_output_subpipe() 243 if (dup2(old_stdout, STDOUT_FILENO) < 0) in end_of_output_subpipe() 252 if (dup2(to_in_fd, STDIN_FILENO) < 0) in end_of_output_subpipe() 282 if (dup2(old_stdin, STDIN_FILENO) < 0) in reap_subpipe()
|
/external/bison/lib/ |
D | subpipe.c | 46 #if ! HAVE_DUP2 && ! defined dup2 48 # define dup2(f, t) (close (t), fcntl (f, F_DUPFD, t)) macro 135 dup2 (child_fd[0], STDIN_FILENO); in create_subpipe() 137 dup2 (child_fd[1], STDOUT_FILENO); in create_subpipe()
|
/external/qemu/android/utils/ |
D | debug.c | 121 dup2(null_fd, out_fd); in stdio_disable() 122 dup2(null_fd, err_fd); in stdio_disable() 135 dup2(stdio_save_out_fd, out_fd); in stdio_enable() 136 dup2(stdio_save_err_fd, err_fd); in stdio_enable()
|
/external/e2fsprogs/lib/ |
D | fpopen.c | 102 dup2(fds[0], 0); in fpopen() 105 dup2(fds[1], 1); in fpopen() 107 dup2(fds[1], 2); in fpopen()
|
/external/protobuf/src/google/protobuf/testing/ |
D | googletest.cc | 164 dup2(fd, 1); in CaptureTestStdout() 179 dup2(fd, 2); in CaptureTestStderr() 187 dup2(original_stdout_, 1); in GetCapturedTestStdout() 202 dup2(original_stderr_, 2); in GetCapturedTestStderr()
|
/external/valgrind/main/none/tests/ |
D | fdleak_dup2.c | 15 DO( dup2(s1, 20) ); // dup s1 as fd 20 in main() 16 DO( dup2(s1, s2) ); // dup s1 as fd s2, which closes existing s2 fd in main()
|
/external/dropbear/ |
D | compat.c | 181 (void)dup2(fd, STDIN_FILENO); in daemon() 182 (void)dup2(fd, STDOUT_FILENO); in daemon() 183 (void)dup2(fd, STDERR_FILENO); in daemon()
|
D | svr-chansession.c | 670 if ((dup2(infds[FDIN], STDIN_FILENO) < 0) || in noptycommand() 671 (dup2(outfds[FDOUT], STDOUT_FILENO) < 0) || in noptycommand() 672 (dup2(errfds[FDOUT], STDERR_FILENO) < 0)) { in noptycommand() 775 if ((dup2(chansess->slave, STDIN_FILENO) < 0) || in ptycommand() 776 (dup2(chansess->slave, STDERR_FILENO) < 0) || in ptycommand() 777 (dup2(chansess->slave, STDOUT_FILENO) < 0)) { in ptycommand()
|
/external/wpa_supplicant_6/wpa_supplicant/src/utils/ |
D | os_unix.c | 98 if (dup2(devnull, STDIN_FILENO) < 0) { in os_daemon() 103 if (dup2(devnull, STDOUT_FILENO) < 0) { in os_daemon() 108 if (dup2(devnull, STDERR_FILENO) < 0) { in os_daemon()
|
/external/qemu/ |
D | os-posix.c | 318 dup2(fd, 0); in os_setup_post() 319 dup2(fd, 1); in os_setup_post() 320 dup2(fd, 2); in os_setup_post()
|
/external/dhcpcd/ |
D | bind.c | 90 dup2(fd, STDIN_FILENO); in daemonise() 91 dup2(fd, STDOUT_FILENO); in daemonise() 92 dup2(fd, STDERR_FILENO); in daemonise()
|
/external/qemu/slirp/ |
D | misc.c | 334 dup2(s, 0); in fork_exec() 335 dup2(s, 1); in fork_exec() 336 dup2(s, 2); in fork_exec() 882 dup2(fd0[1], 0); 883 dup2(fd0[1], 1); 884 dup2(fd[1], 2);
|
/external/qemu/slirp-android/ |
D | misc.c | 300 dup2(s, 0); in fork_exec() 301 dup2(s, 1); in fork_exec() 302 dup2(s, 2); in fork_exec() 848 dup2(fd0[1], 0); 849 dup2(fd0[1], 1); 850 dup2(fd[1], 2);
|
/external/proguard/src/proguard/evaluation/ |
D | TracedStack.java | 235 public void dup2() in dup2() method in TracedStack 237 super.dup2(); in dup2()
|
/external/openssh/ |
D | ssh-pkcs11-client.c | 164 if ((dup2(pair[1], STDIN_FILENO) == -1) || in pkcs11_start_helper() 165 (dup2(pair[1], STDOUT_FILENO) == -1)) { in pkcs11_start_helper()
|
/external/oprofile/libutil++/ |
D | child_reader.cpp | 84 dup2(pstdout[1], STDOUT_FILENO); in exec_command() 87 dup2(pstderr[1], STDERR_FILENO); in exec_command()
|
/external/chromium/sdch/open-vcdiff/src/gtest/ |
D | gtest-port.cc | 103 dup2(captured_fd, STDERR_FILENO); in CapturedStderr() 115 dup2(uncaptured_fd_, STDERR_FILENO); in StopCapture()
|
/external/wpa_supplicant_8/src/utils/ |
D | os_unix.c | 134 if (dup2(devnull, STDIN_FILENO) < 0) { in os_daemon() 139 if (dup2(devnull, STDOUT_FILENO) < 0) { in os_daemon() 144 if (dup2(devnull, STDERR_FILENO) < 0) { in os_daemon()
|
/external/e2fsprogs/misc/ |
D | logsave.c | 189 dup2(fds[1],1); /* fds[1] replaces stdout */ in run_program() 190 dup2(fds[1],2); /* fds[1] replaces stderr */ in run_program()
|
/external/e2fsprogs/lib/ss/ |
D | pager.c | 88 if (dup2(filedes[0], 0) == -1) in ss_pager_create()
|
/external/dbus/tools/ |
D | dbus-launch.c | 581 dup2 (dev_null_fd, 0); in babysit() 582 dup2 (dev_null_fd, 1); in babysit() 585 dup2 (dev_null_fd, 2); in babysit() 679 if (dup2 (fd, 2) == -1) in do_close_stderr()
|
/external/bison/m4/ |
D | subpipe.m4 | 27 AC_CHECK_FUNCS(dup2 waitpid)
|