Home
last modified time | relevance | path

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

123456789

/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/autotest/client/bin/
Dautotestd17 os.dup2(2, 3)
24 os.dup2(stdout.fileno(), 1)
25 os.dup2(stdout.fileno(), 2)
26 os.dup2(stderr.fileno(), 3)
Dautotest_client14 os.dup2(2,3)
16 os.dup2(1,2)
/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/libmicrohttpd/src/testspdy/
Dtest_proxies.c115 dup2(devnull, 1); in main()
140 dup2(devnull, 1); in main()
166 dup2(devnull, 1); in main()
195 dup2(devnull, 1); in main()
Dtest_session_timeout.c292 dup2(devnull, 1); in childproc()
300 dup2(devnull, 2); in childproc()
307 dup2(out,1); in childproc()
/external/toybox/toys/pending/
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()
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()
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/autotest/utils/
Dparallel.py94 os.dup2(in_fd, 0)
100 os.dup2(out_fd, 2)
101 os.dup2(out_fd, 1)
/external/strace/tests/
Dmmsg.c88 assert(dup2(sv[W], W) == W); in main()
90 assert(dup2(sv[R], R) == R); in main()
Dscm_rights.c60 assert(dup2(sv[1], 1) == 1); in main()
93 assert(dup2(sv[0], 0) == 0); in main()
/external/toybox/toys/other/
Dnetcat.c181 dup2(fd, 0); in netcat_main()
182 dup2(fd, 1); in netcat_main()
183 if (toys.optflags&FLAG_L) dup2(fd, 2); in netcat_main()
/external/gptfdisk/
Dsgdisk.cc43 dup2(silence, STDOUT_FILENO); in android_dump()
44 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/autotest/server/site_tests/autoupdate_EndToEndTest/
Dupdate_engine_performance_monitor.py201 os.dup2(si.fileno(), sys.stdin.fileno())
202 os.dup2(so.fileno(), sys.stdout.fileno())
203 os.dup2(se.fileno(), sys.stderr.fileno())
/external/sl4a/ScriptingLayerForAndroid/jni/
Dcom_googlecode_android_scripting_Exec.cpp63 dup2(pts, 0); in CreateSubprocess()
64 dup2(pts, 1); in CreateSubprocess()
65 dup2(pts, 2); in CreateSubprocess()
/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/autotest/client/tests/kvm/deps/
Dheartbeat_slu.py32 os.dup2(output_handle.fileno(), sys.stdout.fileno())
33 os.dup2(output_handle.fileno(), sys.stderr.fileno())
34 os.dup2(stdin_handle.fileno(), sys.stdin.fileno())

123456789