diff options
Diffstat (limited to 'sysdeps/posix/dup2.c')
-rw-r--r-- | sysdeps/posix/dup2.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sysdeps/posix/dup2.c b/sysdeps/posix/dup2.c index 49a8e57ea1..bc8d422831 100644 --- a/sysdeps/posix/dup2.c +++ b/sysdeps/posix/dup2.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1991, 92, 93, 95, 96, 97 Free Software Foundation, Inc. +/* Copyright (C) 1991, 92, 93, 95, 96, 97, 2002 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -21,6 +21,8 @@ #include <limits.h> #include <unistd.h> +#undef __dup2 + /* Duplicate FD to FD2, closing the old FD2 and making FD2 be open the same file as FD is. Return FD2 or -1. */ @@ -57,4 +59,5 @@ __dup2 (fd, fd2) return fcntl (fd, F_DUPFD, fd2); } +INTDEF(__dup2) weak_alias (__dup2, dup2) |