/system/core/init/ |
D | first_stage_console.cpp | 78 dup2(fd, STDIN_FILENO); in StartConsole() 79 dup2(fd, STDOUT_FILENO); in StartConsole() 80 dup2(fd, STDERR_FILENO); in StartConsole()
|
D | service_utils.cpp | 129 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()
|
D | firmware_handler.cpp | 100 dup2(child_stdout.get(), STDOUT_FILENO); in RunExternalHandler() 101 dup2(child_stderr.get(), STDERR_FILENO); in RunExternalHandler()
|
D | first_stage_init.cpp | 324 dup2(fd, STDOUT_FILENO); in FirstStageMain() 325 dup2(fd, STDERR_FILENO); in FirstStageMain()
|
D | util.cpp | 712 dup2(fd, STDIN_FILENO); in SetStdioToDevNull() 713 dup2(fd, STDOUT_FILENO); in SetStdioToDevNull() 714 dup2(fd, STDERR_FILENO); in SetStdioToDevNull()
|
/system/libbase/ |
D | test_utils.cpp | 66 CHECK_NE(-1, dup2(fd(), std_fd_)); in Start() 71 CHECK_NE(-1, dup2(old_fd_, std_fd_)); in Stop()
|
D | cmsg_test.cpp | 47 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/ |
D | test_util.h | 119 if (dup2(tmpfile_->fd, STDOUT_FILENO) == -1) { in Start() 128 dup2(old_stdout_, STDOUT_FILENO); in Finish()
|
/system/core/adb/ |
D | adb_trace.cpp | 83 dup2(fd, STDOUT_FILENO); in start_device_log() 84 dup2(fd, STDERR_FILENO); in start_device_log()
|
D | adb_utils.cpp | 63 if (TEMP_FAILURE_RETRY(dup2(fd, STDIN_FILENO)) == -1) { in close_stdin()
|
/system/core/adb/client/ |
D | main.cpp | 53 if (dup2(fd, STDOUT_FILENO) == -1) { in setup_daemon_logging() 56 if (dup2(fd, STDERR_FILENO) == -1) { in setup_daemon_logging()
|
/system/netd/server/ |
D | IptablesRestoreController.cpp | 167 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/ |
D | debuggerd_handler.cpp | 336 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/ |
D | shell_utils.cpp | 75 dup2(write_fd.get(), 1); // Replace existing stdout with the pipe. in RunShellCommand()
|
/system/update_engine/common/ |
D | subprocess.cc | 57 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/ |
D | simpleperf.cpp | 314 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/ |
D | framebuffer_service.cpp | 75 dup2(fds[1], STDOUT_FILENO); in framebuffer_service()
|
D | shell_service.cpp | 345 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/ |
D | aslr_test.cpp | 101 if(dup2(fd[1], STDOUT_FILENO) != STDOUT_FILENO) { in scrape_addr()
|
/system/core/fastboot/fuzzy_fastboot/ |
D | test_utils.cpp | 169 dup2(link[1], STDERR_FILENO); // close stdout and have it now be link[1] in StartProgram()
|
/system/core/logwrapper/ |
D | logwrap.cpp | 586 dup2(child_ptty, 1); in logwrap_fork_execvp() 587 dup2(child_ptty, 2); in logwrap_fork_execvp()
|
/system/core/debuggerd/ |
D | crash_dump.cpp | 557 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/ |
D | Isolate.cpp | 238 if (dup2(write_fd, STDOUT_FILENO) == -1) { in LaunchTests() 241 if (dup2(write_fd, STDERR_FILENO) == -1) { in LaunchTests()
|
/system/core/logcat/ |
D | logcat.cpp | 874 dup2(fd, output_fd_.get()); in Run() 875 dup2(fd, STDERR_FILENO); in Run()
|
/system/testing/gtest_extras/tests/ |
D | SystemTests.cpp | 182 ASSERT_NE(0, dup2(fds[1], STDOUT_FILENO)); in Exec() 183 ASSERT_NE(0, dup2(fds[1], STDERR_FILENO)); in Exec()
|