Home
last modified time | relevance | path

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

1234567

/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()
Dunistd.in.h344 # define dup2 rpl_dup2
346 _GL_FUNCDECL_RPL (dup2, int, (int oldfd, int newfd));
347 _GL_CXXALIAS_RPL (dup2, int, (int oldfd, int newfd));
350 _GL_FUNCDECL_SYS (dup2, int, (int oldfd, int newfd));
352 _GL_CXXALIAS_SYS (dup2, int, (int oldfd, int newfd));
354 _GL_CXXALIASWARN (dup2);
356 # undef dup2
358 _GL_WARN_ON_USE (dup2, "dup2 is unportable - "
/external/linux-tools-perf/perf-3.12.0/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.c79 dup2(pager_process.in, 1); in setup_pager()
81 dup2(pager_process.in, 2); in setup_pager()
/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/qemu/android/utils/
Ddebug.c123 dup2(null_fd, out_fd); in stdio_disable()
124 dup2(null_fd, err_fd); in stdio_disable()
137 dup2(stdio_save_out_fd, out_fd); in stdio_enable()
138 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/chromium_org/third_party/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/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/valgrind/main/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/strace/test/
Dwait_must_be_interruptible.c61 dup2(pipefd[1], 1); in main()
68 dup2(pipefd[0], 0); in main()
/external/strace/tests/
Dscm_rights.c43 assert(dup2(sv[1], 1) == 1); in main()
63 assert(dup2(sv[0], 0) == 0); in main()
/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/
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/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())
/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/chromium_org/third_party/tcmalloc/vendor/src/
Dsymbolize.cc187 if (dup2(child_in[0], 0) == -1) _exit(1); in Symbolize()
188 if (dup2(child_out[0], 1) == -1) _exit(2); in Symbolize()
/external/chromium_org/third_party/tcmalloc/chromium/src/
Dsymbolize.cc182 if (dup2(child_in[0], 0) == -1) _exit(1); in Symbolize()
183 if (dup2(child_out[0], 1) == -1) _exit(2); in Symbolize()

1234567