Home
last modified time | relevance | path

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

12345678

/external/bison/m4/
Ddup2.m412 AC_CHECK_FUNCS_ONCE([dup2])
17 AC_DEFINE([HAVE_DUP2], [1], [Define to 1 if you have the 'dup2' function.])
20 AC_CACHE_CHECK([whether dup2 works], [gl_cv_func_dup2_works],
30 if (dup2 (1, 1) == 0)
37 if (dup2 (0, 0) != -1)
40 if (dup2 (2, 1000000) == -1 && errno != EBADF)
47 mingw*) # on this platform, dup2 always returns 0 for success
49 cygwin*) # on cygwin 1.5.x, dup2(1,1) returns 0
51 linux*) # On linux between 2008-07-27 and 2009-05-11, dup2 of a
54 freebsd*) # on FreeBSD 6.1, dup2(1,1000000) gives EMFILE, not EBADF.
[all …]
/external/bison/lib/
Ddup2.c30 # undef dup2
71 result = dup2 (fd, desired_fd); in ms_windows_dup2()
86 # define dup2 ms_windows_dup2 macro
103 result = dup2 (fd, desired_fd); in rpl_dup2()
138 dup2 (int fd, int desired_fd) in dup2() function
Dspawn-pipe.c166 if ((!pipe_stdin || dup2 (ofd[0], STDIN_FILENO) >= 0) in create_pipe()
167 && (!pipe_stdout || dup2 (ifd[1], STDOUT_FILENO) >= 0) in create_pipe()
171 || (dup2 (nulloutfd, STDERR_FILENO) >= 0 in create_pipe()
177 || (dup2 (stdinfd, STDIN_FILENO) >= 0 in create_pipe()
183 || (dup2 (stdoutfd, STDOUT_FILENO) >= 0 in create_pipe()
Dspawni.c66 # define dup2 __dup2 macro
268 if (dup2 (new_fd, action->action.open_action.fd) in __spawni()
281 if (dup2 (action->action.dup2_action.fd, in __spawni()
/external/linux-tools-perf/src/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.c85 dup2(pager_process.in, 1); in setup_pager()
87 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.c154 if (dup2(from_in_fd, STDOUT_FILENO) < 0) in create_subpipe()
198 if (dup2(from_out_fd, STDIN_FILENO) < 0) in end_of_output_subpipe()
214 if (dup2(to_in_fd, STDOUT_FILENO) < 0) in end_of_output_subpipe()
251 if (dup2(old_stdout, STDOUT_FILENO) < 0) in end_of_output_subpipe()
260 if (dup2(to_in_fd, STDIN_FILENO) < 0) in end_of_output_subpipe()
290 if (dup2(old_stdin, STDIN_FILENO) < 0) in reap_subpipe()
/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/lldb/tools/debugserver/source/
DPseudoTerminal.cpp212 if (::dup2 (m_slave_fd, STDIN_FILENO) != STDIN_FILENO) in Fork()
214 if (::dup2 (m_slave_fd, STDOUT_FILENO) != STDOUT_FILENO) in Fork()
216 if (::dup2 (m_slave_fd, STDERR_FILENO) != STDERR_FILENO) in Fork()
/external/toybox/toys/pending/
Dsulogin.c91 dup2((fd = xopen(toys.optargs[0], O_RDWR)), 0); in sulogin_main()
93 dup2( fd, 1); in sulogin_main()
94 dup2( fd, 2); in sulogin_main()
Dinit.c60 dup2(fd,0); in initialize_console()
61 dup2(fd,1); in initialize_console()
62 dup2(fd,2); in initialize_console()
263 dup2(0, 1); in final_run()
264 dup2(0, 2); in final_run()
396 dup2(0, 1); in restart_init_handler()
397 dup2(0, 2); in restart_init_handler()
Dopenvt.c110 dup2(vt_fd, 1); in openvt_main()
111 dup2(vt_fd, 2); in openvt_main()
/external/valgrind/none/tests/
Dfdleak_dup2.c15 (void) DO( dup2(s1, 20) ); // dup s1 as fd 20 in main()
16 (void) DO( dup2(s1, s2) ); // dup s1 as fd s2, which closes existing s2 fd in main()
/external/lldb/source/Utility/
DPseudoTerminal.cpp251 if (::dup2 (m_slave_fd, STDIN_FILENO) != STDIN_FILENO) in Fork()
257 if (::dup2 (m_slave_fd, STDOUT_FILENO) != STDOUT_FILENO) in Fork()
263 if (::dup2 (m_slave_fd, STDERR_FILENO) != STDERR_FILENO) in Fork()
/external/libvncserver/vncterm/
DVNCommand.c48 dup2(in[0],0); in main()
49 dup2(out[1],1); in main()
50 dup2(err[1],2); in main()
/external/strace/tests/
Dmmsg.c60 assert(dup2(sv[W], W) == W); in main()
62 assert(dup2(sv[R], R) == R); in main()
Dscm_rights.c33 assert(dup2(sv[1], 1) == 1); in main()
66 assert(dup2(sv[0], 0) == 0); in main()
/external/toybox/toys/other/
Dnetcat.c170 dup2(fd, 0); in netcat_main()
171 dup2(fd, 1); in netcat_main()
172 if (toys.optflags&FLAG_L) dup2(fd, 2); in netcat_main()
/external/gptfdisk/
Dsgdisk.cc42 dup2(silence, STDOUT_FILENO); in android_dump()
43 dup2(silence, STDERR_FILENO); in android_dump()
/external/google-breakpad/src/client/linux/microdump_writer/
Dmicrodump_writer_unittest.cc99 ASSERT_NE(-1, dup2(err_fd, STDERR_FILENO)); in TEST()
104 dup2(save_err, STDERR_FILENO); in TEST()
/external/proguard/src/proguard/evaluation/
DTracedStack.java252 public void dup2() in dup2() method in TracedStack
254 super.dup2(); in dup2()
263 actualProducerStack.dup2(); in dup2()
/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/lldb/test/pexpect-2.4/examples/
Dbd_serv.py125 os.dup2(si.fileno(), sys.stdin.fileno())
126 os.dup2(so.fileno(), sys.stdout.fileno())
127 os.dup2(se.fileno(), sys.stderr.fileno())

12345678