Searched refs:old_fd (Results 1 – 1 of 1) sorted by relevance
32 int dup2(int old_fd, int new_fd) { in dup2() argument36 if (old_fd == new_fd) { in dup2()37 if (fcntl(old_fd, F_GETFD) == -1) { in dup2()40 return old_fd; in dup2()43 return dup3(old_fd, new_fd, 0); in dup2()