Home
last modified time | relevance | path

Searched refs:dup2 (Results 1 – 25 of 80) sorted by relevance

1234

/external/linux-tools-perf/util/
Drun-command.c14 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()
Dpager.c81 dup2(pager_process.in, 1); in setup_pager()
83 dup2(pager_process.in, 2); in setup_pager()
/external/openssh/openbsd-compat/
Ddaemon.c72 (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/
Dsubpipe.c146 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/
Dsubpipe.c46 #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/
Ddebug.c121 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/
Dfpopen.c102 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/
Dgoogletest.cc164 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/
Dfdleak_dup2.c15 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/
Dcompat.c181 (void)dup2(fd, STDIN_FILENO); in daemon()
182 (void)dup2(fd, STDOUT_FILENO); in daemon()
183 (void)dup2(fd, STDERR_FILENO); in daemon()
Dsvr-chansession.c670 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/
Dos_unix.c98 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/
Dos-posix.c318 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/
Dbind.c90 dup2(fd, STDIN_FILENO); in daemonise()
91 dup2(fd, STDOUT_FILENO); in daemonise()
92 dup2(fd, STDERR_FILENO); in daemonise()
/external/qemu/slirp/
Dmisc.c334 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/
Dmisc.c300 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/
DTracedStack.java235 public void dup2() in dup2() method in TracedStack
237 super.dup2(); in dup2()
/external/openssh/
Dssh-pkcs11-client.c164 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++/
Dchild_reader.cpp84 dup2(pstdout[1], STDOUT_FILENO); in exec_command()
87 dup2(pstderr[1], STDERR_FILENO); in exec_command()
/external/chromium/sdch/open-vcdiff/src/gtest/
Dgtest-port.cc103 dup2(captured_fd, STDERR_FILENO); in CapturedStderr()
115 dup2(uncaptured_fd_, STDERR_FILENO); in StopCapture()
/external/wpa_supplicant_8/src/utils/
Dos_unix.c134 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/
Dlogsave.c189 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/
Dpager.c88 if (dup2(filedes[0], 0) == -1) in ss_pager_create()
/external/dbus/tools/
Ddbus-launch.c581 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/
Dsubpipe.m427 AC_CHECK_FUNCS(dup2 waitpid)

1234