Home
last modified time | relevance | path

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

12

/system/core/init/
Dfirst_stage_console.cpp78 dup2(fd, STDIN_FILENO); in StartConsole()
79 dup2(fd, STDOUT_FILENO); in StartConsole()
80 dup2(fd, STDERR_FILENO); in StartConsole()
Dservice_utils.cpp129 dup2(fd, STDIN_FILENO); in SetupStdio()
134 dup2(fd, STDOUT_FILENO); in SetupStdio()
135 dup2(fd, STDERR_FILENO); in SetupStdio()
142 dup2(fd, 0); in OpenConsole()
143 dup2(fd, 1); in OpenConsole()
144 dup2(fd, 2); in OpenConsole()
Dfirmware_handler.cpp100 dup2(child_stdout.get(), STDOUT_FILENO); in RunExternalHandler()
101 dup2(child_stderr.get(), STDERR_FILENO); in RunExternalHandler()
Dfirst_stage_init.cpp324 dup2(fd, STDOUT_FILENO); in FirstStageMain()
325 dup2(fd, STDERR_FILENO); in FirstStageMain()
Dutil.cpp712 dup2(fd, STDIN_FILENO); in SetStdioToDevNull()
713 dup2(fd, STDOUT_FILENO); in SetStdioToDevNull()
714 dup2(fd, STDERR_FILENO); in SetStdioToDevNull()
/system/libbase/
Dtest_utils.cpp66 CHECK_NE(-1, dup2(fd(), std_fd_)); in Start()
71 CHECK_NE(-1, dup2(old_fd_, std_fd_)); in Stop()
Dcmsg_test.cpp47 int dup2 = dup(tmp2.fd); in SetUp() local
48 ASSERT_NE(-1, dup2); in SetUp()
51 fd2.reset(dup2); in SetUp()
54 ino2 = GetInode(dup2); in SetUp()
/system/extras/simpleperf/
Dtest_util.h119 if (dup2(tmpfile_->fd, STDOUT_FILENO) == -1) { in Start()
128 dup2(old_stdout_, STDOUT_FILENO); in Finish()
/system/core/adb/
Dadb_trace.cpp83 dup2(fd, STDOUT_FILENO); in start_device_log()
84 dup2(fd, STDERR_FILENO); in start_device_log()
Dadb_utils.cpp63 if (TEMP_FAILURE_RETRY(dup2(fd, STDIN_FILENO)) == -1) { in close_stdin()
/system/core/adb/client/
Dmain.cpp53 if (dup2(fd, STDOUT_FILENO) == -1) { in setup_daemon_logging()
56 if (dup2(fd, STDERR_FILENO) == -1) { in setup_daemon_logging()
/system/netd/server/
DIptablesRestoreController.cpp167 if (dup2(stdin_pipe[0], 0) == -1 || in forkAndExec()
168 dup2(stdout_pipe[1], 1) == -1 || in forkAndExec()
169 dup2(stderr_pipe[1], 2) == -1) { in forkAndExec()
/system/core/debuggerd/handler/
Ddebuggerd_handler.cpp336 TEMP_FAILURE_RETRY(dup2(devnull, 1)); in debuggerd_dispatch_pseudothread()
337 TEMP_FAILURE_RETRY(dup2(devnull, 2)); in debuggerd_dispatch_pseudothread()
388 TEMP_FAILURE_RETRY(dup2(input_write.get(), STDOUT_FILENO)); in debuggerd_dispatch_pseudothread()
389 TEMP_FAILURE_RETRY(dup2(output_read.get(), STDIN_FILENO)); in debuggerd_dispatch_pseudothread()
/system/connectivity/wificond/tests/
Dshell_utils.cpp75 dup2(write_fd.get(), 1); // Replace existing stdout with the pipe. in RunShellCommand()
/system/update_engine/common/
Dsubprocess.cc57 if (HANDLE_EINTR(dup2(STDOUT_FILENO, STDERR_FILENO)) != STDERR_FILENO) in SetupChild()
64 if (HANDLE_EINTR(dup2(fd, STDIN_FILENO)) != STDIN_FILENO) in SetupChild()
/system/extras/simpleperf/app_api/cpp/
Dsimpleperf.cpp314 dup2(stdout_fd[1], 1); in RunCmd()
431 dup2(control_fd[0], 0); // simpleperf read control cmd from fd 0. in CreateSimpleperfProcess()
434 dup2(reply_fd[1], 1); // simpleperf writes reply to fd 1. in CreateSimpleperfProcess()
/system/core/adb/daemon/
Dframebuffer_service.cpp75 dup2(fds[1], STDOUT_FILENO); in framebuffer_service()
Dshell_service.cpp345 dup2(child_stdinout_sfd.get(), STDIN_FILENO); in ForkAndExec()
346 dup2(child_stdinout_sfd.get(), STDOUT_FILENO); in ForkAndExec()
347 dup2(child_stderr_sfd != -1 ? child_stderr_sfd.get() : child_stdinout_sfd.get(), in ForkAndExec()
/system/extras/tests/kernel.config/
Daslr_test.cpp101 if(dup2(fd[1], STDOUT_FILENO) != STDOUT_FILENO) { in scrape_addr()
/system/core/fastboot/fuzzy_fastboot/
Dtest_utils.cpp169 dup2(link[1], STDERR_FILENO); // close stdout and have it now be link[1] in StartProgram()
/system/core/logwrapper/
Dlogwrap.cpp586 dup2(child_ptty, 1); in logwrap_fork_execvp()
587 dup2(child_ptty, 2); in logwrap_fork_execvp()
/system/core/debuggerd/
Dcrash_dump.cpp557 if (TEMP_FAILURE_RETRY(dup2(g_output_fd.get(), STDOUT_FILENO)) == -1) { in main()
562 TEMP_FAILURE_RETRY(dup2(devnull.get(), STDOUT_FILENO)); in main()
/system/testing/gtest_extras/
DIsolate.cpp238 if (dup2(write_fd, STDOUT_FILENO) == -1) { in LaunchTests()
241 if (dup2(write_fd, STDERR_FILENO) == -1) { in LaunchTests()
/system/core/logcat/
Dlogcat.cpp874 dup2(fd, output_fd_.get()); in Run()
875 dup2(fd, STDERR_FILENO); in Run()
/system/testing/gtest_extras/tests/
DSystemTests.cpp182 ASSERT_NE(0, dup2(fds[1], STDOUT_FILENO)); in Exec()
183 ASSERT_NE(0, dup2(fds[1], STDERR_FILENO)); in Exec()

12