Searched refs:old_fd (Results 1 – 1 of 1) sorted by relevance
34 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() argument38 return FDTRACK_CREATE(__dup(old_fd)); in dup()41 int dup2(int old_fd, int new_fd) { in dup2() argument45 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 …]