/external/valgrind/main/none/tests/ |
H A D | fdleak_dup2.c | 15 (void) DO( dup2(s1, 20) ); // dup s1 as fd 20 16 (void) DO( dup2(s1, s2) ); // dup s1 as fd s2, which closes existing s2 fd
|
/external/bison/lib/ |
H A D | dup2.c | 30 # undef dup2 macro 48 /* If fd is closed, mingw hangs on dup2 (fd, fd). If fd is open, 49 dup2 (fd, fd) returns 0, but all further attempts to use fd in 50 future dup2 calls will hang. */ 71 result = dup2 (fd, desired_fd); 86 # define dup2 ms_windows_dup2 macro 96 /* On Linux kernels 2.6.26-2.6.29, dup2 (fd, fd) returns -EBADF. 97 On Cygwin 1.5.x, dup2 (1, 1) returns 0. 98 On Haiku, dup2 (fd, fd) mistakenly clears FD_CLOEXEC. */ 103 result = dup2 (f 138 dup2 (int fd, int desired_fd) function [all...] |
H A D | cloexec.c | 58 /* Use dup2 to reject invalid file descriptors; the cloexec flag 65 if (dup2 (desc, desc) < 0)
|
H A D | spawn-pipe.c | 120 This uses _pipe(), dup2(), and spawnv(). It could also be implemented 166 if ((!pipe_stdin || dup2 (ofd[0], STDIN_FILENO) >= 0) 167 && (!pipe_stdout || dup2 (ifd[1], STDOUT_FILENO) >= 0) 171 || (dup2 (nulloutfd, STDERR_FILENO) >= 0 177 || (dup2 (stdinfd, STDIN_FILENO) >= 0 183 || (dup2 (stdoutfd, STDOUT_FILENO) >= 0 186 but it inherits all open()ed or dup2()ed file handles (which is what
|
H A D | fseterr.c | 70 if (dup2 (fd2, fd) < 0)
|
/external/compiler-rt/test/msan/ |
H A D | getc_unlocked.c | 20 int res = dup2(fileno(stream), 0);
|
/external/e2fsprogs/lib/ |
H A D | fpopen.c | 102 dup2(fds[0], 0); 105 dup2(fds[1], 1); 107 dup2(fds[1], 2);
|
/external/linux-tools-perf/perf-3.12.0/tools/perf/util/ |
H A D | run-command.c | 14 dup2(fd, to); 74 dup2(fdin[0], 0); 77 dup2(cmd->in, 0); 84 dup2(fderr[1], 2); 91 dup2(2, 1); 93 dup2(fdout[1], 1); 96 dup2(cmd->out, 1);
|
H A D | pager.c | 79 dup2(pager_process.in, 1); 81 dup2(pager_process.in, 2);
|
/external/lldb/tools/debugserver/source/ |
H A D | PseudoTerminal.cpp | 212 if (::dup2 (m_slave_fd, STDIN_FILENO) != STDIN_FILENO) 214 if (::dup2 (m_slave_fd, STDOUT_FILENO) != STDOUT_FILENO) 216 if (::dup2 (m_slave_fd, STDERR_FILENO) != STDERR_FILENO)
|
/external/compiler-rt/test/tsan/ |
H A D | fd_dup_norace.cc | 25 fds[1] = dup2(fds[0], 100);
|
/external/qemu/android/utils/ |
H A D | debug.c | 123 dup2(null_fd, out_fd); 124 dup2(null_fd, err_fd); 137 dup2(stdio_save_out_fd, out_fd); 138 dup2(stdio_save_err_fd, err_fd);
|
/external/strace/test/ |
H A D | wait_must_be_interruptible.c | 61 dup2(pipefd[1], 1); 68 dup2(pipefd[0], 0);
|
/external/strace/tests/ |
H A D | scm_rights.c | 43 assert(dup2(sv[1], 1) == 1); 63 assert(dup2(sv[0], 0) == 0);
|
/external/lldb/source/Utility/ |
H A D | PseudoTerminal.cpp | 251 if (::dup2 (m_slave_fd, STDIN_FILENO) != STDIN_FILENO) 257 if (::dup2 (m_slave_fd, STDOUT_FILENO) != STDOUT_FILENO) 263 if (::dup2 (m_slave_fd, STDERR_FILENO) != STDERR_FILENO)
|
/external/chromium_org/third_party/protobuf/src/google/protobuf/testing/ |
H A D | googletest.cc | 164 dup2(fd, 1); 179 dup2(fd, 2); 187 dup2(original_stdout_, 1); 202 dup2(original_stderr_, 2);
|
/external/llvm/tools/lli/Unix/ |
H A D | RPCChannel.inc | 54 dup2(PipeFD[0][0], STDIN_FILENO); 58 dup2(PipeFD[1][1], STDOUT_FILENO);
|
/external/protobuf/src/google/protobuf/testing/ |
H A D | googletest.cc | 164 dup2(fd, 1); 179 dup2(fd, 2); 187 dup2(original_stdout_, 1); 202 dup2(original_stderr_, 2);
|
/external/bison/djgpp/ |
H A D | subpipe.c | 154 if (dup2(from_in_fd, STDOUT_FILENO) < 0) 198 if (dup2(from_out_fd, STDIN_FILENO) < 0) 214 if (dup2(to_in_fd, STDOUT_FILENO) < 0) 251 if (dup2(old_stdout, STDOUT_FILENO) < 0) 260 if (dup2(to_in_fd, STDIN_FILENO) < 0) 264 error(EXIT_FAILURE, -1, "dup2"); 290 if (dup2(old_stdin, STDIN_FILENO) < 0)
|
/external/chromium_org/base/test/ |
H A D | multiprocess_test_android.cc | 58 if (dup2(old_fd, new_fd) < 0) { 59 PLOG(FATAL) << "dup2";
|
/external/chromium_org/components/nacl/loader/nonsfi/ |
H A D | irt_fdio.cc | 31 return CheckError(dup2(fd, newfd));
|
/external/chromium_org/third_party/tcmalloc/chromium/src/ |
H A D | symbolize.cc | 182 if (dup2(child_in[0], 0) == -1) _exit(1); 183 if (dup2(child_out[0], 1) == -1) _exit(2);
|
/external/chromium_org/third_party/tcmalloc/vendor/src/ |
H A D | symbolize.cc | 187 if (dup2(child_in[0], 0) == -1) _exit(1); 188 if (dup2(child_out[0], 1) == -1) _exit(2);
|
/external/oprofile/libutil++/ |
H A D | child_reader.cpp | 84 dup2(pstdout[1], STDOUT_FILENO); 87 dup2(pstderr[1], STDERR_FILENO);
|
/external/proguard/src/proguard/evaluation/ |
H A D | TracedStack.java | 235 public void dup2() method in class:TracedStack 237 super.dup2();
|