Searched refs:dup2 (Results 1 – 22 of 22) sorted by relevance
/bionic/libc/upstream-openbsd/lib/libc/gen/ |
D | daemon.c | 57 (void)dup2(fd, STDIN_FILENO); in daemon() 58 (void)dup2(fd, STDOUT_FILENO); in daemon() 59 (void)dup2(fd, STDERR_FILENO); in daemon()
|
/bionic/libc/bionic/ |
D | pty.cpp | 188 dup2(fd, STDIN_FILENO); in login_tty() 189 dup2(fd, STDOUT_FILENO); in login_tty() 190 dup2(fd, STDERR_FILENO); in login_tty()
|
D | dup.cpp | 41 int dup2(int old_fd, int new_fd) { in dup2() function
|
D | spawn.cpp | 65 if (dup2(fd, new_fd) == -1) _exit(127); in Do() 72 if (dup2(fd, new_fd) == -1) _exit(127); in Do()
|
D | libc_init_common.cpp | 168 status = TEMP_FAILURE_RETRY(dup2(dev_null, i)); in __nullify_closed_stdio()
|
/bionic/benchmarks/tests/ |
D | interface_test.cpp | 89 ASSERT_NE(0, dup2(fds[1], STDOUT_FILENO)); in Exec() 90 ASSERT_NE(0, dup2(fds[1], STDERR_FILENO)); in Exec()
|
/bionic/tests/ |
D | utils.h | 242 dup2(fds[1], STDOUT_FILENO); in Run() 243 dup2(fds[1], STDERR_FILENO); in Run()
|
D | fdtrack_test.cpp | 216 FDTRACK_TEST(dup2, dup2(STDOUT_FILENO, STDERR_FILENO));
|
D | clang_fortify_tests.cpp | 114 if (!dup2(devnull, STDIN_FILENO)) err(1, "failed to overwrite stdin"); in SetUp() 122 if (!dup2(stdin_saved, STDIN_FILENO)) warn("failed to restore stdin"); in TearDown()
|
D | unistd_test.cpp | 1161 ASSERT_EQ(fd, dup2(fd, fd)); in TEST() 1166 ASSERT_EQ(-1, dup2(fd, fd)); in TEST()
|
D | stdio_test.cpp | 919 ASSERT_NE(-1, dup2(fd_rdonly, fileno(fp))); in TEST() 929 ASSERT_NE(-1, dup2(fd_rdonly, fileno(fp))); in TEST()
|
/bionic/libc/ |
D | SECCOMP_ALLOWLIST_APP.TXT | 52 int dup2(int oldfd, int newfd) lp32
|
D | libc.map.txt | 300 dup2;
|
/bionic/libc/malloc_debug/tests/ |
D | malloc_debug_system_tests.cpp | 80 ASSERT_NE(0, dup2(fds[1], STDOUT_FILENO)); in Exec() 81 ASSERT_NE(0, dup2(fds[1], STDERR_FILENO)); in Exec()
|
/bionic/libc/include/ |
D | unistd.h | 242 int dup2(int __old_fd, int __new_fd);
|
/bionic/tests/headers/posix/ |
D | unistd_h.c | 298 FUNCTION(dup2, int (*f)(int, int)); in unistd_h()
|
/bionic/libc/stdio/ |
D | stdio.cpp | 1224 if (dup2(fds[child], desired_child_fd) == -1) _exit(127); in popen() 1226 if (bidirectional) dup2(STDOUT_FILENO, STDIN_FILENO); in popen()
|
/bionic/tools/versioner/src/ |
D | versioner.cpp | 229 dup2(empty_file_fd, STDIN_FILENO); in compileHeaders()
|
/bionic/libc/tools/ |
D | posix-2013.txt | 187 dup2
|
/bionic/benchmarks/linker_relocation/gen/ |
D | liblinker_reloc_bench_003.S | 1226 CALL(dup2)
|
D | liblinker_reloc_bench_001.S | 4196 CALL(dup2)
|
/bionic/tools/versioner/platforms/ |
D | libc.map.txt | 300 dup2;
|