Home
last modified time | relevance | path

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

/bionic/libc/bionic/
Ddup.cpp34 extern "C" int __dup(int old_fd);
35 extern "C" int __dup3(int old_fd, int new_fd, int flags);
37 int dup(int old_fd) { in dup() argument
38 return FDTRACK_CREATE(__dup(old_fd)); in dup()
41 int dup2(int old_fd, int new_fd) { in dup2() argument
45 if (old_fd == new_fd) { in dup2()
46 if (fcntl(old_fd, F_GETFD) == -1) { in dup2()
49 return old_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
[all …]