summaryrefslogtreecommitdiff
path: root/lib/fchdir.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/fchdir.c')
-rw-r--r--lib/fchdir.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/lib/fchdir.c b/lib/fchdir.c
index e13ba2249d..63c287b207 100644
--- a/lib/fchdir.c
+++ b/lib/fchdir.c
@@ -211,19 +211,6 @@ rpl_fstat (int fd, struct stat *statbuf)
}
#endif
-/* Override dup(), to keep track of open file descriptors. */
-
-int
-rpl_dup (int oldfd)
-#undef dup
-{
- int newfd = dup (oldfd);
-
- if (0 <= newfd)
- newfd = _gl_register_dup (oldfd, newfd);
- return newfd;
-}
-
/* Implement fchdir() in terms of chdir(). */