X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=lib%2Fdup2.c;h=88944817cf20ee331172a6122db86c9f9e0ff335;hb=0fca46f3a4fcd58d8040d9bee331d2e2dc91275a;hp=d934da15da8a471143a95937aef5910c0aa03f20;hpb=222b0486b7db1b09293e05512873d633440efcb3;p=gnulib.git diff --git a/lib/dup2.c b/lib/dup2.c index d934da15d..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 */ -#ifdef 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)