X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fdup2.c;h=88944817cf20ee331172a6122db86c9f9e0ff335;hb=e9cfd9f2d0d75d5d09d0acff6cb578a5c039c45c;hp=77deaf62d0b4751673d8c7f033020d53c9f23c7c;hpb=d1eb42bdbbaf00d38b2a479e9aa40207b79bd090;p=gnulib.git diff --git a/lib/dup2.c b/lib/dup2.c index 77deaf62d..88944817c 100644 --- a/lib/dup2.c +++ b/lib/dup2.c @@ -1,5 +1,6 @@ /* Duplicate an open file descriptor to a specified file descriptor. - Copyright (C) 1999, 2004 Free Software Foundation, Inc. + + Copyright (C) 1999, 2004, 2005, 2006, 2007 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -17,18 +18,14 @@ /* written by Paul Eggert */ -#if HAVE_CONFIG_H -# include -#endif +#include -#include +/* Specification. */ +#include +#include #include -#if HAVE_UNISTD_H -# include -#endif - #ifndef F_DUPFD static int dupfd (int fd, int desired_fd)