HomeSort by relevance Sort by last modified time
    Searched refs:dup2 (Results 1 - 25 of 276) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /bionic/libc/arch-mips/syscalls/
dup2.S 4 .globl dup2
6 .ent dup2
8 dup2: label
22 .end dup2
  /bionic/libc/bionic/
daemon.c 46 if ( dup2( fd, 0 ) < 0 ||
47 dup2( fd, 1 ) < 0 ||
48 dup2( fd, 2 ) < 0 )
  /external/openssh/openbsd-compat/
daemon.c 72 (void)dup2(fd, STDIN_FILENO);
73 (void)dup2(fd, STDOUT_FILENO);
74 (void)dup2(fd, STDERR_FILENO);
  /bionic/libc/arch-arm/syscalls/
dup2.S 6 ENTRY(dup2) function
15 END(dup2)
  /external/valgrind/main/none/tests/
fdleak_dup2.c 15 DO( dup2(s1, 20) ); // dup s1 as fd 20
16 DO( dup2(s1, s2) ); // dup s1 as fd s2, which closes existing s2 fd
  /bionic/libc/arch-x86/syscalls/
dup2.S 6 ENTRY(dup2) function
24 END(dup2)
  /external/bison/lib/
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 (fd, desired_fd)
138 dup2 (int fd, int desired_fd) function
    [all...]
cloexec.c 58 /* Use dup2 to reject invalid file descriptors; the cloexec flag
65 if (dup2 (desc, desc) < 0)
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
  /external/e2fsprogs/lib/
fpopen.c 102 dup2(fds[0], 0);
105 dup2(fds[1], 1);
107 dup2(fds[1], 2);
  /external/linux-tools-perf/util/
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);
pager.c 81 dup2(pager_process.in, 1);
83 dup2(pager_process.in, 2);
  /external/compiler-rt/lib/tsan/lit_tests/
fd_dup_norace.cc 25 fds[1] = dup2(fds[0], 100);
  /external/qemu/android/utils/
debug.c 121 dup2(null_fd, out_fd);
122 dup2(null_fd, err_fd);
135 dup2(stdio_save_out_fd, out_fd);
136 dup2(stdio_save_err_fd, err_fd);
  /dalvik/dx/tests/107-verify-stack-ops/
run 34 oneop dup2
  /external/dropbear/
compat.c 181 (void)dup2(fd, STDIN_FILENO);
182 (void)dup2(fd, STDOUT_FILENO);
183 (void)dup2(fd, STDERR_FILENO);
  /external/chromium_org/base/test/
multiprocess_test_android.cc 52 if (dup2(old_fd, new_fd) < 0) {
53 PLOG(FATAL) << "dup2";
  /external/chromium_org/third_party/protobuf/src/google/protobuf/testing/
googletest.cc 164 dup2(fd, 1);
179 dup2(fd, 2);
187 dup2(original_stdout_, 1);
202 dup2(original_stderr_, 2);
  /external/protobuf/src/google/protobuf/testing/
googletest.cc 164 dup2(fd, 1);
179 dup2(fd, 2);
187 dup2(original_stdout_, 1);
202 dup2(original_stderr_, 2);
  /libcore/luni/src/main/native/
java_lang_ProcessManager.cpp 127 dup2(stdinIn, 0);
128 dup2(stdoutOut, 1);
130 dup2(stdoutOut, 2);
132 dup2(stderrOut, 2);
  /external/bison/djgpp/
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)
  /prebuilts/python/darwin-x86/2.7.5/lib/python2.7/
popen2.py 59 os.dup2(p2cread, 0)
60 os.dup2(c2pwrite, 1)
62 os.dup2(errin, 2)
127 os.dup2(p2cread, 0)
128 os.dup2(c2pwrite, 1)
129 os.dup2(c2pwrite, 2)
pty.py 115 os.dup2(slave_fd, STDIN_FILENO)
116 os.dup2(slave_fd, STDOUT_FILENO)
117 os.dup2(slave_fd, STDERR_FILENO)
  /prebuilts/python/linux-x86/2.7.5/lib/python2.7/
popen2.py 59 os.dup2(p2cread, 0)
60 os.dup2(c2pwrite, 1)
62 os.dup2(errin, 2)
127 os.dup2(p2cread, 0)
128 os.dup2(c2pwrite, 1)
129 os.dup2(c2pwrite, 2)
  /bionic/libc/upstream-netbsd/libc/gen/
popen.c 141 (void)dup2(pdes[1], STDOUT_FILENO);
145 (void)dup2(STDOUT_FILENO, STDIN_FILENO);
149 (void)dup2(pdes[0], STDIN_FILENO);

Completed in 419 milliseconds

1 2 3 4 5 6 7 8 91011>>