Home
last modified time | relevance | path

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

12345678910>>...15

/external/catch2/include/internal/
Dcatch_output_redirect.cpp21 #define dup2 _dup2 macro
117 dup2(fileno(m_stdoutFile.getFile()), 1); in OutputRedirect()
118 dup2(fileno(m_stderrFile.getFile()), 2); in OutputRedirect()
130 dup2(m_originalStdout, 1); in ~OutputRedirect()
131 dup2(m_originalStderr, 2); in ~OutputRedirect()
144 #undef dup2
/external/libcups/backend/
Dtestbackend.c202 dup2(fd, 0); in main()
208 dup2(data_fds[1], 1); in main()
215 dup2(back_fds[0], 3); in main()
222 dup2(side_fds[0], 4); in main()
434 dup2(data_fds[0], 0); in main()
444 dup2(fd, 2); in main()
451 dup2(back_fds[1], 3); in main()
458 dup2(side_fds[1], 4); in main()
486 dup2(back_fds[0], 3); in main()
493 dup2(side_fds[0], 4); in main()
/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/llvm-project/llvm/test/CodeGen/X86/
Dtail-dup-repeat.ll6 ; multiple successors. In this case, the block dup1 gets duplicated into dup2
7 ; and if.then64, and then the block dup2 gets duplicated into land.lhs.true
18 ; CHECK-NEXT: .LBB0_6: # %dup2
52 br label %dup2
63 br label %dup2
65 dup2: ; preds = %if.end70, %land.lhs.true
69 dup1: ; preds = %dup2, %if.then64
Dtail-dup-partial.ll5 ; multiple successors. In this case, the block dup1 gets duplicated into dup2
6 ; and if.then64, and then the block dup2 only gets duplicated into land.lhs.true.
24 ; CHECK-NEXT: .LBB0_6: # %dup2
55 br label %dup2
66 br i1 %a2, label %dup2, label %for.end
68 dup2:
/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/python/cpython2/Lib/
Dpopen2.py59 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)
/external/protobuf/src/google/protobuf/testing/
Dgoogletest.cc59 using google::protobuf::io::win32::dup2;
211 dup2(fd, 1); in CaptureTestStdout()
226 dup2(fd, 2); in CaptureTestStderr()
234 dup2(original_stdout_, 1); in GetCapturedTestStdout()
249 dup2(original_stderr_, 2); in GetCapturedTestStderr()
/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/llvm-project/lldb/third_party/Python/module/ptyprocess-0.6.0/ptyprocess/
D_fork_pty.py33 os.dup2(child_fd, STDIN_FILENO)
34 os.dup2(child_fd, STDOUT_FILENO)
35 os.dup2(child_fd, STDERR_FILENO)
/external/crosvm/src/
Dpanic_hook.rs13 use libc::{close, dup, dup2, pipe2, O_NONBLOCK, STDERR_FILENO};
32 ret = dup2(fds[1], STDERR_FILENO); in redirect_stderr()
53 unsafe { dup2(descriptor, STDERR_FILENO) != -1 } in restore_stderr()
/external/llvm-project/lldb/tools/debugserver/source/
DPseudoTerminal.cpp166 if (::dup2(m_secondary_fd, STDIN_FILENO) != STDIN_FILENO) in Fork()
168 if (::dup2(m_secondary_fd, STDOUT_FILENO) != STDOUT_FILENO) in Fork()
170 if (::dup2(m_secondary_fd, STDERR_FILENO) != STDERR_FILENO) in Fork()
/external/perfetto/src/base/
Dutils.cc125 PERFETTO_CHECK(dup2(*null, STDIN_FILENO) != -1); in Daemonize()
126 PERFETTO_CHECK(dup2(*null, STDOUT_FILENO) != -1); in Daemonize()
127 PERFETTO_CHECK(dup2(*null, STDERR_FILENO) != -1); in Daemonize()
Dsubprocess_posix.cc97 if (dup2(args->stdin_pipe_rd, STDIN_FILENO) == -1) in ChildProcess()
105 if (dup2(open("/dev/null", O_RDWR), STDOUT_FILENO) == -1) in ChildProcess()
110 if (dup2(args->stdouterr_pipe_wr, STDOUT_FILENO) == -1) in ChildProcess()
114 if (dup2(*args->create_args->out_fd, STDOUT_FILENO) == -1) in ChildProcess()
123 if (dup2(open("/dev/null", O_RDWR), STDERR_FILENO) == -1) in ChildProcess()
128 if (dup2(args->stdouterr_pipe_wr, STDERR_FILENO) == -1) in ChildProcess()
132 if (dup2(*args->create_args->out_fd, STDERR_FILENO) == -1) in ChildProcess()
/external/toybox/toys/pending/
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()
Dinit.c60 dup2(fd,0); in initialize_console()
61 dup2(fd,1); in initialize_console()
62 dup2(fd,2); in initialize_console()
282 dup2(0, 1); in final_run()
283 dup2(0, 2); in final_run()
411 dup2(0, 1); in restart_init_handler()
412 dup2(0, 2); in restart_init_handler()
/external/mesa3d/src/freedreno/decode/
Dpager.c64 dup2(fd[0], STDIN_FILENO); in pager_open()
76 dup2(fd[1], STDOUT_FILENO); in pager_open()
/external/rust/crates/libc/src/unix/solarish/
Dcompat.rs155 || ::dup2(fds, 0) < 0 in forkpty()
156 || ::dup2(fds, 1) < 0 in forkpty()
157 || ::dup2(fds, 2) < 0 in forkpty()
/external/autotest/utils/
Dparallel.py94 os.dup2(in_fd, 0)
100 os.dup2(out_fd, 2)
101 os.dup2(out_fd, 1)
/external/perfetto/src/traced/probes/ftrace/
Datrace_wrapper.cc58 if ((dup2(*err_pipe.wr, STDERR_FILENO) == -1)) { in ExecvAtrace()
71 if ((dup2(null_fd, STDOUT_FILENO) == -1)) { in ExecvAtrace()
77 if ((dup2(null_fd, STDIN_FILENO) == -1)) { in ExecvAtrace()
/external/perfetto/tools/busy_threads/
Dbusy_threads.cc154 PERFETTO_CHECK(dup2(*null, STDIN_FILENO) != -1); in BusyThreadsMain()
155 PERFETTO_CHECK(dup2(*null, STDOUT_FILENO) != -1); in BusyThreadsMain()
156 PERFETTO_CHECK(dup2(*null, STDERR_FILENO) != -1); in BusyThreadsMain()
/external/llvm-project/llvm/test/CodeGen/PowerPC/
Dtail-dup-branch-to-fallthrough.ll50 br label %dup2
54 br label %dup2
60 dup2: ; preds = %if.then, %if.else
/external/ethtool/
Dtest-common.c334 dup2(dev_null, STDIN_FILENO); in test_cmdline()
344 dup2(dev_null, STDOUT_FILENO); in test_cmdline()
357 dup2(dev_null, STDERR_FILENO); in test_cmdline()
366 dup2(orig_stderr_fd, STDERR_FILENO); in test_cmdline()
374 dup2(orig_stdout_fd, STDOUT_FILENO); in test_cmdline()
/external/python/cpython3/Lib/
Dpty.py105 os.dup2(slave_fd, STDIN_FILENO)
106 os.dup2(slave_fd, STDOUT_FILENO)
107 os.dup2(slave_fd, STDERR_FILENO)

12345678910>>...15