Home
last modified time | relevance | path

Searched refs:new_fd (Results 1 – 4 of 4) sorted by relevance

/bionic/libc/bionic/
Ddup.cpp35 extern "C" int __dup3(int old_fd, int new_fd, int flags);
41 int dup2(int old_fd, int new_fd) { in dup2() argument
45 if (old_fd == new_fd) { in dup2()
52 return FDTRACK_CREATE(__dup3(old_fd, new_fd, 0)); in dup2()
55 int dup3(int old_fd, int new_fd, int flags) { in dup3() argument
56 return FDTRACK_CREATE(__dup3(old_fd, new_fd, flags)); in dup3()
Dspawn.cpp54 int new_fd; member
64 if (fd != new_fd) { in Do()
65 if (dup2(fd, new_fd) == -1) _exit(127); in Do()
72 if (dup2(fd, new_fd) == -1) _exit(127); in Do()
295 int new_fd, in posix_spawn_add_file_action() argument
315 action->new_fd = new_fd; in posix_spawn_add_file_action()
340 int posix_spawn_file_actions_adddup2(posix_spawn_file_actions_t* actions, int fd, int new_fd) { in posix_spawn_file_actions_adddup2() argument
341 if (fd < 0 || new_fd < 0) return EBADF; in posix_spawn_file_actions_adddup2()
342 return posix_spawn_add_file_action(actions, kDup2, fd, new_fd, nullptr, 0, 0); in posix_spawn_file_actions_adddup2()
/bionic/docs/
Dfdsan.md319 void reset(int new_fd = -1) {
325 if (new_fd != -1) {
326 fd_ = new_fd;
/bionic/libc/stdio/
Dstdio.cpp1212 int new_fd = fcntl(fds[child], F_DUPFD_CLOEXEC, 0); in popen() local
1213 if (new_fd == -1) return __popen_fail(fds); in popen()
1215 fds[child] = new_fd; in popen()