X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fdup2.c;h=88944817cf20ee331172a6122db86c9f9e0ff335;hb=e9cfd9f2d0d75d5d09d0acff6cb578a5c039c45c;hp=c5d418f0225d02c3aff4592f7ea1e59697c44a7a;hpb=267a39bafd249d7eb9c37df06dc6defcf41cb343;p=gnulib.git diff --git a/lib/dup2.c b/lib/dup2.c index c5d418f02..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,19 +18,13 @@ /* written by Paul Eggert */ -#if HAVE_CONFIG_H -# include -#endif +#include -#include +/* Specification. */ +#include -#if HAVE_FCNTL_H -# include -#endif - -#if HAVE_UNISTD_H -# include -#endif +#include +#include #ifndef F_DUPFD static int