diff options
Diffstat (limited to 'sysdeps/posix/dup.c')
-rw-r--r-- | sysdeps/posix/dup.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sysdeps/posix/dup.c b/sysdeps/posix/dup.c index 02d7097b4c..9525e76749 100644 --- a/sysdeps/posix/dup.c +++ b/sysdeps/posix/dup.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1991-2015 Free Software Foundation, Inc. +/* Copyright (C) 1991-2016 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 @@ -22,8 +22,7 @@ /* Duplicate FD, returning a new file descriptor open on the same file. */ int -__dup (fd) - int fd; +__dup (int fd) { return fcntl (fd, F_DUPFD, 0); } |