Home
last modified time | relevance | path

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

1234567891011

/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()
/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/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/e2fsprogs/lib/
Dfpopen.c103 dup2(fds[0], 0); in fpopen()
106 dup2(fds[1], 1); in fpopen()
108 dup2(fds[1], 2); in fpopen()
/external/libusb/tests/
Dtestlib.c39 #define dup2 _dup2 macro
85 IGNORE_RETVAL(dup2(ctx->old_stdout, STDOUT_FILENO)); in cleanup_test_output()
89 IGNORE_RETVAL(dup2(ctx->old_stderr, STDERR_FILENO)); in cleanup_test_output()
135 if ((dup2(ctx->null_fd, STDOUT_FILENO) < 0) || in setup_test_output()
136 (dup2(ctx->null_fd, STDERR_FILENO) < 0)) { in setup_test_output()
/external/protobuf/src/google/protobuf/testing/
Dgoogletest.cc176 dup2(fd, 1); in CaptureTestStdout()
191 dup2(fd, 2); in CaptureTestStderr()
199 dup2(original_stdout_, 1); in GetCapturedTestStdout()
214 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_stdio(toys.optargs[0], O_RDWR)), 0); in sulogin_main()
93 dup2( fd, 1); in sulogin_main()
94 dup2( fd, 2); in sulogin_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/fmtlib/fmt/
Dposix.cc178 void fmt::File::dup2(int fd) { in dup2() function in fmt::File
180 FMT_RETRY(result, FMT_POSIX_CALL(dup2(fd_, fd))); in dup2()
187 void fmt::File::dup2(int fd, ErrorCode &ec) FMT_NOEXCEPT { in dup2() function in fmt::File
189 FMT_RETRY(result, FMT_POSIX_CALL(dup2(fd_, fd))); in dup2()
/external/toybox/toys/net/
Dnetcat.c182 dup2(in1, 0); in netcat_main()
183 dup2(in1, 1); in netcat_main()
184 if (toys.optflags&FLAG_L) dup2(in1, 2); in netcat_main()
/external/ltp/lib/tests/
Dtrerrno.c52 TEST(dup2(fd, fileno(stdout))); in main()
63 TEST(dup2(stdout_fd, fileno(stdout))); in main()
/external/gptfdisk/
Dsgdisk.cc43 dup2(silence, STDOUT_FILENO); in android_dump()
44 dup2(silence, STDERR_FILENO); in android_dump()
/external/ltp/testcases/kernel/ipc/ipc_stress/
Dpipe_test_01.c120 if (dup2(fd[WRITE], STDOUT_FILENO) != STDOUT_FILENO) in main()
147 if (dup2(fd[READ], STDIN_FILENO) != STDIN_FILENO) in main()
/external/fmtlib/test/
Dgtest-extra.cc49 original_.dup2(FMT_POSIX(fileno(file_))); in restore()
62 write_end.dup2(fd); in OutputRedirect()
/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/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())

1234567891011