Home
last modified time | relevance | path

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

/bionic/libc/upstream-openbsd/lib/libc/gen/
Ddaemon.c57 (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/
Ddup2.cpp32 int dup2(int old_fd, int new_fd) { in dup2() function
Dpty.cpp188 dup2(fd, STDIN_FILENO); in login_tty()
189 dup2(fd, STDOUT_FILENO); in login_tty()
190 dup2(fd, STDERR_FILENO); in login_tty()
Dlibc_init_common.cpp151 status = TEMP_FAILURE_RETRY(dup2(dev_null, i)); in __nullify_closed_stdio()
Dspawn.cpp65 if (dup2(fd, new_fd) == -1) _exit(127); in Do()
72 if (dup2(fd, new_fd) == -1) _exit(127); in Do()
/bionic/tests/
Dutils.h227 dup2(fds[1], STDOUT_FILENO); in Run()
228 dup2(fds[1], STDERR_FILENO); in Run()
Dunistd_test.cpp1086 ASSERT_EQ(fd, dup2(fd, fd)); in TEST()
1091 ASSERT_EQ(-1, dup2(fd, fd)); in TEST()
Dstdio_test.cpp869 ASSERT_NE(-1, dup2(fd_rdonly, fileno(fp))); in TEST()
879 ASSERT_NE(-1, dup2(fd_rdonly, fileno(fp))); in TEST()
/bionic/benchmarks/tests/
Dinterface_test.cpp89 ASSERT_NE(0, dup2(fds[1], STDOUT_FILENO)); in Exec()
90 ASSERT_NE(0, dup2(fds[1], STDERR_FILENO)); in Exec()
/bionic/libc/malloc_debug/tests/
Dmalloc_debug_system_tests.cpp63 ASSERT_NE(0, dup2(fds[1], STDOUT_FILENO)); in Exec()
64 ASSERT_NE(0, dup2(fds[1], STDERR_FILENO)); in Exec()
/bionic/libc/
DSECCOMP_WHITELIST_APP.TXT67 int dup2(int oldfd, int newfd) arm,x86,mips
Dlibc.map.txt300 dup2;
DAndroid.bp1038 "bionic/dup2.cpp",
/bionic/libc/include/
Dunistd.h242 int dup2(int __old_fd, int __new_fd);
/bionic/tests/headers/posix/
Dunistd_h.c298 FUNCTION(dup2, int (*f)(int, int)); in unistd_h()
/bionic/tools/versioner/src/
Dversioner.cpp229 dup2(empty_file_fd, STDIN_FILENO); in compileHeaders()
/bionic/libc/stdio/
Dstdio.cpp1226 if (dup2(fds[child], desired_child_fd) == -1) _exit(127); in popen()
1228 if (bidirectional) dup2(STDOUT_FILENO, STDIN_FILENO); in popen()
/bionic/libc/tools/
Dposix-2013.txt187 dup2
/bionic/tools/versioner/platforms/
Dlibc.map.txt300 dup2;