From 0632e115747ff96e93330c88f536d7354a7ce507 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Wed, 13 Sep 2006 22:38:14 +0000 Subject: [PATCH] * _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. --- lib/ChangeLog | 40 ++++++++++++++++++++++++++++++++++++++++ lib/__fpending.c | 6 ++---- lib/acl.c | 6 ++---- lib/alloca.c | 4 +--- lib/argmatch.c | 8 +++----- lib/atexit.c | 4 +--- lib/backupfile.c | 4 +--- lib/basename.c | 4 +--- lib/c-stack.c | 6 ++---- lib/c-strtod.c | 6 ++---- lib/calloc.c | 6 ++---- lib/canon-host.c | 6 ++---- lib/canonicalize.c | 6 ++---- lib/chdir-long.c | 6 ++---- lib/chdir-safer.c | 4 +--- lib/chown.c | 7 +++---- lib/cloexec.c | 7 +++---- lib/close-stream.c | 4 +--- lib/closeout.c | 4 +--- lib/creat-safer.c | 7 +++---- lib/cycle-check.c | 4 +--- lib/diacrit.c | 9 +++++---- lib/dirchownmod.c | 4 +--- lib/dirfd.c | 7 +++---- lib/dirname.c | 4 +--- lib/dup-safer.c | 7 +++---- lib/dup2.c | 7 +++---- lib/error.c | 2 +- lib/euidaccess.c | 9 +++------ lib/exclude.c | 4 +--- lib/exitfail.c | 6 ++---- lib/fchmodat.c | 4 +--- lib/fchown-stub.c | 5 ++--- lib/fd-safer.c | 6 ++---- lib/file-type.c | 8 +++----- lib/fileblocks.c | 6 ++---- lib/filemode.c | 4 +--- lib/filenamecat.c | 4 +--- lib/fnmatch.c | 2 +- lib/fopen-safer.c | 7 +++---- lib/fprintftime.c | 4 +--- lib/free.c | 6 ++---- lib/fsusage.c | 4 +--- lib/ftruncate.c | 4 +--- lib/fts-cycle.c | 4 +--- lib/fts.c | 4 +--- lib/full-write.c | 6 ++---- lib/gai_strerror.c | 5 +---- lib/getcwd.c | 5 +---- lib/getdate.y | 4 +--- lib/getdomainname.c | 7 +++---- lib/getgroups.c | 8 ++++---- lib/gethostname.c | 7 +++---- lib/gethrxtime.c | 6 ++---- lib/getloadavg.c | 7 +------ lib/getlogin_r.c | 6 ++---- lib/getndelim2.c | 4 +--- lib/getnline.c | 6 ++---- lib/getopt.c | 2 +- lib/getopt1.c | 7 ++----- lib/getpass.c | 6 ++++-- lib/gettime.c | 7 +++---- lib/gettimeofday.c | 7 +++---- lib/getugroups.c | 8 +++----- lib/getusershell.c | 4 +--- lib/glob.c | 2 +- lib/group-member.c | 8 ++++---- lib/hard-locale.c | 8 +++----- lib/hash-pjw.c | 7 +++---- lib/hash.c | 6 ++---- lib/human.c | 8 +++----- lib/idcache.c | 8 +++----- lib/inet_ntop.c | 7 +++---- lib/inet_pton.c | 7 +++---- lib/inttostr.c | 7 +++---- lib/isdir.c | 7 +++---- lib/lchown.c | 8 ++++---- lib/linebuffer.c | 8 +++----- lib/long-options.c | 8 +++----- lib/lstat.c | 4 +--- lib/malloc.c | 7 +++---- lib/md5.c | 4 +--- lib/memcasecmp.c | 4 +--- lib/memchr.c | 4 ++-- lib/memcmp.c | 4 ++-- lib/memcoll.c | 7 +++---- lib/memcpy.c | 6 ++---- lib/memmove.c | 4 +--- lib/memrchr.c | 9 +++------ lib/mkancesdirs.c | 4 +--- lib/mkdir-p.c | 4 +--- lib/mkdir.c | 6 ++---- lib/mkdirat.c | 4 +--- lib/mkstemp-safer.c | 4 +--- lib/mkstemp.c | 6 ++---- lib/modechange.c | 4 +--- lib/mountlist.c | 4 +--- lib/nanosleep.c | 4 +--- lib/obstack.c | 5 +---- lib/open-safer.c | 7 +++---- lib/openat-die.c | 6 ++---- lib/openat.c | 4 +--- lib/pagealign_alloc.c | 6 ++---- lib/physmem.c | 10 +++++----- lib/pipe-safer.c | 4 +--- lib/posixtm.c | 10 ++++------ lib/posixver.c | 7 +++---- lib/putenv.c | 7 +++---- lib/quote.c | 8 ++++---- lib/quotearg.c | 4 +--- lib/raise.c | 7 +++---- lib/readtokens.c | 7 +++---- lib/readtokens0.c | 8 ++++---- lib/readutmp.c | 8 ++++---- lib/realloc.c | 7 +++---- lib/regex.c | 4 +--- lib/rename.c | 7 +++---- lib/rmdir.c | 8 +++----- lib/rpmatch.c | 8 ++++---- lib/safe-read.c | 8 +++----- lib/same.c | 4 +--- lib/save-cwd.c | 8 +++----- lib/savedir.c | 4 +--- lib/setenv.c | 4 ++-- lib/settime.c | 7 +++---- lib/sha1.c | 4 +--- lib/sig2str.c | 6 ++---- lib/snprintf.c | 4 +--- lib/strdup.c | 9 +++------ lib/strerror.c | 8 +++----- lib/strftime.c | 6 ++---- lib/stripslash.c | 4 +--- lib/strndup.c | 4 +--- lib/strnlen.c | 4 +--- lib/strpbrk.c | 8 ++++---- lib/strtod.c | 4 +--- lib/strtoimax.c | 4 +--- lib/strtol.c | 6 ++---- lib/strverscmp.c | 4 ++-- lib/tempname.c | 2 +- lib/time_r.c | 4 +--- lib/timegm.c | 9 +++------ lib/tmpfile-safer.c | 4 +--- lib/unlinkdir.c | 6 ++---- lib/userspec.c | 4 +--- lib/utime.c | 7 +++---- lib/utimecmp.c | 4 +--- lib/utimens.c | 4 +--- lib/version-etc-fsf.c | 6 ++---- lib/version-etc.c | 4 +--- lib/xalloc-die.c | 4 +--- lib/xgetcwd.c | 6 ++---- lib/xgethostname.c | 8 +++----- lib/xmalloc.c | 7 +++---- lib/xmemcoll.c | 7 +++---- lib/xnanosleep.c | 7 +++---- lib/xreadlink.c | 7 +++---- lib/xstrtod.c | 4 +--- lib/xstrtoimax.c | 7 +++---- lib/xstrtol.c | 4 +--- lib/xstrtoumax.c | 7 +++---- lib/yesno.c | 8 +++----- 162 files changed, 375 insertions(+), 591 deletions(-) diff --git a/lib/ChangeLog b/lib/ChangeLog index 33b50803b..dd9b4626c 100644 --- 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 index 63fb7d7cc..221aee69d 100644 --- 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 index b5c1ee944..f891685fd 100644 --- 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 index d1d54475b..3a1f4e273 100644 --- 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 index 36d5845ac..c6cdfcc82 100644 --- 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 index f4873c9ee..5ef33e57e 100644 --- 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 index c24325d8f..5875d3a11 100644 --- 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 index 8c3dbece7..fbe17ff91 100644 --- 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 index b4c32651d..7606855c7 100644 --- 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 @@ main (int argc __attribute__ ((unused)), char **argv) /* 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 index 031f5f877..2234ed0f8 100644 --- 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 index 317b4fff4..c8b1e1eba 100644 --- 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 index e2bd1a773..c0b7c1344 100644 --- 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 index 84368a493..dccb4724c 100644 --- 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 index 50cae34b5..8d0f06222 100644 --- 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 @@ main (int argc, char *argv[]) /* 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 index f798ff28f..09b2738ff 100644 --- 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 index 2a7bba1a6..5c8b32e02 100644 --- 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 index cf2308ca1..6480006a5 100644 --- 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 index d7551d67f..72d0d6816 100644 --- 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 index f298d4bed..e4093fbd5 100644 --- 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 index 4588de399..f4a2e59db 100644 --- 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 index d8a3ca01d..5359d71e0 100644 --- 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 index 87dca2bc7..fc2d6b71d 100644 --- 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 index 84137fad3..11abe90cd 100644 --- 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 index 18d5e1e5d..06cb3c46f 100644 --- 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 index e3c762c7d..16552c64d 100644 --- 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 index 8cbee7007..d0606eeb4 100644 --- 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 index f581d855d..5e7720457 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, 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 index e6e680743..cf8634332 100644 --- 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 index 44c5a07bc..384808666 100644 --- 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 -# include -#endif - #ifndef _LIBC +# include # include "euidaccess.h" #endif diff --git a/lib/exclude.c b/lib/exclude.c index f5978a966..508b88844 100644 --- 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 index 24df22851..97abc674e 100644 --- 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 index 62327f83e..2598b7015 100644 --- 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 index 322baccce..6be750b82 100644 --- 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 index 5933bcbd1..256bfa4a0 100644 --- 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 index 4b811903f..b6415c3fc 100644 --- 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 index 4244e535c..4024d1ef2 100644 --- 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 index 5636c9e7c..0d34161c0 100644 --- 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 index 399d7db31..bccffb25d 100644 --- 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 index bd4135885..ac3a0dc7c 100644 --- 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 index 4f2ffa1b8..3502dbaa8 100644 --- 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 index 879726bec..2a455275b 100644 --- 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 index 597088d4e..73a125a75 100644 --- 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 index 0bb622447..1e43ede0a 100644 --- 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 index 4bfa43173..079fcda0f 100644 --- 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 index 19c5ded4c..a5f38ab27 100644 --- 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 index f2cc54adc..51115a8fe 100644 --- 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 index c4624e5dc..f098d41e8 100644 --- 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 index d97b858be..7f0e034e6 100644 --- 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 -# include -#endif - #ifndef _LIBC +# include # include "getaddrinfo.h" #endif diff --git a/lib/getcwd.c b/lib/getcwd.c index 614ded18d..292bc19a3 100644 --- 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 -# include -#endif - #if !_LIBC +# include # include "getcwd.h" #endif diff --git a/lib/getdate.y b/lib/getdate.y index d874d689e..29a4be146 100644 --- 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 index 513b4e8f1..e27cd7dcb 100644 --- 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 index 126f130a0..615bd4f5d 100644 --- 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 index f05ed85d5..eedc40ec4 100644 --- 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 index 6ece8ae18..f3d41c7b9 100644 --- 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 index f2b05bb57..cfa62735b 100644 --- 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 index 371164a51..55190f075 100644 --- 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 index 1d5a1ef07..46721e751 100644 --- 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 index c8cd38c0e..21ab0ac27 100644 --- 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 index f37a837bc..83354cd12 100644 --- 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 index 25d792650..cc0746ea4 100644 --- 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 index 4e3339659..70851b3e1 100644 --- 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 index d60711b53..abef2c41e 100644 --- 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 index eb6de94f1..f2fad8cf4 100644 --- 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 index dfcffd75f..970192e67 100644 --- 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 index a75d4fd48..6e7a443f1 100644 --- 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 index df0c5e2ab..38927d388 100644 --- 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 index 7b189f241..018702655 100644 --- 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 index 98530fcd5..ef3912698 100644 --- 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 index 315277abb..bd94036c4 100644 --- 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 index f85bd519b..f4ab12f48 100644 --- 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 index ed15c6a24..6e641446c 100644 --- 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 index 2e46c1b04..d4a867d7b 100644 --- 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 index 8329c827d..537b59fa5 100644 --- 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 index 39c08692b..5ec88a43a 100644 --- 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 index 2adcd2c13..246d65835 100644 --- 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 index 6a56a43d6..f328dbb67 100644 --- 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 index 0b74eac8a..f015cde9f 100644 --- 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 index 96d26bd9a..3f1e45b28 100644 --- 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 index 7c9972a19..fb61661aa 100644 --- 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 index 9b9c33e41..bfa0d89b4 100644 --- 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 index 58fa61168..d4dae3e18 100644 --- 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 index 043a741d5..917a899a7 100644 --- 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 index 9aebb3e9c..cddf76aed 100644 --- 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 index 3c5ecfd0e..d44ad6deb 100644 --- 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 @@ You should have received a copy of the GNU General Public License 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 index 6928b1e4a..cf98bfab1 100644 --- 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 index 457d1104a..e5ef36397 100644 --- 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 index 2ab5ed6ee..d1e49c6fc 100644 --- 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 index 753c899d3..c5ff8b520 100644 --- 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 index 0b6659fd9..471511c57 100644 --- 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 index 473774236..3db352d32 100644 --- 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 index 697de7768..3838c8e9a 100644 --- 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 index c921ecfdb..5a0c4b033 100644 --- 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 index dc75eb12e..da0b262bf 100644 --- 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 index 315385da0..47d015a49 100644 --- 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 index cec5ba8ba..32f2de40b 100644 --- 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 index 80e06710a..e1f7ceb77 100644 --- 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 index 285c3de5e..d70a1a208 100644 --- 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 index 9d725c66d..fe22a97ca 100644 --- 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 index 9c4aaaf63..1bbf62bb6 100644 --- 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 index d3ba894ac..04a72eb7b 100644 --- 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 index e274ff6e1..7a285700d 100644 --- 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 index ca71d658e..49ecde883 100644 --- 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 index 45bbd6573..521bde566 100644 --- 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 index ad8594d28..844817bf0 100644 --- 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 @@ main (void) /* 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 index 81df99454..e4431b33a 100644 --- 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 index 43161d2e0..5a839d676 100644 --- 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 @@ main (void) /* 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 index 0e75676f9..e7b469978 100644 --- 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 index 9c7cf66ee..d90401618 100644 --- 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 index 70f1d1d75..119be72ae 100644 --- 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 index 113239fb1..381f00acc 100644 --- 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 index 0c1464064..98a97da6d 100644 --- 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 index c3525524f..28aafa962 100644 --- 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 index 55b39a747..b60fd5a44 100644 --- 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 index 634d9ab1f..cf29572f0 100644 --- 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 index fe9482223..c1fe9e5a1 100644 --- 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 index 70ee70ecb..d4eb726b2 100644 --- 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 index 9c9e7f4df..32d2b0131 100644 --- 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 index 25564b6b4..1cc74395a 100644 --- 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 index ba8bc4ce9..e5f79f822 100644 --- 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 index 9caf84666..b7bf1d5cd 100644 --- 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 index e267ba444..11590c683 100644 --- 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 index f842ccafc..f07973a3a 100644 --- 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 index 3c442aa6e..12084ee90 100644 --- 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 index 335d1d2f9..23832485a 100644 --- 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 index 1d4098730..9d48f1654 100644 --- 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 index dadf97361..035f898c7 100644 --- 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 index bf4b7cbe8..cf2819daa 100644 --- 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 index 5c788fd37..db1ca9af1 100644 --- 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 index d6d011620..7cff51be0 100644 --- 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 -# include -#endif - #ifndef _LIBC +# include /* Get specification. */ # include "strdup.h" #endif diff --git a/lib/strerror.c b/lib/strerror.c index 623821d2e..24e2e1ba7 100644 --- 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 index 4a4ac0662..86cd1cf7e 100644 --- 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 index 4ba5dadbe..342d497c8 100644 --- 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 index 2626373f2..55cb56036 100644 --- 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 -# include -#endif #if !_LIBC +# include # include "strndup.h" #endif diff --git a/lib/strnlen.c b/lib/strnlen.c index 09ba788ab..593fd1b7c 100644 --- 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 index 9152440b1..7843a6dd6 100644 --- 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 index 73f01f974..fdfc09f1b 100644 --- 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 index dcdd1810c..f1828b11f 100644 --- 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 index cdcd15a31..e409d2872 100644 --- 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 index 5361a5cc5..f0776516f 100644 --- 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 index 038b688dd..d143882c9 100644 --- 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 index 412006372..3205862ad 100644 --- 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 index 82f904a6b..656df1c95 100644 --- 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 index 74ab95914..cd8dddf4c 100644 --- 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 index d3584bebf..07620dbf0 100644 --- 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 index fd2c941f8..4dbaee0a3 100644 --- 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 index 906cec8d7..421a7cc58 100644 --- 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 index b42e71fa8..5be050a94 100644 --- 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 index 1489df05c..e3daaf3f5 100644 --- 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 index 374100563..f25eb653e 100644 --- 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 index 7887c26e2..10d33faa6 100644 --- 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 index 9b4a76c6b..090f060df 100644 --- 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 index 0f798dac0..db5f2d217 100644 --- 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 index 656ef4101..b4c8dcc73 100644 --- 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 index 687633c25..fe84a0b49 100644 --- 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 index f04e468d8..de00c8444 100644 --- 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 index bab58eecb..70c7f2a37 100644 --- 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 index b8bb3c4df..8d61b633a 100644 --- 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 index e711ec860..86e124f20 100644 --- 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 index 3e585d6e0..37b30d886 100644 --- 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 index e7fb06810..2d1ba9154 100644 --- 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 index e6208a474..6fb35c752 100644 --- 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 index a364a1b18..930bfb0a7 100644 --- 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" -- 2.11.0