# HG changeset patch # User Paul Eggert # Date 1158187094 0 # Node ID 8a1a9361108cd4fa886a81421c5ac2643794f974 # Parent 2e93db97d2d7abeac1efef53dd99b0733a63c664 * _fpending.c: Include unconditionally, since we no longer worry about uses that don't define HAVE_CONFIG_H. * acl.c, alloca.c, argmatch.c, atexit.c, backupfile.c: * basename.c, c-stack.c, c-strtod.c, calloc.c, canon-host.c: * canonicalize.c, chdir-long.c, chdir-safer.c, chown.c: * cloexec.c, close-stream.c, closeout.c, creat-safer.c: * cycle-check.c, diacrit.c, dirchownmod.c, dirfd.c, dirname.c: * dup-safer.c, dup2.c, error.c, euidaccess.c, exclude.c: * exitfail.c, fchmodat.c, fchown-stub.c, fd-safer.c: * file-type.c, fileblocks.c, filemode.c, filenamecat.c: * fnmatch.c, fopen-safer.c, fprintftime.c, free.c, fsusage.c: * ftruncate.c, fts-cycle.c, fts.c, full-write.c, gai_strerror.c: * getcwd.c, getdate.y, getdomainname.c, getgroups.c: * gethostname.c, gethrxtime.c, getloadavg.c, getlogin_r.c: * getndelim2.c, getnline.c, getopt.c, getopt1.c, getpass.c: * gettime.c, gettimeofday.c, getugroups.c, getusershell.c: * glob.c, group-member.c, hard-locale.c, hash-pjw.c, hash.c: * human.c, idcache.c, inet_ntop.c, inet_pton.c, inttostr.c: * isdir.c, lchown.c, linebuffer.c, long-options.c, lstat.c: * malloc.c, md5.c, memcasecmp.c, memchr.c, memcmp.c, memcoll.c: * memcpy.c, memmove.c, memrchr.c, mkancesdirs.c, mkdir-p.c: * mkdir.c, mkdirat.c, mkstemp-safer.c, mkstemp.c, modechange.c: * mountlist.c, nanosleep.c, obstack.c, open-safer.c: * openat-die.c, openat.c, pagealign_alloc.c, physmem.c: * pipe-safer.c, posixtm.c, posixver.c, putenv.c, quote.c: * quotearg.c, raise.c, readtokens.c, readtokens0.c, readutmp.c: * realloc.c, regex.c, rename.c, rmdir.c, rpmatch.c, safe-read.c: * same.c, save-cwd.c, savedir.c, setenv.c, settime.c, sha1.c: * sig2str.c, snprintf.c, strdup.c, strerror.c, strftime.c: * stripslash.c, strndup.c, strnlen.c, strpbrk.c, strtod.c: * strtoimax.c, strtol.c, strverscmp.c, tempname.c, time_r.c: * timegm.c, tmpfile-safer.c, unlinkdir.c, userspec.c, utime.c: * utimecmp.c, utimens.c, version-etc-fsf.c, version-etc.c: * xalloc-die.c, xgetcwd.c, xgethostname.c, xmalloc.c: * xmemcoll.c, xnanosleep.c, xreadlink.c, xstrtod.c: * xstrtoimax.c, xstrtol.c, xstrtoumax.c, yesno.c: Likewise. diff --git a/lib/ChangeLog b/lib/ChangeLog --- a/lib/ChangeLog +++ b/lib/ChangeLog @@ -1,3 +1,43 @@ +2006-09-13 Paul Eggert + + * _fpending.c: Include unconditionally, since we no + longer worry about uses that don't define HAVE_CONFIG_H. + * acl.c, alloca.c, argmatch.c, atexit.c, backupfile.c: + * basename.c, c-stack.c, c-strtod.c, calloc.c, canon-host.c: + * canonicalize.c, chdir-long.c, chdir-safer.c, chown.c: + * cloexec.c, close-stream.c, closeout.c, creat-safer.c: + * cycle-check.c, diacrit.c, dirchownmod.c, dirfd.c, dirname.c: + * dup-safer.c, dup2.c, error.c, euidaccess.c, exclude.c: + * exitfail.c, fchmodat.c, fchown-stub.c, fd-safer.c: + * file-type.c, fileblocks.c, filemode.c, filenamecat.c: + * fnmatch.c, fopen-safer.c, fprintftime.c, free.c, fsusage.c: + * ftruncate.c, fts-cycle.c, fts.c, full-write.c, gai_strerror.c: + * getcwd.c, getdate.y, getdomainname.c, getgroups.c: + * gethostname.c, gethrxtime.c, getloadavg.c, getlogin_r.c: + * getndelim2.c, getnline.c, getopt.c, getopt1.c, getpass.c: + * gettime.c, gettimeofday.c, getugroups.c, getusershell.c: + * glob.c, group-member.c, hard-locale.c, hash-pjw.c, hash.c: + * human.c, idcache.c, inet_ntop.c, inet_pton.c, inttostr.c: + * isdir.c, lchown.c, linebuffer.c, long-options.c, lstat.c: + * malloc.c, md5.c, memcasecmp.c, memchr.c, memcmp.c, memcoll.c: + * memcpy.c, memmove.c, memrchr.c, mkancesdirs.c, mkdir-p.c: + * mkdir.c, mkdirat.c, mkstemp-safer.c, mkstemp.c, modechange.c: + * mountlist.c, nanosleep.c, obstack.c, open-safer.c: + * openat-die.c, openat.c, pagealign_alloc.c, physmem.c: + * pipe-safer.c, posixtm.c, posixver.c, putenv.c, quote.c: + * quotearg.c, raise.c, readtokens.c, readtokens0.c, readutmp.c: + * realloc.c, regex.c, rename.c, rmdir.c, rpmatch.c, safe-read.c: + * same.c, save-cwd.c, savedir.c, setenv.c, settime.c, sha1.c: + * sig2str.c, snprintf.c, strdup.c, strerror.c, strftime.c: + * stripslash.c, strndup.c, strnlen.c, strpbrk.c, strtod.c: + * strtoimax.c, strtol.c, strverscmp.c, tempname.c, time_r.c: + * timegm.c, tmpfile-safer.c, unlinkdir.c, userspec.c, utime.c: + * utimecmp.c, utimens.c, version-etc-fsf.c, version-etc.c: + * xalloc-die.c, xgetcwd.c, xgethostname.c, xmalloc.c: + * xmemcoll.c, xnanosleep.c, xreadlink.c, xstrtod.c: + * xstrtoimax.c, xstrtol.c, xstrtoumax.c, yesno.c: + Likewise. + 2006-09-12 Jim Meyering * nanosleep.c: Include before sys/select.h, to avoid diff --git a/lib/__fpending.c b/lib/__fpending.c --- a/lib/__fpending.c +++ b/lib/__fpending.c @@ -1,5 +1,5 @@ /* __fpending.c -- return the number of pending output bytes on a stream - Copyright (C) 2000, 2004 Free Software Foundation, Inc. + Copyright (C) 2000, 2004, 2006 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,9 +17,7 @@ /* Written by Jim Meyering. */ -#ifdef HAVE_CONFIG_H -# include -#endif +#include #include "__fpending.h" diff --git a/lib/acl.c b/lib/acl.c --- a/lib/acl.c +++ b/lib/acl.c @@ -1,6 +1,6 @@ /* acl.c - access control lists - Copyright (C) 2002, 2003, 2005 Free Software Foundation, Inc. + Copyright (C) 2002, 2003, 2005, 2006 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 @@ -18,9 +18,7 @@ Written by Paul Eggert and Andreas Gruenbacher. */ -#ifdef HAVE_CONFIG_H -# include -#endif +#include #include #include diff --git a/lib/alloca.c b/lib/alloca.c --- a/lib/alloca.c +++ b/lib/alloca.c @@ -21,9 +21,7 @@ allocating any. It is a good idea to use alloca(0) in your main control loop, etc. to force garbage collection. */ -#ifdef HAVE_CONFIG_H -# include -#endif +#include #include diff --git a/lib/argmatch.c b/lib/argmatch.c --- a/lib/argmatch.c +++ b/lib/argmatch.c @@ -1,7 +1,7 @@ /* argmatch.c -- find a match for a string in an array - Copyright (C) 1990, 1998, 1999, 2001, 2002, 2003, 2004, 2005 Free - Software Foundation, Inc. + Copyright (C) 1990, 1998, 1999, 2001, 2002, 2003, 2004, 2005, 2006 + 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 @@ -20,9 +20,7 @@ /* Written by David MacKenzie Modified by Akim Demaille */ -#ifdef HAVE_CONFIG_H -# include -#endif +#include /* Specification. */ #include "argmatch.h" diff --git a/lib/atexit.c b/lib/atexit.c --- a/lib/atexit.c +++ b/lib/atexit.c @@ -1,9 +1,7 @@ /* Wrapper to implement ANSI C's atexit using SunOS's on_exit. */ /* This function is in the public domain. --Mike Stump. */ -#ifdef HAVE_CONFIG_H -# include -#endif +#include int atexit (void (*f) (void)) diff --git a/lib/backupfile.c b/lib/backupfile.c --- a/lib/backupfile.c +++ b/lib/backupfile.c @@ -22,9 +22,7 @@ /* Written by Paul Eggert and David MacKenzie. Some algorithms adapted from GNU Emacs. */ -#ifdef HAVE_CONFIG_H -# include -#endif +#include #include "backupfile.h" diff --git a/lib/basename.c b/lib/basename.c --- a/lib/basename.c +++ b/lib/basename.c @@ -17,9 +17,7 @@ along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#ifdef HAVE_CONFIG_H -# include -#endif +#include #include "dirname.h" diff --git a/lib/c-stack.c b/lib/c-stack.c --- a/lib/c-stack.c +++ b/lib/c-stack.c @@ -34,9 +34,7 @@ No attempt has been made to deal with multithreaded applications. */ -#ifdef HAVE_CONFIG_H -# include -#endif +#include #ifndef __attribute__ # if __GNUC__ < 3 || __STRICT_ANSI__ @@ -304,6 +302,6 @@ /* Local Variables: -compile-command: "gcc -DDEBUG -DHAVE_CONFIG_H -I.. -g -O -Wall -W c-stack.c" +compile-command: "gcc -DDEBUG -g -O -Wall -W c-stack.c" End: */ diff --git a/lib/c-strtod.c b/lib/c-strtod.c --- a/lib/c-strtod.c +++ b/lib/c-strtod.c @@ -1,6 +1,6 @@ /* Convert string to double, using the C locale. - Copyright (C) 2003, 2004 Free Software Foundation, Inc. + Copyright (C) 2003, 2004, 2006 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 @@ -18,9 +18,7 @@ /* Written by Paul Eggert. */ -#ifdef HAVE_CONFIG_H -# include -#endif +#include #include "c-strtod.h" diff --git a/lib/calloc.c b/lib/calloc.c --- a/lib/calloc.c +++ b/lib/calloc.c @@ -1,6 +1,6 @@ /* calloc() function that is glibc compatible. This wrapper function is required at least on Tru64 UNIX 5.1. - Copyright (C) 2004, 2005 Free Software Foundation, Inc. + Copyright (C) 2004, 2005, 2006 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 @@ -18,9 +18,7 @@ /* written by Jim Meyering */ -#ifdef HAVE_CONFIG_H -# include -#endif +#include #undef calloc #include diff --git a/lib/canon-host.c b/lib/canon-host.c --- a/lib/canon-host.c +++ b/lib/canon-host.c @@ -1,6 +1,6 @@ /* Host name canonicalization - Copyright (C) 2005 Free Software Foundation, Inc. + Copyright (C) 2005, 2006 Free Software Foundation, Inc. Written by Derek Price . @@ -18,9 +18,7 @@ along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#ifdef HAVE_CONFIG_H -# include -#endif +#include #include "canon-host.h" diff --git a/lib/canonicalize.c b/lib/canonicalize.c --- a/lib/canonicalize.c +++ b/lib/canonicalize.c @@ -1,5 +1,5 @@ /* Return the canonical absolute name of a given file. - Copyright (C) 1996-2005 Free Software Foundation, Inc. + Copyright (C) 1996-2006 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 @@ -16,9 +16,7 @@ If not, write to the Free Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#ifdef HAVE_CONFIG_H -# include -#endif +#include #include "canonicalize.h" diff --git a/lib/chdir-long.c b/lib/chdir-long.c --- a/lib/chdir-long.c +++ b/lib/chdir-long.c @@ -17,9 +17,7 @@ /* written by Jim Meyering */ -#ifdef HAVE_CONFIG_H -# include -#endif +#include #include "chdir-long.h" @@ -263,6 +261,6 @@ /* Local Variables: -compile-command: "gcc -DTEST_CHDIR=1 -DHAVE_CONFIG_H -I.. -g -O -W -Wall chdir-long.c libcoreutils.a" +compile-command: "gcc -DTEST_CHDIR=1 -g -O -W -Wall chdir-long.c libcoreutils.a" End: */ diff --git a/lib/chdir-safer.c b/lib/chdir-safer.c --- a/lib/chdir-safer.c +++ b/lib/chdir-safer.c @@ -18,9 +18,7 @@ /* written by Jim Meyering */ -#ifdef HAVE_CONFIG_H -# include -#endif +#include #include "chdir-safer.h" diff --git a/lib/chown.c b/lib/chown.c --- a/lib/chown.c +++ b/lib/chown.c @@ -1,6 +1,7 @@ /* provide consistent interface to chown for systems that don't interpret an ID of -1 as meaning `don't change the corresponding ID'. - Copyright (C) 1997, 2004, 2005 Free Software Foundation, Inc. + + Copyright (C) 1997, 2004, 2005, 2006 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 @@ -18,9 +19,7 @@ /* written by Jim Meyering */ -#ifdef HAVE_CONFIG_H -# include -#endif +#include /* Disable the definition of chown to rpl_chown (from config.h) in this file. Otherwise, we'd get conflicting prototypes for rpl_chown on diff --git a/lib/cloexec.c b/lib/cloexec.c --- a/lib/cloexec.c +++ b/lib/cloexec.c @@ -1,5 +1,6 @@ /* closexec.c - set or clear the close-on-exec descriptor flag - Copyright (C) 1991, 2004, 2005 Free Software Foundation, Inc. + + Copyright (C) 1991, 2004, 2005, 2006 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,9 +18,7 @@ The code is taken from glibc/manual/llio.texi */ -#ifdef HAVE_CONFIG_H -# include -#endif +#include #include "cloexec.h" diff --git a/lib/close-stream.c b/lib/close-stream.c --- a/lib/close-stream.c +++ b/lib/close-stream.c @@ -17,9 +17,7 @@ along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#ifdef HAVE_CONFIG_H -# include -#endif +#include #include "close-stream.h" diff --git a/lib/closeout.c b/lib/closeout.c --- a/lib/closeout.c +++ b/lib/closeout.c @@ -17,9 +17,7 @@ along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#ifdef HAVE_CONFIG_H -# include -#endif +#include #include "closeout.h" diff --git a/lib/creat-safer.c b/lib/creat-safer.c --- a/lib/creat-safer.c +++ b/lib/creat-safer.c @@ -1,5 +1,6 @@ /* Invoke creat, but avoid some glitches. - Copyright (C) 2005 Free Software Foundation, Inc. + + Copyright (C) 2005, 2006 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,9 +18,7 @@ /* Written by Jim Meyering. */ -#ifdef HAVE_CONFIG_H -# include -#endif +#include #include "fcntl-safer.h" diff --git a/lib/cycle-check.c b/lib/cycle-check.c --- a/lib/cycle-check.c +++ b/lib/cycle-check.c @@ -19,9 +19,7 @@ /* Written by Jim Meyering */ -#ifdef HAVE_CONFIG_H -# include -#endif +#include #include #include diff --git a/lib/diacrit.c b/lib/diacrit.c --- a/lib/diacrit.c +++ b/lib/diacrit.c @@ -1,5 +1,8 @@ /* Diacritics processing for a few character codes. - Copyright (C) 1990, 1991, 1992, 1993, 2000 Free Software Foundation, Inc. + + Copyright (C) 1990, 1991, 1992, 1993, 2000, 2006 Free Software + Foundation, Inc. + François Pinard , 1988. All this file is a temporary hack, waiting for locales in GNU. @@ -19,9 +22,7 @@ If not, write to the Free Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#ifdef HAVE_CONFIG_H -# include -#endif +#include #include "diacrit.h" diff --git a/lib/dirchownmod.c b/lib/dirchownmod.c --- a/lib/dirchownmod.c +++ b/lib/dirchownmod.c @@ -18,9 +18,7 @@ /* Written by Paul Eggert. */ -#ifdef HAVE_CONFIG_H -# include -#endif +#include #include "dirchownmod.h" diff --git a/lib/dirfd.c b/lib/dirfd.c --- a/lib/dirfd.c +++ b/lib/dirfd.c @@ -1,5 +1,6 @@ /* dirfd.c -- return the file descriptor associated with an open DIR* - Copyright (C) 2001 Free Software Foundation, Inc. + + Copyright (C) 2001, 2006 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,9 +18,7 @@ /* Written by Jim Meyering. */ -#ifdef HAVE_CONFIG_H -# include -#endif +#include #include "dirfd.h" diff --git a/lib/dirname.c b/lib/dirname.c --- a/lib/dirname.c +++ b/lib/dirname.c @@ -17,9 +17,7 @@ along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#ifdef HAVE_CONFIG_H -# include -#endif +#include #include "dirname.h" diff --git a/lib/dup-safer.c b/lib/dup-safer.c --- a/lib/dup-safer.c +++ b/lib/dup-safer.c @@ -1,5 +1,6 @@ /* Invoke dup, but avoid some glitches. - Copyright (C) 2001, 2004, 2005 Free Software Foundation, Inc. + + Copyright (C) 2001, 2004, 2005, 2006 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,9 +18,7 @@ /* Written by Paul Eggert. */ -#ifdef HAVE_CONFIG_H -# include -#endif +#include #include "unistd-safer.h" diff --git a/lib/dup2.c b/lib/dup2.c --- 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, 2005 Free Software Foundation, Inc. + + Copyright (C) 1999, 2004, 2005, 2006 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,9 +18,7 @@ /* written by Paul Eggert */ -#ifdef HAVE_CONFIG_H -# include -#endif +#include #include #include diff --git a/lib/error.c b/lib/error.c --- a/lib/error.c +++ b/lib/error.c @@ -18,7 +18,7 @@ /* Written by David MacKenzie . */ -#ifdef HAVE_CONFIG_H +#if !_LIBC # include #endif diff --git a/lib/euidaccess.c b/lib/euidaccess.c --- a/lib/euidaccess.c +++ b/lib/euidaccess.c @@ -1,7 +1,7 @@ /* euidaccess -- check if effective user id can access file - Copyright (C) 1990, 1991, 1995, 1998, 2000, 2003, 2004, 2005 Free - Software Foundation, Inc. + Copyright (C) 1990, 1991, 1995, 1998, 2000, 2003, 2004, 2005, 2006 + Free Software Foundation, Inc. This file is part of the GNU C Library. @@ -22,11 +22,8 @@ /* Written by David MacKenzie and Torbjorn Granlund. Adapted for GNU C library by Roland McGrath. */ -#ifdef HAVE_CONFIG_H +#ifndef _LIBC # include -#endif - -#ifndef _LIBC # include "euidaccess.h" #endif diff --git a/lib/exclude.c b/lib/exclude.c --- a/lib/exclude.c +++ b/lib/exclude.c @@ -20,9 +20,7 @@ /* Written by Paul Eggert */ -#ifdef HAVE_CONFIG_H -# include -#endif +#include #include diff --git a/lib/exitfail.c b/lib/exitfail.c --- a/lib/exitfail.c +++ b/lib/exitfail.c @@ -1,6 +1,6 @@ /* Failure exit status - Copyright (C) 2002, 2003, 2005 Free Software Foundation, Inc. + Copyright (C) 2002, 2003, 2005, 2006 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,9 +17,7 @@ If not, write to the Free Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#ifdef HAVE_CONFIG_H -# include -#endif +#include #include "exitfail.h" #include "exit.h" diff --git a/lib/fchmodat.c b/lib/fchmodat.c --- a/lib/fchmodat.c +++ b/lib/fchmodat.c @@ -17,9 +17,7 @@ /* written by Jim Meyering */ -#ifdef HAVE_CONFIG_H -# include -#endif +#include #include "openat.h" #include "dirname.h" /* solely for definition of IS_ABSOLUTE_FILE_NAME */ diff --git a/lib/fchown-stub.c b/lib/fchown-stub.c --- a/lib/fchown-stub.c +++ b/lib/fchown-stub.c @@ -1,6 +1,5 @@ -#ifdef HAVE_CONFIG_H -# include -#endif +#include + #include #include diff --git a/lib/fd-safer.c b/lib/fd-safer.c --- a/lib/fd-safer.c +++ b/lib/fd-safer.c @@ -1,6 +1,6 @@ /* Return a safer copy of a file descriptor. - Copyright (C) 2005 Free Software Foundation, Inc. + Copyright (C) 2005, 2006 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 @@ -18,9 +18,7 @@ /* Written by Paul Eggert. */ -#ifdef HAVE_CONFIG_H -# include -#endif +#include #include "unistd-safer.h" diff --git a/lib/file-type.c b/lib/file-type.c --- a/lib/file-type.c +++ b/lib/file-type.c @@ -1,7 +1,7 @@ /* Return a string describing the type of a file. - Copyright (C) 1993, 1994, 2001, 2002, 2004, 2005 Free Software - Foundation, Inc. + Copyright (C) 1993, 1994, 2001, 2002, 2004, 2005, 2006 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 @@ -19,9 +19,7 @@ /* Written by Paul Eggert. */ -#ifdef HAVE_CONFIG_H -# include -#endif +#include #include "file-type.h" diff --git a/lib/fileblocks.c b/lib/fileblocks.c --- a/lib/fileblocks.c +++ b/lib/fileblocks.c @@ -18,10 +18,8 @@ Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ /* Written by Brian L. Matthews, blm@6sceng.UUCP. */ - -#ifdef HAVE_CONFIG_H -# include -#endif + +#include #include diff --git a/lib/filemode.c b/lib/filemode.c --- a/lib/filemode.c +++ b/lib/filemode.c @@ -17,9 +17,7 @@ along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#ifdef HAVE_CONFIG_H -# include -#endif +#include #include "filemode.h" diff --git a/lib/filenamecat.c b/lib/filenamecat.c --- a/lib/filenamecat.c +++ b/lib/filenamecat.c @@ -19,9 +19,7 @@ /* Written by Jim Meyering. */ -#ifdef HAVE_CONFIG_H -# include -#endif +#include /* Specification. */ #include "filenamecat.h" diff --git a/lib/fnmatch.c b/lib/fnmatch.c --- a/lib/fnmatch.c +++ b/lib/fnmatch.c @@ -15,7 +15,7 @@ along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#ifdef HAVE_CONFIG_H +#ifndef _LIBC # include #endif diff --git a/lib/fopen-safer.c b/lib/fopen-safer.c --- a/lib/fopen-safer.c +++ b/lib/fopen-safer.c @@ -1,5 +1,6 @@ /* Invoke fopen, but avoid some glitches. - Copyright (C) 2001, 2004, 2005 Free Software Foundation, Inc. + + Copyright (C) 2001, 2004, 2005, 2006 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,9 +18,7 @@ /* Written by Paul Eggert. */ -#ifdef HAVE_CONFIG_H -# include -#endif +#include #include "stdio-safer.h" diff --git a/lib/fprintftime.c b/lib/fprintftime.c --- a/lib/fprintftime.c +++ b/lib/fprintftime.c @@ -1,6 +1,4 @@ -#ifdef HAVE_CONFIG_H -# include -#endif +#include #include "fprintftime.h" #define FPRINTFTIME 1 diff --git a/lib/free.c b/lib/free.c --- a/lib/free.c +++ b/lib/free.c @@ -1,6 +1,6 @@ /* Work around incompatibility on older systems where free (NULL) fails. - Copyright (C) 2003 Free Software Foundation, Inc. + Copyright (C) 2003, 2006 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 @@ -18,9 +18,7 @@ /* written by Paul Eggert */ -#ifdef HAVE_CONFIG_H -# include -#endif +#include #undef free #include diff --git a/lib/fsusage.c b/lib/fsusage.c --- a/lib/fsusage.c +++ b/lib/fsusage.c @@ -17,9 +17,7 @@ along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#ifdef HAVE_CONFIG_H -# include -#endif +#include #include "fsusage.h" diff --git a/lib/ftruncate.c b/lib/ftruncate.c --- a/lib/ftruncate.c +++ b/lib/ftruncate.c @@ -1,9 +1,7 @@ /* ftruncate emulations that work on some System V's. This file is in the public domain. */ -#ifdef HAVE_CONFIG_H -# include -#endif +#include #include #include diff --git a/lib/fts-cycle.c b/lib/fts-cycle.c --- a/lib/fts-cycle.c +++ b/lib/fts-cycle.c @@ -18,9 +18,7 @@ along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#ifdef HAVE_CONFIG_H -# include -#endif +#include #include "cycle-check.h" #include "hash.h" diff --git a/lib/fts.c b/lib/fts.c --- a/lib/fts.c +++ b/lib/fts.c @@ -45,9 +45,7 @@ * SUCH DAMAGE. */ -#ifdef HAVE_CONFIG_H -# include -#endif +#include #if defined(LIBC_SCCS) && !defined(lint) static char sccsid[] = "@(#)fts.c 8.6 (Berkeley) 8/14/94"; diff --git a/lib/full-write.c b/lib/full-write.c --- a/lib/full-write.c +++ b/lib/full-write.c @@ -1,7 +1,7 @@ /* An interface to read and write that retries (if necessary) until complete. Copyright (C) 1993, 1994, 1997, 1998, 1999, 2000, 2001, 2002, 2003, - 2004, 2005 Free Software Foundation, Inc. + 2004, 2005, 2006 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,9 +17,7 @@ along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#ifdef HAVE_CONFIG_H -# include -#endif +#include /* Specification. */ #ifdef FULL_READ diff --git a/lib/gai_strerror.c b/lib/gai_strerror.c --- a/lib/gai_strerror.c +++ b/lib/gai_strerror.c @@ -16,11 +16,8 @@ along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#ifdef HAVE_CONFIG_H +#ifndef _LIBC # include -#endif - -#ifndef _LIBC # include "getaddrinfo.h" #endif diff --git a/lib/getcwd.c b/lib/getcwd.c --- a/lib/getcwd.c +++ b/lib/getcwd.c @@ -16,11 +16,8 @@ with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#ifdef HAVE_CONFIG_H +#if !_LIBC # include -#endif - -#if !_LIBC # include "getcwd.h" #endif diff --git a/lib/getdate.y b/lib/getdate.y --- a/lib/getdate.y +++ b/lib/getdate.y @@ -32,9 +32,7 @@ /* FIXME: Check for arithmetic overflow in all cases, not just some of them. */ -#ifdef HAVE_CONFIG_H -# include -#endif +#include #include "getdate.h" diff --git a/lib/getdomainname.c b/lib/getdomainname.c --- a/lib/getdomainname.c +++ b/lib/getdomainname.c @@ -1,5 +1,6 @@ /* getdomainname emulation for systems that doesn't have it. - Copyright (C) 2003 Free Software Foundation, Inc. + + Copyright (C) 2003, 2006 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,9 +18,7 @@ /* Written by Simon Josefsson. */ -#ifdef HAVE_CONFIG_H -# include -#endif +#include /* Specification. */ #include "getdomainname.h" diff --git a/lib/getgroups.c b/lib/getgroups.c --- a/lib/getgroups.c +++ b/lib/getgroups.c @@ -1,5 +1,6 @@ /* provide consistent interface to getgroups for systems that don't allow N==0 - Copyright (C) 1996, 1999, 2003 Free Software Foundation, Inc. + + Copyright (C) 1996, 1999, 2003, 2006 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,9 +18,8 @@ /* written by Jim Meyering */ -#ifdef HAVE_CONFIG_H -# include -#endif +#include + #include #include #include diff --git a/lib/gethostname.c b/lib/gethostname.c --- a/lib/gethostname.c +++ b/lib/gethostname.c @@ -1,5 +1,6 @@ /* gethostname emulation for SysV and POSIX.1. - Copyright (C) 1992, 2003 Free Software Foundation, Inc. + + Copyright (C) 1992, 2003, 2006 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,9 +18,7 @@ /* David MacKenzie */ -#ifdef HAVE_CONFIG_H -# include -#endif +#include #ifdef HAVE_UNAME # include diff --git a/lib/gethrxtime.c b/lib/gethrxtime.c --- a/lib/gethrxtime.c +++ b/lib/gethrxtime.c @@ -1,6 +1,6 @@ /* gethrxtime -- get high resolution real time - Copyright (C) 2005 Free Software Foundation, Inc. + Copyright (C) 2005, 2006 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 @@ -18,9 +18,7 @@ /* Written by Paul Eggert. */ -#ifdef HAVE_CONFIG_H -# include -#endif +#include #include "gethrxtime.h" diff --git a/lib/getloadavg.c b/lib/getloadavg.c --- a/lib/getloadavg.c +++ b/lib/getloadavg.c @@ -84,13 +84,8 @@ /* "configure" defines CONFIGURING_GETLOADAVG to sidestep problems with partially-configured source directories. */ -#ifdef HAVE_CONFIG_H -# ifndef CONFIGURING_GETLOADAVG -# include -# endif -#endif - #ifndef CONFIGURING_GETLOADAVG +# include # include #endif diff --git a/lib/getlogin_r.c b/lib/getlogin_r.c --- a/lib/getlogin_r.c +++ b/lib/getlogin_r.c @@ -1,6 +1,6 @@ /* Provide a working getlogin_r for systems which lack it. - Copyright (C) 2005 Free Software Foundation, Inc. + Copyright (C) 2005, 2006 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 @@ -18,9 +18,7 @@ /* written by Paul Eggert and Derek Price */ -#ifdef HAVE_CONFIG_H -# include -#endif +#include #include "getlogin_r.h" diff --git a/lib/getndelim2.c b/lib/getndelim2.c --- a/lib/getndelim2.c +++ b/lib/getndelim2.c @@ -20,9 +20,7 @@ /* Originally written by Jan Brittenson, bson@gnu.ai.mit.edu. */ -#ifdef HAVE_CONFIG_H -# include -#endif +#include #include "getndelim2.h" diff --git a/lib/getnline.c b/lib/getnline.c --- a/lib/getnline.c +++ b/lib/getnline.c @@ -1,6 +1,6 @@ /* getnline - Read a line from a stream, with bounded memory allocation. - Copyright (C) 2003, 2004 Free Software Foundation, Inc. + Copyright (C) 2003, 2004, 2006 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 @@ -16,9 +16,7 @@ along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#ifdef HAVE_CONFIG_H -# include -#endif +#include /* Specification. */ #include "getnline.h" diff --git a/lib/getopt.c b/lib/getopt.c --- a/lib/getopt.c +++ b/lib/getopt.c @@ -20,7 +20,7 @@ with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#ifdef HAVE_CONFIG_H +#ifndef_LIBC # include #endif diff --git a/lib/getopt1.c b/lib/getopt1.c --- a/lib/getopt1.c +++ b/lib/getopt1.c @@ -1,5 +1,5 @@ /* getopt_long and getopt_long_only entry points for GNU getopt. - Copyright (C) 1987,88,89,90,91,92,93,94,96,97,98,2004 + Copyright (C) 1987,88,89,90,91,92,93,94,96,97,98,2004,2006 Free Software Foundation, Inc. This file is part of the GNU C Library. @@ -17,13 +17,10 @@ with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#ifdef HAVE_CONFIG_H -# include -#endif - #ifdef _LIBC # include #else +# include # include "getopt.h" #endif #include "getopt_int.h" diff --git a/lib/getpass.c b/lib/getpass.c --- a/lib/getpass.c +++ b/lib/getpass.c @@ -1,4 +1,6 @@ -/* Copyright (C) 1992-2001, 2003, 2004, 2005 Free Software Foundation, Inc. +/* Copyright (C) 1992-2001, 2003, 2004, 2005, 2006 Free Software + Foundation, Inc. + This file is part of the GNU C Library. This program is free software; you can redistribute it and/or modify @@ -15,7 +17,7 @@ with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#ifdef HAVE_CONFIG_H +#ifndef _LIBC # include #endif diff --git a/lib/gettime.c b/lib/gettime.c --- a/lib/gettime.c +++ b/lib/gettime.c @@ -1,5 +1,6 @@ /* gettime -- get the system clock - Copyright (C) 2002, 2004, 2005 Free Software Foundation, Inc. + + Copyright (C) 2002, 2004, 2005, 2006 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,9 +18,7 @@ /* Written by Paul Eggert. */ -#ifdef HAVE_CONFIG_H -# include -#endif +#include #include "timespec.h" diff --git a/lib/gettimeofday.c b/lib/gettimeofday.c --- a/lib/gettimeofday.c +++ b/lib/gettimeofday.c @@ -2,7 +2,8 @@ static buffer that localtime uses for it's return value. The gettimeofday function from Mac OS X 10.0.4, i.e. Darwin 1.3.7 has this problem. The tzset replacement is necessary for at least Solaris 2.5, 2.5.1, and 2.6. - Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc. + + Copyright (C) 2001, 2002, 2003, 2006 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 @@ -20,9 +21,7 @@ /* written by Jim Meyering */ -#ifdef HAVE_CONFIG_H -# include -#endif +#include /* Disable the definitions of these functions (from config.h) so we can use the library versions here. */ diff --git a/lib/getugroups.c b/lib/getugroups.c --- a/lib/getugroups.c +++ b/lib/getugroups.c @@ -1,7 +1,7 @@ /* getugroups.c -- return a list of the groups a user is in - Copyright (C) 1990, 1991, 1998, 1999, 2000, 2003, 2004, 2005 Free - Software Foundation. + Copyright (C) 1990, 1991, 1998, 1999, 2000, 2003, 2004, 2005, 2006 + Free Software Foundation. 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 @@ -19,9 +19,7 @@ /* Written by David MacKenzie. */ -#ifdef HAVE_CONFIG_H -# include -#endif +#include #include #include /* grp.h on alpha OSF1 V2.0 uses "FILE *". */ diff --git a/lib/getusershell.c b/lib/getusershell.c --- a/lib/getusershell.c +++ b/lib/getusershell.c @@ -19,9 +19,7 @@ /* Written by David MacKenzie */ -#ifdef HAVE_CONFIG_H -# include -#endif +#include #ifndef SHELLS_FILE # ifndef __DJGPP__ diff --git a/lib/glob.c b/lib/glob.c --- a/lib/glob.c +++ b/lib/glob.c @@ -16,7 +16,7 @@ Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ -#ifdef HAVE_CONFIG_H +#ifndef _LIBC # include #endif diff --git a/lib/group-member.c b/lib/group-member.c --- a/lib/group-member.c +++ b/lib/group-member.c @@ -1,5 +1,7 @@ /* group-member.c -- determine whether group id is in calling user's group list - Copyright (C) 1994, 1997, 1998, 2003, 2005 Free Software Foundation, Inc. + + Copyright (C) 1994, 1997, 1998, 2003, 2005, 2006 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 @@ -15,9 +17,7 @@ along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#ifdef HAVE_CONFIG_H -# include -#endif +#include #include "group-member.h" diff --git a/lib/hard-locale.c b/lib/hard-locale.c --- a/lib/hard-locale.c +++ b/lib/hard-locale.c @@ -1,7 +1,7 @@ /* hard-locale.c -- Determine whether a locale is hard. - Copyright (C) 1997, 1998, 1999, 2002, 2003, 2004 Free Software - Foundation, Inc. + Copyright (C) 1997, 1998, 1999, 2002, 2003, 2004, 2006 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,9 +17,7 @@ along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#ifdef HAVE_CONFIG_H -# include -#endif +#include #include "hard-locale.h" diff --git a/lib/hash-pjw.c b/lib/hash-pjw.c --- a/lib/hash-pjw.c +++ b/lib/hash-pjw.c @@ -1,5 +1,6 @@ /* hash-pjw.c -- compute a hash value from a NUL-terminated string. - Copyright (C) 2001, 2003 Free Software Foundation, Inc. + + Copyright (C) 2001, 2003, 2006 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 @@ -15,9 +16,7 @@ along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#ifdef HAVE_CONFIG_H -# include -#endif +#include #include "hash-pjw.h" diff --git a/lib/hash.c b/lib/hash.c --- a/lib/hash.c +++ b/lib/hash.c @@ -1,6 +1,6 @@ /* hash - hashing table processing. - Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004 Free + Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2006 Free Software Foundation, Inc. Written by Jim Meyering, 1992. @@ -24,9 +24,7 @@ /* Define USE_OBSTACK to 1 if you want the allocator to use obstacks instead of malloc. If you change USE_OBSTACK, you have to recompile! */ -#ifdef HAVE_CONFIG_H -# include -#endif +#include #include "hash.h" #include "xalloc.h" diff --git a/lib/human.c b/lib/human.c --- a/lib/human.c +++ b/lib/human.c @@ -1,7 +1,7 @@ /* human.c -- print human readable file size - Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005 - Free Software Foundation, Inc. + Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, + 2005, 2006 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 @@ -19,9 +19,7 @@ /* Written by Paul Eggert and Larry McVoy. */ -#ifdef HAVE_CONFIG_H -# include -#endif +#include #include "human.h" diff --git a/lib/idcache.c b/lib/idcache.c --- a/lib/idcache.c +++ b/lib/idcache.c @@ -1,7 +1,7 @@ /* idcache.c -- map user and group IDs, cached for speed - Copyright (C) 1985, 1988, 1989, 1990, 1997, 1998, 2003, 2005 Free - Software Foundation, Inc. + Copyright (C) 1985, 1988, 1989, 1990, 1997, 1998, 2003, 2005, 2006 + 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,9 +17,7 @@ along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#ifdef HAVE_CONFIG_H -# include -#endif +#include #include #include diff --git a/lib/inet_ntop.c b/lib/inet_ntop.c --- a/lib/inet_ntop.c +++ b/lib/inet_ntop.c @@ -1,5 +1,6 @@ /* inet_ntop.c -- convert IPv4 and IPv6 addresses from binary to text form - Copyright (c) 2005, 2006 Free Software Foundation, Inc. + + Copyright (C) 2005, 2006 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 @@ -32,9 +33,7 @@ * SOFTWARE. */ -#ifdef HAVE_CONFIG_H -# include -#endif +#include /* Specification. */ #include "inet_ntop.h" diff --git a/lib/inet_pton.c b/lib/inet_pton.c --- a/lib/inet_pton.c +++ b/lib/inet_pton.c @@ -1,5 +1,6 @@ /* inet_pton.c -- convert IPv4 and IPv6 addresses from text to binary form - Copyright (c) 2006 Free Software Foundation, Inc. + + Copyright (C) 2006 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 @@ -32,9 +33,7 @@ * SOFTWARE. */ -#ifdef HAVE_CONFIG_H -# include -#endif +#include /* Specification. */ #include "inet_pton.h" diff --git a/lib/inttostr.c b/lib/inttostr.c --- a/lib/inttostr.c +++ b/lib/inttostr.c @@ -1,6 +1,6 @@ /* inttostr.c -- convert integers to printable strings - Copyright (C) 2001 Free Software Foundation, Inc. + Copyright (C) 2001, 2006 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 @@ -18,9 +18,8 @@ /* Written by Paul Eggert */ -#ifdef HAVE_CONFIG_H -# include -#endif +#include + #include "inttostr.h" /* Convert I to a printable string in BUF, which must be at least diff --git a/lib/isdir.c b/lib/isdir.c --- a/lib/isdir.c +++ b/lib/isdir.c @@ -1,5 +1,6 @@ /* isdir.c -- determine whether a directory exists - Copyright (C) 1990, 1998 Free Software Foundation, Inc. + + Copyright (C) 1990, 1998, 2006 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 @@ -15,9 +16,7 @@ along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#ifdef HAVE_CONFIG_H -# include -#endif +#include #include #include diff --git a/lib/lchown.c b/lib/lchown.c --- a/lib/lchown.c +++ b/lib/lchown.c @@ -1,5 +1,7 @@ /* Provide a stub lchown function for systems that lack it. - Copyright (C) 1998, 1999, 2002, 2004 Free Software Foundation, Inc. + + Copyright (C) 1998, 1999, 2002, 2004, 2006 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,9 +19,7 @@ /* written by Jim Meyering */ -#ifdef HAVE_CONFIG_H -# include -#endif +#include #include #include diff --git a/lib/linebuffer.c b/lib/linebuffer.c --- a/lib/linebuffer.c +++ b/lib/linebuffer.c @@ -1,6 +1,6 @@ /* linebuffer.c -- read arbitrarily long lines - Copyright (C) 1986, 1991, 1998, 1999, 2001, 2003, 2004 Free + Copyright (C) 1986, 1991, 1998, 1999, 2001, 2003, 2004, 2006 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify @@ -18,10 +18,8 @@ Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ /* Written by Richard Stallman. */ - -#ifdef HAVE_CONFIG_H -# include -#endif + +#include #include #include diff --git a/lib/long-options.c b/lib/long-options.c --- a/lib/long-options.c +++ b/lib/long-options.c @@ -1,7 +1,7 @@ /* Utility to accept --help and --version options as unobtrusively as possible. - Copyright (C) 1993, 1994, 1998, 1999, 2000, 2002, 2003, 2004, 2005 Free - Software Foundation, Inc. + Copyright (C) 1993, 1994, 1998, 1999, 2000, 2002, 2003, 2004, 2005, + 2006 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 @@ -19,9 +19,7 @@ /* Written by Jim Meyering. */ -#ifdef HAVE_CONFIG_H -# include -#endif +#include /* Specification. */ #include "long-options.h" diff --git a/lib/lstat.c b/lib/lstat.c --- a/lib/lstat.c +++ b/lib/lstat.c @@ -19,9 +19,7 @@ /* written by Jim Meyering */ -#ifdef HAVE_CONFIG_H -# include -#endif +#include /* The specification of these functions is in sys_stat.h. But we cannot include this include file here, because on some systems, a diff --git a/lib/malloc.c b/lib/malloc.c --- a/lib/malloc.c +++ b/lib/malloc.c @@ -1,5 +1,6 @@ /* malloc() function that is glibc compatible. - Copyright (C) 1997, 1998 Free Software Foundation, Inc. + + Copyright (C) 1997, 1998, 2006 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,9 +18,7 @@ /* written by Jim Meyering */ -#ifdef HAVE_CONFIG_H -# include -#endif +#include #undef malloc #include diff --git a/lib/md5.c b/lib/md5.c --- a/lib/md5.c +++ b/lib/md5.c @@ -20,9 +20,7 @@ /* Written by Ulrich Drepper , 1995. */ -#ifdef HAVE_CONFIG_H -# include -#endif +#include #include "md5.h" diff --git a/lib/memcasecmp.c b/lib/memcasecmp.c --- a/lib/memcasecmp.c +++ b/lib/memcasecmp.c @@ -17,9 +17,7 @@ /* Written by Jim Meyering. */ -#ifdef HAVE_CONFIG_H -# include -#endif +#include #include "memcasecmp.h" diff --git a/lib/memchr.c b/lib/memchr.c --- a/lib/memchr.c +++ b/lib/memchr.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1991, 1993, 1996, 1997, 1999, 2000, 2003, 2004 Free +/* Copyright (C) 1991, 1993, 1996, 1997, 1999, 2000, 2003, 2004, 2006 Free Software Foundation, Inc. Based on strlen implementation by Torbjorn Granlund (tege@sics.se), @@ -24,7 +24,7 @@ along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#ifdef HAVE_CONFIG_H +#ifndef _LIBC # include #endif diff --git a/lib/memcmp.c b/lib/memcmp.c --- a/lib/memcmp.c +++ b/lib/memcmp.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1991, 1993, 1995, 1997, 1998, 2003 Free Software +/* Copyright (C) 1991, 1993, 1995, 1997, 1998, 2003, 2006 Free Software Foundation, Inc. Contributed by Torbjorn Granlund (tege@sics.se). @@ -21,7 +21,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#ifdef HAVE_CONFIG_H +#ifndef _LIBC # include #endif diff --git a/lib/memcoll.c b/lib/memcoll.c --- a/lib/memcoll.c +++ b/lib/memcoll.c @@ -1,5 +1,6 @@ /* Locale-specific memory comparison. - Copyright (C) 1999, 2002, 2003, 2004 Free Software Foundation, Inc. + + Copyright (C) 1999, 2002, 2003, 2004, 2006 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,9 +18,7 @@ /* Contributed by Paul Eggert . */ -#ifdef HAVE_CONFIG_H -# include -#endif +#include #include "memcoll.h" diff --git a/lib/memcpy.c b/lib/memcpy.c --- a/lib/memcpy.c +++ b/lib/memcpy.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1995, 1997, 2000, 2003 Free Software Foundation, Inc. +/* Copyright (C) 1995, 1997, 2000, 2003, 2006 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 @@ -16,9 +16,7 @@ /* Written by Jim Meyering . */ -#ifdef HAVE_CONFIG_H -# include -#endif +#include #include diff --git a/lib/memmove.c b/lib/memmove.c --- a/lib/memmove.c +++ b/lib/memmove.c @@ -3,9 +3,7 @@ In the public domain. By David MacKenzie . */ -#ifdef HAVE_CONFIG_H -# include -#endif +#include #include diff --git a/lib/memrchr.c b/lib/memrchr.c --- a/lib/memrchr.c +++ b/lib/memrchr.c @@ -1,7 +1,7 @@ /* memrchr -- find the last occurrence of a byte in a memory block - Copyright (C) 1991, 1993, 1996, 1997, 1999, 2000, 2003, 2004, 2005 - Free Software Foundation, Inc. + Copyright (C) 1991, 1993, 1996, 1997, 1999, 2000, 2003, 2004, 2005, + 2006 Free Software Foundation, Inc. Based on strlen implementation by Torbjorn Granlund (tege@sics.se), with help from Dan Sahlin (dan@sics.se) and @@ -23,14 +23,11 @@ with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#ifdef HAVE_CONFIG_H -# include -#endif - #if defined _LIBC # include # include #else +# include # include "memrchr.h" # define reg_char char #endif diff --git a/lib/mkancesdirs.c b/lib/mkancesdirs.c --- a/lib/mkancesdirs.c +++ b/lib/mkancesdirs.c @@ -18,9 +18,7 @@ /* Written by Paul Eggert. */ -#ifdef HAVE_CONFIG_H -# include -#endif +#include #include "mkancesdirs.h" diff --git a/lib/mkdir-p.c b/lib/mkdir-p.c --- a/lib/mkdir-p.c +++ b/lib/mkdir-p.c @@ -19,9 +19,7 @@ /* Written by Paul Eggert, David MacKenzie, and Jim Meyering. */ -#ifdef HAVE_CONFIG_H -# include -#endif +#include #include "mkdir-p.h" diff --git a/lib/mkdir.c b/lib/mkdir.c --- a/lib/mkdir.c +++ b/lib/mkdir.c @@ -1,7 +1,7 @@ /* On some systems, mkdir ("foo/", 0700) fails because of the trailing slash. On those systems, this wrapper removes the trailing slash. - Copyright (C) 2001, 2003 Free Software Foundation, Inc. + Copyright (C) 2001, 2003, 2006 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 @@ -19,9 +19,7 @@ /* written by Jim Meyering */ -#ifdef HAVE_CONFIG_H -# include -#endif +#include /* Disable the definition of mkdir to rpl_mkdir (from config.h) in this file. Otherwise, we'd get conflicting prototypes for rpl_mkdir on diff --git a/lib/mkdirat.c b/lib/mkdirat.c --- a/lib/mkdirat.c +++ b/lib/mkdirat.c @@ -17,9 +17,7 @@ /* written by Jim Meyering */ -#ifdef HAVE_CONFIG_H -# include -#endif +#include #include "openat.h" diff --git a/lib/mkstemp-safer.c b/lib/mkstemp-safer.c --- a/lib/mkstemp-safer.c +++ b/lib/mkstemp-safer.c @@ -18,9 +18,7 @@ /* Written by Paul Eggert. */ -#ifdef HAVE_CONFIG_H -# include -#endif +#include #include "stdlib-safer.h" diff --git a/lib/mkstemp.c b/lib/mkstemp.c --- a/lib/mkstemp.c +++ b/lib/mkstemp.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1998, 1999, 2001, 2005 Free Software Foundation, Inc. +/* Copyright (C) 1998, 1999, 2001, 2005, 2006 Free Software Foundation, Inc. This file is derived from the one in the GNU C Library. This program is free software; you can redistribute it and/or modify @@ -15,9 +15,7 @@ with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#ifdef HAVE_CONFIG_H -# include -#endif +#include /* Disable the definition of mkstemp to rpl_mkstemp (from config.h) in this file. Otherwise, we'd get conflicting prototypes for rpl_mkstemp on diff --git a/lib/modechange.c b/lib/modechange.c --- a/lib/modechange.c +++ b/lib/modechange.c @@ -26,9 +26,7 @@ changing the mode of many files, this probably results in a performance gain. */ -#ifdef HAVE_CONFIG_H -# include -#endif +#include #include "modechange.h" #include diff --git a/lib/mountlist.c b/lib/mountlist.c --- a/lib/mountlist.c +++ b/lib/mountlist.c @@ -17,9 +17,7 @@ along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#ifdef HAVE_CONFIG_H -# include -#endif +#include #include "mountlist.h" diff --git a/lib/nanosleep.c b/lib/nanosleep.c --- a/lib/nanosleep.c +++ b/lib/nanosleep.c @@ -19,9 +19,7 @@ /* written by Jim Meyering */ -#ifdef HAVE_CONFIG_H -# include -#endif +#include /* Undefine nanosleep here so any prototype is not redefined to be a prototype for rpl_nanosleep. (they'd conflict e.g., on alpha-dec-osf3.2) */ diff --git a/lib/obstack.c b/lib/obstack.c --- a/lib/obstack.c +++ b/lib/obstack.c @@ -18,14 +18,11 @@ with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#ifdef HAVE_CONFIG_H -# include -#endif - #ifdef _LIBC # include # include #else +# include # include "obstack.h" #endif diff --git a/lib/open-safer.c b/lib/open-safer.c --- a/lib/open-safer.c +++ b/lib/open-safer.c @@ -1,5 +1,6 @@ /* Invoke open, but avoid some glitches. - Copyright (C) 2005 Free Software Foundation, Inc. + + Copyright (C) 2005, 2006 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,9 +18,7 @@ /* Written by Paul Eggert. */ -#ifdef HAVE_CONFIG_H -# include -#endif +#include #include "fcntl-safer.h" diff --git a/lib/openat-die.c b/lib/openat-die.c --- a/lib/openat-die.c +++ b/lib/openat-die.c @@ -1,6 +1,6 @@ /* Report a save- or restore-cwd failure in our openat replacement and then exit. - Copyright (C) 2005 Free Software Foundation, Inc. + Copyright (C) 2005, 2006 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 @@ -16,9 +16,7 @@ along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#ifdef HAVE_CONFIG_H -# include -#endif +#include #include diff --git a/lib/openat.c b/lib/openat.c --- a/lib/openat.c +++ b/lib/openat.c @@ -17,9 +17,7 @@ /* written by Jim Meyering */ -#ifdef HAVE_CONFIG_H -# include -#endif +#include #include "openat.h" diff --git a/lib/pagealign_alloc.c b/lib/pagealign_alloc.c --- a/lib/pagealign_alloc.c +++ b/lib/pagealign_alloc.c @@ -1,6 +1,6 @@ /* Memory allocation aligned to system page boundaries. - Copyright (C) 2005 Free Software Foundation, Inc. + Copyright (C) 2005, 2006 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 @@ -19,9 +19,7 @@ /* Written by Derek R. Price . */ -#ifdef HAVE_CONFIG_H -# include -#endif +#include #include "pagealign_alloc.h" diff --git a/lib/physmem.c b/lib/physmem.c --- a/lib/physmem.c +++ b/lib/physmem.c @@ -1,5 +1,7 @@ /* Calculate the size of physical memory. - Copyright (C) 2000, 2001, 2003, 2005 Free Software Foundation, Inc. + + Copyright (C) 2000, 2001, 2003, 2005, 2006 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,9 +19,7 @@ /* Written by Paul Eggert. */ -#ifdef HAVE_CONFIG_H -# include -#endif +#include #include "physmem.h" @@ -300,6 +300,6 @@ /* Local Variables: -compile-command: "gcc -DDEBUG -DHAVE_CONFIG_H -I.. -g -O -Wall -W physmem.c" +compile-command: "gcc -DDEBUG -g -O -Wall -W physmem.c" End: */ diff --git a/lib/pipe-safer.c b/lib/pipe-safer.c --- a/lib/pipe-safer.c +++ b/lib/pipe-safer.c @@ -17,9 +17,7 @@ /* Written by Jim Meyering. */ -#ifdef HAVE_CONFIG_H -# include -#endif +#include #include "unistd-safer.h" diff --git a/lib/posixtm.c b/lib/posixtm.c --- a/lib/posixtm.c +++ b/lib/posixtm.c @@ -1,7 +1,7 @@ /* Parse dates for touch and date. - Copyright (C) 1989, 1990, 1991, 1998, 2000, 2001, 2002, 2003, 2004, 2005 - Free Software Foundation Inc. + Copyright (C) 1989, 1990, 1991, 1998, 2000, 2001, 2002, 2003, 2004, + 2005, 2006 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 @@ -20,9 +20,7 @@ /* Yacc-based version written by Jim Kingdon and David MacKenzie. Rewritten by Jim Meyering. */ -#ifdef HAVE_CONFIG_H -# include -#endif +#include #include @@ -333,6 +331,6 @@ /* Local Variables: -compile-command: "gcc -DTEST_POSIXTIME -DHAVE_CONFIG_H -I.. -g -O -Wall -W posixtm.c" +compile-command: "gcc -DTEST_POSIXTIME -g -O -Wall -W posixtm.c" End: */ diff --git a/lib/posixver.c b/lib/posixver.c --- a/lib/posixver.c +++ b/lib/posixver.c @@ -1,6 +1,7 @@ /* Which POSIX version to conform to, for utilities. - Copyright (C) 2002, 2003, 2004, 2005 Free Software Foundation, Inc. + Copyright (C) 2002, 2003, 2004, 2005, 2006 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 @@ -18,9 +19,7 @@ /* Written by Paul Eggert. */ -#ifdef HAVE_CONFIG_H -# include -#endif +#include #include "posixver.h" diff --git a/lib/putenv.c b/lib/putenv.c --- a/lib/putenv.c +++ b/lib/putenv.c @@ -1,4 +1,5 @@ -/* Copyright (C) 1991, 1994, 1997, 1998, 2000, 2003, 2004, 2005 Free Software Foundation, Inc. +/* Copyright (C) 1991, 1994, 1997, 1998, 2000, 2003, 2004, 2005, 2006 + Free Software Foundation, Inc. NOTE: The canonical source of this file is maintained with the GNU C Library. Bugs can be reported to bug-glibc@prep.ai.mit.edu. @@ -17,9 +18,7 @@ along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#ifdef HAVE_CONFIG_H -# include -#endif +#include #include diff --git a/lib/quote.c b/lib/quote.c --- a/lib/quote.c +++ b/lib/quote.c @@ -1,5 +1,7 @@ /* quote.c - quote arguments for output - Copyright (C) 1998, 1999, 2000, 2001, 2003, 2005 Free Software Foundation, Inc. + + Copyright (C) 1998, 1999, 2000, 2001, 2003, 2005, 2006 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,9 +19,7 @@ /* Written by Paul Eggert */ -#ifdef HAVE_CONFIG_H -# include -#endif +#include #include "quotearg.h" #include "quote.h" diff --git a/lib/quotearg.c b/lib/quotearg.c --- a/lib/quotearg.c +++ b/lib/quotearg.c @@ -19,9 +19,7 @@ /* Written by Paul Eggert */ -#ifdef HAVE_CONFIG_H -# include -#endif +#include #include "quotearg.h" diff --git a/lib/raise.c b/lib/raise.c --- a/lib/raise.c +++ b/lib/raise.c @@ -1,5 +1,6 @@ /* Provide a non-threads replacement for the POSIX raise function. - Copyright (C) 2002, 2003, 2005 Free Software Foundation, Inc. + + Copyright (C) 2002, 2003, 2005, 2006 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,9 +18,7 @@ /* written by Jim Meyering */ -#ifdef HAVE_CONFIG_H -# include -#endif +#include #include #include diff --git a/lib/readtokens.c b/lib/readtokens.c --- a/lib/readtokens.c +++ b/lib/readtokens.c @@ -1,5 +1,6 @@ /* readtokens.c -- Functions for reading tokens from an input stream. - Copyright (C) 1990-1991, 1999-2004 Free Software Foundation, Inc. + + Copyright (C) 1990-1991, 1999-2004, 2006 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 @@ -21,9 +22,7 @@ gives the same functionality, except that these functions would never return empty lines. */ -#ifdef HAVE_CONFIG_H -# include -#endif +#include #include "readtokens.h" diff --git a/lib/readtokens0.c b/lib/readtokens0.c --- a/lib/readtokens0.c +++ b/lib/readtokens0.c @@ -1,5 +1,6 @@ /* readtokens0.c -- Read NUL-separated tokens from an input stream. - Copyright (C) 2004 Free Software Foundation, Inc. + + Copyright (C) 2004, 2006 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,9 +18,8 @@ Written by Jim Meyering. */ -#ifdef HAVE_CONFIG_H -# include -#endif +#include + #include #include "readtokens0.h" diff --git a/lib/readutmp.c b/lib/readutmp.c --- a/lib/readutmp.c +++ b/lib/readutmp.c @@ -1,5 +1,7 @@ /* GNU's read utmp module. - Copyright (C) 1992-2001, 2003, 2004, 2005 Free Software Foundation, Inc. + + Copyright (C) 1992-2001, 2003, 2004, 2005, 2006 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,9 +19,7 @@ /* Written by jla; revised by djm */ -#ifdef HAVE_CONFIG_H -# include -#endif +#include #include "readutmp.h" diff --git a/lib/realloc.c b/lib/realloc.c --- a/lib/realloc.c +++ b/lib/realloc.c @@ -1,5 +1,6 @@ /* realloc() function that is glibc compatible. - Copyright (C) 1997, 2003, 2004 Free Software Foundation, Inc. + + Copyright (C) 1997, 2003, 2004, 2006 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,9 +18,7 @@ /* written by Jim Meyering */ -#ifdef HAVE_CONFIG_H -# include -#endif +#include #undef realloc #include diff --git a/lib/regex.c b/lib/regex.c --- a/lib/regex.c +++ b/lib/regex.c @@ -17,9 +17,7 @@ with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#ifdef HAVE_CONFIG_H -# include -#endif +#include /* Make sure noone compiles this code with a C++ compiler. */ #if defined __cplusplus && defined _LIBC diff --git a/lib/rename.c b/lib/rename.c --- a/lib/rename.c +++ b/lib/rename.c @@ -1,7 +1,8 @@ /* Work around the bug in some systems whereby rename fails when the source file has a trailing slash. The rename functions of SunOS 4.1.1_U1 and mips-dec-ultrix4.4 have this bug. - Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc. + + Copyright (C) 2001, 2002, 2003, 2005, 2006 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 @@ -19,9 +20,7 @@ /* written by Volker Borchert */ -#ifdef HAVE_CONFIG_H -# include -#endif +#include #undef rename #include diff --git a/lib/rmdir.c b/lib/rmdir.c --- a/lib/rmdir.c +++ b/lib/rmdir.c @@ -1,7 +1,7 @@ /* BSD compatible remove directory function for System V - Copyright (C) 1988, 1990, 1999, 2003, 2004, 2005 Free Software - Foundation, Inc. + Copyright (C) 1988, 1990, 1999, 2003, 2004, 2005, 2006 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,9 +17,7 @@ along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#ifdef HAVE_CONFIG_H -# include -#endif +#include #include #include diff --git a/lib/rpmatch.c b/lib/rpmatch.c --- a/lib/rpmatch.c +++ b/lib/rpmatch.c @@ -1,6 +1,8 @@ /* Determine whether string value is affirmation or negative response according to current locale's data. - Copyright (C) 1996, 1998, 2000, 2002, 2003 Free Software Foundation, Inc. + + Copyright (C) 1996, 1998, 2000, 2002, 2003, 2006 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 @@ -16,9 +18,7 @@ along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#ifdef HAVE_CONFIG_H -# include -#endif +#include #include #include diff --git a/lib/safe-read.c b/lib/safe-read.c --- a/lib/safe-read.c +++ b/lib/safe-read.c @@ -1,7 +1,7 @@ /* An interface to read and write that retries after interrupts. - Copyright (C) 1993, 1994, 1998, 2002, 2003, 2004, 2005 Free Software - Foundation, Inc. + Copyright (C) 1993, 1994, 1998, 2002, 2003, 2004, 2005, 2006 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,9 +17,7 @@ along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#ifdef HAVE_CONFIG_H -# include -#endif +#include /* Specification. */ #ifdef SAFE_WRITE diff --git a/lib/same.c b/lib/same.c --- a/lib/same.c +++ b/lib/same.c @@ -19,9 +19,7 @@ /* written by Jim Meyering */ -#ifdef HAVE_CONFIG_H -# include -#endif +#include #include #include diff --git a/lib/save-cwd.c b/lib/save-cwd.c --- a/lib/save-cwd.c +++ b/lib/save-cwd.c @@ -1,7 +1,7 @@ /* save-cwd.c -- Save and restore current working directory. - Copyright (C) 1995, 1997, 1998, 2003, 2004, 2005 Free Software - Foundation, Inc. + Copyright (C) 1995, 1997, 1998, 2003, 2004, 2005, 2006 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 @@ -19,9 +19,7 @@ /* Written by Jim Meyering. */ -#ifdef HAVE_CONFIG_H -# include -#endif +#include #include "save-cwd.h" diff --git a/lib/savedir.c b/lib/savedir.c --- a/lib/savedir.c +++ b/lib/savedir.c @@ -19,9 +19,7 @@ /* Written by David MacKenzie . */ -#ifdef HAVE_CONFIG_H -# include -#endif +#include #include "savedir.h" diff --git a/lib/setenv.c b/lib/setenv.c --- a/lib/setenv.c +++ b/lib/setenv.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1992,1995-1999,2000-2003,2005 Free Software Foundation, Inc. +/* Copyright (C) 1992,1995-1999,2000-2003,2005,2006 Free Software Foundation, Inc. This file is part of the GNU C Library. This program is free software; you can redistribute it and/or modify @@ -15,7 +15,7 @@ with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#ifdef HAVE_CONFIG_H +#if !_LIBC # include #endif #include diff --git a/lib/settime.c b/lib/settime.c --- a/lib/settime.c +++ b/lib/settime.c @@ -1,5 +1,6 @@ /* settime -- set the system clock - Copyright (C) 2002, 2004, 2005 Free Software Foundation, Inc. + + Copyright (C) 2002, 2004, 2005, 2006 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,9 +18,7 @@ /* Written by Paul Eggert. */ -#ifdef HAVE_CONFIG_H -# include -#endif +#include #include "timespec.h" diff --git a/lib/sha1.c b/lib/sha1.c --- a/lib/sha1.c +++ b/lib/sha1.c @@ -23,9 +23,7 @@ Robert Klep -- Expansion function fix */ -#ifdef HAVE_CONFIG_H -# include -#endif +#include #include "sha1.h" diff --git a/lib/sig2str.c b/lib/sig2str.c --- a/lib/sig2str.c +++ b/lib/sig2str.c @@ -1,6 +1,6 @@ /* sig2str.c -- convert between signal names and numbers - Copyright (C) 2002, 2004 Free Software Foundation, Inc. + Copyright (C) 2002, 2004, 2006 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 @@ -18,9 +18,7 @@ /* Written by Paul Eggert. */ -#ifdef HAVE_CONFIG_H -# include -#endif +#include #include #include diff --git a/lib/snprintf.c b/lib/snprintf.c --- a/lib/snprintf.c +++ b/lib/snprintf.c @@ -16,9 +16,7 @@ with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#ifdef HAVE_CONFIG_H -# include -#endif +#include #include "snprintf.h" diff --git a/lib/strdup.c b/lib/strdup.c --- a/lib/strdup.c +++ b/lib/strdup.c @@ -1,5 +1,5 @@ -/* Copyright (C) 1991, 1996, 1997, 1998, 2002, 2003, 2004 Free Software - Foundation, Inc. +/* Copyright (C) 1991, 1996, 1997, 1998, 2002, 2003, 2004, 2006 Free + Software Foundation, Inc. This file is part of the GNU C Library. @@ -17,11 +17,8 @@ with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#ifdef HAVE_CONFIG_H +#ifndef _LIBC # include -#endif - -#ifndef _LIBC /* Get specification. */ # include "strdup.h" #endif diff --git a/lib/strerror.c b/lib/strerror.c --- a/lib/strerror.c +++ b/lib/strerror.c @@ -1,7 +1,7 @@ /* strerror.c --- ANSI C compatible system error routine - Copyright (C) 1986, 1988, 1989, 1991, 2002, 2003 Free Software - Foundation, Inc. + Copyright (C) 1986, 1988, 1989, 1991, 2002, 2003, 2006 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,9 +17,7 @@ along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#ifdef HAVE_CONFIG_H -# include -#endif +#include #include diff --git a/lib/strftime.c b/lib/strftime.c --- a/lib/strftime.c +++ b/lib/strftime.c @@ -18,10 +18,6 @@ with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#ifdef HAVE_CONFIG_H -# include -#endif - #ifdef _LIBC # define HAVE_MBLEN 1 # define HAVE_MBRLEN 1 @@ -32,6 +28,8 @@ # define HAVE_TZSET 1 # define MULTIBYTE_IS_FORMAT_SAFE 1 # include "../locale/localeinfo.h" +#else +# include #endif #include diff --git a/lib/stripslash.c b/lib/stripslash.c --- a/lib/stripslash.c +++ b/lib/stripslash.c @@ -16,9 +16,7 @@ along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#ifdef HAVE_CONFIG_H -# include -#endif +#include #include "dirname.h" diff --git a/lib/strndup.c b/lib/strndup.c --- a/lib/strndup.c +++ b/lib/strndup.c @@ -18,10 +18,8 @@ along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#ifdef HAVE_CONFIG_H +#if !_LIBC # include -#endif -#if !_LIBC # include "strndup.h" #endif diff --git a/lib/strnlen.c b/lib/strnlen.c --- a/lib/strnlen.c +++ b/lib/strnlen.c @@ -16,9 +16,7 @@ along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#ifdef HAVE_CONFIG_H -# include -#endif +#include #include "strnlen.h" diff --git a/lib/strpbrk.c b/lib/strpbrk.c --- a/lib/strpbrk.c +++ b/lib/strpbrk.c @@ -1,4 +1,6 @@ -/* Copyright (C) 1991, 1994, 2000, 2002-2003 Free Software Foundation, Inc. +/* Copyright (C) 1991, 1994, 2000, 2002-2003, 2006 Free Software + Foundation, Inc. + NOTE: The canonical source of this file is maintained with the GNU C Library. Bugs can be reported to bug-glibc@prep.ai.mit.edu. @@ -16,9 +18,7 @@ along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#ifdef HAVE_CONFIG_H -# include -#endif +#include #include #include diff --git a/lib/strtod.c b/lib/strtod.c --- a/lib/strtod.c +++ b/lib/strtod.c @@ -14,9 +14,7 @@ along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#ifdef HAVE_CONFIG_H -# include -#endif +#include #include diff --git a/lib/strtoimax.c b/lib/strtoimax.c --- a/lib/strtoimax.c +++ b/lib/strtoimax.c @@ -19,9 +19,7 @@ /* Written by Paul Eggert. */ -#ifdef HAVE_CONFIG_H -# include -#endif +#include /* Verify interface. */ #include diff --git a/lib/strtol.c b/lib/strtol.c --- a/lib/strtol.c +++ b/lib/strtol.c @@ -20,12 +20,10 @@ along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#ifdef HAVE_CONFIG_H -# include -#endif - #ifdef _LIBC # define USE_NUMBER_GROUPING +#else +# include #endif #include diff --git a/lib/strverscmp.c b/lib/strverscmp.c --- a/lib/strverscmp.c +++ b/lib/strverscmp.c @@ -1,5 +1,5 @@ /* Compare strings while treating digits characters numerically. - Copyright (C) 1997, 2000, 2002, 2004 Free Software Foundation, Inc. + Copyright (C) 1997, 2000, 2002, 2004, 2006 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Jean-François Bignolles , 1997. @@ -17,7 +17,7 @@ with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#ifdef HAVE_CONFIG_H +#if !_LIBC # include #endif diff --git a/lib/tempname.c b/lib/tempname.c --- a/lib/tempname.c +++ b/lib/tempname.c @@ -17,7 +17,7 @@ with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#ifdef HAVE_CONFIG_H +#if !_LIBC # include #endif diff --git a/lib/time_r.c b/lib/time_r.c --- a/lib/time_r.c +++ b/lib/time_r.c @@ -18,9 +18,7 @@ /* Written by Paul Eggert. */ -#ifdef HAVE_CONFIG_H -# include -#endif +#include #include "time_r.h" diff --git a/lib/timegm.c b/lib/timegm.c --- a/lib/timegm.c +++ b/lib/timegm.c @@ -1,7 +1,7 @@ /* Convert UTC calendar time to simple time. Like mktime but assumes UTC. - Copyright (C) 1994, 1997, 2003, 2004 Free Software Foundation, Inc. - This file is part of the GNU C Library. + Copyright (C) 1994, 1997, 2003, 2004, 2006 Free Software + Foundation, Inc. This file is part of the GNU C Library. 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,13 +17,10 @@ along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#ifdef HAVE_CONFIG_H -# include -#endif - #ifdef _LIBC # include #else +# include # include "timegm.h" # include # undef __gmtime_r diff --git a/lib/tmpfile-safer.c b/lib/tmpfile-safer.c --- a/lib/tmpfile-safer.c +++ b/lib/tmpfile-safer.c @@ -17,9 +17,7 @@ /* Written by Eric Blake, based on ideas from Paul Eggert. */ -#ifdef HAVE_CONFIG_H -# include -#endif +#include #include "stdio-safer.h" diff --git a/lib/unlinkdir.c b/lib/unlinkdir.c --- a/lib/unlinkdir.c +++ b/lib/unlinkdir.c @@ -1,6 +1,6 @@ /* unlinkdir.c - determine (and maybe change) whether we can unlink directories - Copyright (C) 2005 Free Software Foundation, Inc. + Copyright (C) 2005, 2006 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 @@ -18,9 +18,7 @@ /* Written by Paul Eggert and Jim Meyering. */ -#ifdef HAVE_CONFIG_H -# include -#endif +#include #include "unlinkdir.h" diff --git a/lib/userspec.c b/lib/userspec.c --- a/lib/userspec.c +++ b/lib/userspec.c @@ -18,9 +18,7 @@ /* Written by David MacKenzie . */ -#ifdef HAVE_CONFIG_H -# include -#endif +#include /* Specification. */ #include "userspec.h" diff --git a/lib/utime.c b/lib/utime.c --- a/lib/utime.c +++ b/lib/utime.c @@ -1,4 +1,5 @@ -/* Copyright (C) 1998, 2001, 2002, 2003, 2004 Free Software Foundation, Inc. +/* Copyright (C) 1998, 2001, 2002, 2003, 2004, 2006 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 the @@ -16,9 +17,7 @@ /* derived from a function in touch.c */ -#ifdef HAVE_CONFIG_H -# include -#endif +#include #undef utime #include diff --git a/lib/utimecmp.c b/lib/utimecmp.c --- a/lib/utimecmp.c +++ b/lib/utimecmp.c @@ -18,9 +18,7 @@ /* Written by Paul Eggert. */ -#ifdef HAVE_CONFIG_H -# include -#endif +#include #include "utimecmp.h" diff --git a/lib/utimens.c b/lib/utimens.c --- a/lib/utimens.c +++ b/lib/utimens.c @@ -20,9 +20,7 @@ /* derived from a function in touch.c */ -#ifdef HAVE_CONFIG_H -# include -#endif +#include #include "utimens.h" diff --git a/lib/version-etc-fsf.c b/lib/version-etc-fsf.c --- a/lib/version-etc-fsf.c +++ b/lib/version-etc-fsf.c @@ -1,5 +1,5 @@ /* Variable with FSF copyright information, for version-etc. - Copyright (C) 1999-2005 Free Software Foundation, Inc. + Copyright (C) 1999-2006 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,9 +17,7 @@ /* Written by Jim Meyering. */ -#ifdef HAVE_CONFIG_H -# include -#endif +#include /* Specification. */ #include "version-etc.h" diff --git a/lib/version-etc.c b/lib/version-etc.c --- a/lib/version-etc.c +++ b/lib/version-etc.c @@ -17,9 +17,7 @@ /* Written by Jim Meyering. */ -#ifdef HAVE_CONFIG_H -# include -#endif +#include /* Specification. */ #include "version-etc.h" diff --git a/lib/xalloc-die.c b/lib/xalloc-die.c --- a/lib/xalloc-die.c +++ b/lib/xalloc-die.c @@ -17,9 +17,7 @@ along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#ifdef HAVE_CONFIG_H -# include -#endif +#include #include "xalloc.h" diff --git a/lib/xgetcwd.c b/lib/xgetcwd.c --- a/lib/xgetcwd.c +++ b/lib/xgetcwd.c @@ -1,6 +1,6 @@ /* xgetcwd.c -- return current directory with unlimited length - Copyright (C) 2001, 2003, 2004 Free Software Foundation, Inc. + Copyright (C) 2001, 2003, 2004, 2006 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 @@ -18,9 +18,7 @@ /* Written by Jim Meyering. */ -#ifdef HAVE_CONFIG_H -# include -#endif +#include #include "xgetcwd.h" diff --git a/lib/xgethostname.c b/lib/xgethostname.c --- a/lib/xgethostname.c +++ b/lib/xgethostname.c @@ -1,7 +1,7 @@ /* xgethostname.c -- return current hostname with unlimited length - Copyright (C) 1992, 1996, 2000, 2001, 2003, 2004, 2005 Free Software - Foundation, Inc. + Copyright (C) 1992, 1996, 2000, 2001, 2003, 2004, 2005, 2006 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 @@ -19,9 +19,7 @@ /* written by Jim Meyering */ -#ifdef HAVE_CONFIG_H -# include -#endif +#include /* Specification. */ #include "xgethostname.h" diff --git a/lib/xmalloc.c b/lib/xmalloc.c --- a/lib/xmalloc.c +++ b/lib/xmalloc.c @@ -1,7 +1,8 @@ /* xmalloc.c -- malloc with out of memory checking Copyright (C) 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, - 1999, 2000, 2002, 2003, 2004, 2005 Free Software Foundation, Inc. + 1999, 2000, 2002, 2003, 2004, 2005, 2006 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,9 +18,7 @@ along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#ifdef HAVE_CONFIG_H -# include -#endif +#include #include "xalloc.h" diff --git a/lib/xmemcoll.c b/lib/xmemcoll.c --- a/lib/xmemcoll.c +++ b/lib/xmemcoll.c @@ -1,5 +1,6 @@ /* Locale-specific memory comparison. - Copyright (C) 2002, 2003, 2004 Free Software Foundation, Inc. + + Copyright (C) 2002, 2003, 2004, 2006 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,9 +18,7 @@ /* Contributed by Paul Eggert . */ -#ifdef HAVE_CONFIG_H -# include -#endif +#include #include #include diff --git a/lib/xnanosleep.c b/lib/xnanosleep.c --- a/lib/xnanosleep.c +++ b/lib/xnanosleep.c @@ -1,5 +1,6 @@ /* xnanosleep.c -- a more convenient interface to nanosleep - Copyright (C) 2002, 2003, 2004, 2005 Free Software Foundation, Inc. + + Copyright (C) 2002, 2003, 2004, 2005, 2006 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 @@ -18,9 +19,7 @@ /* Mostly written (for sleep.c) by Paul Eggert. Factored out (creating this file) by Jim Meyering. */ -#ifdef HAVE_CONFIG_H -# include -#endif +#include #include "xnanosleep.h" diff --git a/lib/xreadlink.c b/lib/xreadlink.c --- a/lib/xreadlink.c +++ b/lib/xreadlink.c @@ -1,6 +1,7 @@ /* xreadlink.c -- readlink wrapper to return the link name in malloc'd storage - Copyright (C) 2001, 2003, 2004, 2005 Free Software Foundation, Inc. + Copyright (C) 2001, 2003, 2004, 2005, 2006 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 @@ -19,9 +20,7 @@ /* Written by Jim Meyering */ -#ifdef HAVE_CONFIG_H -# include -#endif +#include #include "xreadlink.h" diff --git a/lib/xstrtod.c b/lib/xstrtod.c --- a/lib/xstrtod.c +++ b/lib/xstrtod.c @@ -19,9 +19,7 @@ /* Written by Jim Meyering. */ -#ifdef HAVE_CONFIG_H -# include -#endif +#include #include "xstrtod.h" diff --git a/lib/xstrtoimax.c b/lib/xstrtoimax.c --- a/lib/xstrtoimax.c +++ b/lib/xstrtoimax.c @@ -1,5 +1,6 @@ /* xstrtoimax.c -- A more useful interface to strtoimax. - Copyright (C) 2001, 2003, 2004 Free Software Foundation, Inc. + + Copyright (C) 2001, 2003, 2004, 2006 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,9 +18,7 @@ /* Cloned by Jim Meyering. */ -#ifdef HAVE_CONFIG_H -# include -#endif +#include #include "xstrtol.h" diff --git a/lib/xstrtol.c b/lib/xstrtol.c --- a/lib/xstrtol.c +++ b/lib/xstrtol.c @@ -19,9 +19,7 @@ /* Written by Jim Meyering. */ -#ifdef HAVE_CONFIG_H -# include -#endif +#include #include "xstrtol.h" diff --git a/lib/xstrtoumax.c b/lib/xstrtoumax.c --- a/lib/xstrtoumax.c +++ b/lib/xstrtoumax.c @@ -1,5 +1,6 @@ /* xstrtoumax.c -- A more useful interface to strtoumax. - Copyright (C) 1999, 2003, 2004 Free Software Foundation, Inc. + + Copyright (C) 1999, 2003, 2004, 2006 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,9 +18,7 @@ /* Written by Paul Eggert. */ -#ifdef HAVE_CONFIG_H -# include -#endif +#include #include "xstrtol.h" diff --git a/lib/yesno.c b/lib/yesno.c --- a/lib/yesno.c +++ b/lib/yesno.c @@ -1,7 +1,7 @@ /* yesno.c -- read a yes/no response from stdin - Copyright (C) 1990, 1998, 2001, 2003, 2004, 2005 Free Software - Foundation, Inc. + Copyright (C) 1990, 1998, 2001, 2003, 2004, 2005, 2006 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,9 +17,7 @@ along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#ifdef HAVE_CONFIG_H -# include -#endif +#include #include "yesno.h"