bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

more merges from coreutils into gnulib: include-file cleanup, mostly


From: Paul Eggert
Subject: more merges from coreutils into gnulib: include-file cleanup, mostly
Date: Thu, 22 Sep 2005 21:21:52 -0700
User-agent: Gnus/5.1007 (Gnus v5.10.7) Emacs/21.4 (gnu/linux)

Here is a large set of small changes that I just installed, imported
from coreutils.  I don't think there's anything controversial here,
except for the AC_LIBSORUCES stuff (which at least makes the coreutils
imports more uniform).

2005-09-22  Paul Eggert  <address@hidden>

        Sync from coreutils.

        * .cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
        stat-time.h.
        * argmatch.h: Include verify.h
        (ARGMATCH_VERIFY): Use verify rather than rolling our own.
        (ARGMATCH_ASSERT): Remove; unused.
        * canonicalize.c: Assume STDC_HEADERS.
        * exclude.c: Include "strcase.h".
        * regex_internal.h [!defined _LIBC]: Likewise.
        * getusershell.c: Include stdio--.h rather than stdio.h
        and stdio-safer.h.
        (getusershell): Call fopen, not fopen_safer.
        * save-cwd.c: Include fcntl--.h rather than fcntl.h.
        Do not include unistd-safer.h.
        (save_cwd): Don't call fd_safer; no longer needed
        now that we include fcntl--.h.

        * modules/argmatch (Depends-on): Add verify.
        * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
        unistd-safer.
        * modules/save-cwd (Depends-on): Likewise.

        * backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
        * fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
        * getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
        * mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
        * physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
        * save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
        * userspec.m4, xgetcwd.m4, xreadlink.m4:
        Don't bother checking for string.h, stdlib.h, unistd.h.
        * fts.m4 (gl_FUNC_FTS_CORE): Don't require
        AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
        module's job.
        * jm-macros.m4 (gl_MACROS): Likewise.
        * prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.

2005-09-22  Jim Meyering  <address@hidden>

        Sync from coreutils.

        * backupfile.c: Use ARGMATCH_VERIFY, just in case.
        * posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
        the .tm_year member, since otherwise gcc-4.0 would now warn about
        tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
        * quotearg.c (quotearg_n_options): Change code to be suboptimal, in
        order to avoid an unsuppressible warning from gcc on 64-bit systems.

        * lstat.m4 (gl_FUNC_LSTAT):
        Use AC_LIBSOURCES to require lstat.c and lstat.h.
        Remove obsolete comment.
        * xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
        * xstrtod.m4: Likewise.

Index: lib/.cppi-disable
===================================================================
RCS file: /cvsroot/gnulib/gnulib/lib/.cppi-disable,v
retrieving revision 1.20
diff -p -u -r1.20 .cppi-disable
--- lib/.cppi-disable   4 Oct 2004 04:37:22 -0000       1.20
+++ lib/.cppi-disable   23 Sep 2005 02:45:48 -0000
@@ -18,8 +18,12 @@ md5.h
 obstack.h
 printf-args.h
 printf-parse.h
+regcomp.c
 regex.c
 regex.h
+regex_internal.c
+regex_internal.h
+stat-time.h
 stdbool_.h
 strdup.h
 strndup.h
Index: lib/argmatch.h
===================================================================
RCS file: /cvsroot/gnulib/gnulib/lib/argmatch.h,v
retrieving revision 1.24
diff -p -u -r1.24 argmatch.h
--- lib/argmatch.h      14 May 2005 06:03:57 -0000      1.24
+++ lib/argmatch.h      23 Sep 2005 02:45:48 -0000
@@ -1,6 +1,6 @@
 /* argmatch.h -- definitions and prototypes for argmatch.c
 
-   Copyright (C) 1990, 1998, 1999, 2001, 2002, 2004 Free Software
+   Copyright (C) 1990, 1998, 1999, 2001, 2002, 2004, 2005 Free Software
    Foundation, Inc.
 
    This program is free software; you can redistribute it and/or modify
@@ -25,24 +25,15 @@
 
 # include <stddef.h>
 
-# define ARRAY_CARDINALITY(Array) (sizeof (Array) / sizeof *(Array))
+# include "verify.h"
 
-# define ARGMATCH_CONSTRAINT(Arglist, Vallist) \
-  (ARRAY_CARDINALITY (Arglist) == ARRAY_CARDINALITY (Vallist) + 1)
+# define ARRAY_CARDINALITY(Array) (sizeof (Array) / sizeof *(Array))
 
 /* Assert there are as many real arguments as there are values
-   (argument list ends with a NULL guard).  ARGMATCH_VERIFY is
-   preferred, since it is guaranteed to be checked at compile-time.
-   ARGMATCH_ASSERT is for backward compatibility only.  */
-
-# define ARGMATCH_VERIFY(Arglist, Vallist)                               \
-  struct argmatch_verify                                                 \
-  {                                                                      \
-    char argmatch_verify[ARGMATCH_CONSTRAINT(Arglist, Vallist) ? 1 : -1]; \
-  }
+   (argument list ends with a NULL guard).  */
 
-# define ARGMATCH_ASSERT(Arglist, Vallist) \
-  assert (ARGMATCH_CONSTRAINT (Arglist, Vallist))
+# define ARGMATCH_VERIFY(Arglist, Vallist) \
+    verify (ARRAY_CARDINALITY (Arglist) == ARRAY_CARDINALITY (Vallist) + 1)
 
 /* Return the index of the element of ARGLIST (NULL terminated) that
    matches with ARG.  If VALLIST is not NULL, then use it to resolve
Index: lib/backupfile.c
===================================================================
RCS file: /cvsroot/gnulib/gnulib/lib/backupfile.c,v
retrieving revision 1.46
diff -p -u -r1.46 backupfile.c
--- lib/backupfile.c    19 Sep 2005 17:28:14 -0000      1.46
+++ lib/backupfile.c    23 Sep 2005 02:45:48 -0000
@@ -38,9 +38,7 @@
 
 #include <limits.h>
 
-#if HAVE_UNISTD_H
-# include <unistd.h>
-#endif
+#include <unistd.h>
 
 #if HAVE_DIRENT_H
 # include <dirent.h>
@@ -334,7 +332,7 @@ find_backup_file_name (char const *file,
 
 static char const * const backup_args[] =
 {
-  /* In a series of synonyms, present the most meaning full first, so
+  /* In a series of synonyms, present the most meaningful first, so
      that argmatch_valid be more readable. */
   "none", "off",
   "simple", "never",
@@ -350,6 +348,10 @@ static const enum backup_type backup_typ
   numbered_existing_backups, numbered_existing_backups,
   numbered_backups, numbered_backups
 };
+
+/* Ensure that these two vectors have the same number of elements,
+   not counting the final NULL in the first one.  */
+ARGMATCH_VERIFY (backup_args, backup_types);
 
 /* Return the type of backup specified by VERSION.
    If VERSION is NULL or the empty string, return numbered_existing_backups.
Index: lib/canonicalize.c
===================================================================
RCS file: /cvsroot/gnulib/gnulib/lib/canonicalize.c,v
retrieving revision 1.5
diff -p -u -r1.5 canonicalize.c
--- lib/canonicalize.c  2 Jun 2005 20:41:05 -0000       1.5
+++ lib/canonicalize.c  23 Sep 2005 02:45:48 -0000
@@ -22,17 +22,8 @@
 
 #include "canonicalize.h"
 
-#ifdef STDC_HEADERS
-# include <stdlib.h>
-#else
-void free ();
-#endif
-
-#if defined STDC_HEADERS || defined HAVE_STRING_H
-# include <string.h>
-#else
-# include <strings.h>
-#endif
+#include <stdlib.h>
+#include <string.h>
 
 #if HAVE_SYS_PARAM_H
 # include <sys/param.h>
@@ -40,9 +31,7 @@ void free ();
 
 #include <sys/stat.h>
 
-#if HAVE_UNISTD_H
-# include <unistd.h>
-#endif
+#include <unistd.h>
 
 #include <errno.h>
 #include <stddef.h>
Index: lib/chown.c
===================================================================
RCS file: /cvsroot/gnulib/gnulib/lib/chown.c,v
retrieving revision 1.15
diff -p -u -r1.15 chown.c
--- lib/chown.c 19 Sep 2005 17:28:14 -0000      1.15
+++ lib/chown.c 23 Sep 2005 02:45:48 -0000
@@ -29,9 +29,7 @@
 
 #include <sys/types.h>
 #include <sys/stat.h>
-#if HAVE_UNISTD_H
-# include <unistd.h>
-#endif
+#include <unistd.h>
 #include <fcntl.h>
 #include <errno.h>
 
Index: lib/cloexec.c
===================================================================
RCS file: /cvsroot/gnulib/gnulib/lib/cloexec.c,v
retrieving revision 1.5
diff -p -u -r1.5 cloexec.c
--- lib/cloexec.c       19 Sep 2005 17:28:14 -0000      1.5
+++ lib/cloexec.c       23 Sep 2005 02:45:48 -0000
@@ -1,5 +1,5 @@
 /* closexec.c - set or clear the close-on-exec descriptor flag
-   Copyright (C) 1991, 2004 Free Software Foundation, Inc.
+   Copyright (C) 1991, 2004, 2005 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
@@ -23,10 +23,7 @@
 
 #include "cloexec.h"
 
-#if HAVE_UNISTD_H
-# include <unistd.h>
-#endif
-
+#include <unistd.h>
 #include <fcntl.h>
 
 #ifndef FD_CLOEXEC
Index: lib/dup2.c
===================================================================
RCS file: /cvsroot/gnulib/gnulib/lib/dup2.c,v
retrieving revision 1.7
diff -p -u -r1.7 dup2.c
--- lib/dup2.c  19 Sep 2005 17:28:14 -0000      1.7
+++ lib/dup2.c  23 Sep 2005 02:45:48 -0000
@@ -1,5 +1,5 @@
 /* Duplicate an open file descriptor to a specified file descriptor.
-   Copyright (C) 1999, 2004 Free Software Foundation, Inc.
+   Copyright (C) 1999, 2004, 2005 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
@@ -22,12 +22,8 @@
 #endif
 
 #include <errno.h>
-
 #include <fcntl.h>
-
-#if HAVE_UNISTD_H
-# include <unistd.h>
-#endif
+#include <unistd.h>
 
 #ifndef F_DUPFD
 static int
Index: lib/euidaccess.c
===================================================================
RCS file: /cvsroot/gnulib/gnulib/lib/euidaccess.c,v
retrieving revision 1.20
diff -p -u -r1.20 euidaccess.c
--- lib/euidaccess.c    19 Sep 2005 17:28:14 -0000      1.20
+++ lib/euidaccess.c    23 Sep 2005 02:45:48 -0000
@@ -32,10 +32,7 @@
 
 #include <sys/types.h>
 #include <sys/stat.h>
-
-#if HAVE_UNISTD_H || defined _LIBC
-# include <unistd.h>
-#endif
+#include <unistd.h>
 
 #if HAVE_LIBGEN_H
 # include <libgen.h>
Index: lib/exclude.c
===================================================================
RCS file: /cvsroot/gnulib/gnulib/lib/exclude.c,v
retrieving revision 1.25
diff -p -u -r1.25 exclude.c
--- lib/exclude.c       19 Sep 2005 17:28:14 -0000      1.25
+++ lib/exclude.c       23 Sep 2005 02:45:48 -0000
@@ -35,6 +35,7 @@
 
 #include "exclude.h"
 #include "fnmatch.h"
+#include "strcase.h"
 #include "xalloc.h"
 
 #if USE_UNLOCKED_IO
Index: lib/fileblocks.c
===================================================================
RCS file: /cvsroot/gnulib/gnulib/lib/fileblocks.c,v
retrieving revision 1.19
diff -p -u -r1.19 fileblocks.c
--- lib/fileblocks.c    19 Sep 2005 17:28:14 -0000      1.19
+++ lib/fileblocks.c    23 Sep 2005 02:45:48 -0000
@@ -1,6 +1,7 @@
 /* Convert file size to number of blocks on System V-like machines.
 
-   Copyright (C) 1990, 1997, 1998, 1999, 2004 Free Software Foundation, Inc.
+   Copyright (C) 1990, 1997, 1998, 1999, 2004, 2005 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
@@ -30,9 +31,7 @@
 
 #if !HAVE_STRUCT_STAT_ST_BLOCKS && !defined _POSIX_SOURCE && defined BSIZE
 
-# if HAVE_UNISTD_H
-#  include <unistd.h>
-# endif
+# include <unistd.h>
 
 # ifndef NINDIR
 
Index: lib/fsusage.c
===================================================================
RCS file: /cvsroot/gnulib/gnulib/lib/fsusage.c,v
retrieving revision 1.52
diff -p -u -r1.52 fsusage.c
--- lib/fsusage.c       19 Sep 2005 17:28:14 -0000      1.52
+++ lib/fsusage.c       23 Sep 2005 02:45:48 -0000
@@ -27,9 +27,7 @@
 #if HAVE_STDINT_H
 # include <stdint.h>
 #endif
-#if HAVE_UNISTD_H
-# include <unistd.h>
-#endif
+#include <unistd.h>
 #ifndef UINTMAX_MAX
 # define UINTMAX_MAX ((uintmax_t) -1)
 #endif
Index: lib/ftruncate.c
===================================================================
RCS file: /cvsroot/gnulib/gnulib/lib/ftruncate.c,v
retrieving revision 1.9
diff -p -u -r1.9 ftruncate.c
--- lib/ftruncate.c     19 Sep 2005 17:28:14 -0000      1.9
+++ lib/ftruncate.c     23 Sep 2005 02:45:48 -0000
@@ -23,9 +23,7 @@ ftruncate (int fd, off_t length)
 
 #  include <sys/stat.h>
 #  include <errno.h>
-#  if HAVE_UNISTD_H
-#   include <unistd.h>
-#  endif
+#  include <unistd.h>
 
 int
 ftruncate (int fd, off_t length)
Index: lib/getcwd.c
===================================================================
RCS file: /cvsroot/gnulib/gnulib/lib/getcwd.c,v
retrieving revision 1.7
diff -p -u -r1.7 getcwd.c
--- lib/getcwd.c        19 Sep 2005 17:28:14 -0000      1.7
+++ lib/getcwd.c        23 Sep 2005 02:45:48 -0000
@@ -60,10 +60,7 @@
 # define _D_ALLOC_NAMLEN(d) (_D_EXACT_NAMLEN (d) + 1)
 #endif
 
-#if HAVE_UNISTD_H || _LIBC
-# include <unistd.h>
-#endif
-
+#include <unistd.h>
 #include <stdlib.h>
 #include <string.h>
 
Index: lib/getcwd.h
===================================================================
RCS file: /cvsroot/gnulib/gnulib/lib/getcwd.h,v
retrieving revision 1.3
diff -p -u -r1.3 getcwd.h
--- lib/getcwd.h        11 Jul 2005 11:21:55 -0000      1.3
+++ lib/getcwd.h        23 Sep 2005 02:45:48 -0000
@@ -22,9 +22,7 @@
    cause confusion if included after this file.  */
 
 #include <stdlib.h>
-#if HAVE_UNISTD_H
-# include <unistd.h>
-#endif
+#include <unistd.h>
 
 /* If necessary, systematically rename identifiers so that they do not
    collide with the system function.  Renaming avoids problems with
Index: lib/getopt_.h
===================================================================
RCS file: /cvsroot/gnulib/gnulib/lib/getopt_.h,v
retrieving revision 1.10
diff -p -u -r1.10 getopt_.h
--- lib/getopt_.h       14 May 2005 06:03:58 -0000      1.10
+++ lib/getopt_.h       23 Sep 2005 02:45:48 -0000
@@ -1,5 +1,5 @@
 /* Declarations for getopt.
-   Copyright (C) 1989-1994,1996-1999,2001,2003,2004
+   Copyright (C) 1989-1994,1996-1999,2001,2003,2004,2005
    Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
@@ -34,9 +34,7 @@
 #if defined __GETOPT_PREFIX && !defined __need_getopt
 # include <stdlib.h>
 # include <stdio.h>
-# if HAVE_UNISTD_H
-#  include <unistd.h>
-# endif
+# include <unistd.h>
 # undef __need_getopt
 # undef getopt
 # undef getopt_long
Index: lib/getpagesize.h
===================================================================
RCS file: /cvsroot/gnulib/gnulib/lib/getpagesize.h,v
retrieving revision 1.8
diff -p -u -r1.8 getpagesize.h
--- lib/getpagesize.h   14 May 2005 06:03:58 -0000      1.8
+++ lib/getpagesize.h   23 Sep 2005 02:45:48 -0000
@@ -1,5 +1,5 @@
 /* Emulate getpagesize on systems that lack it.
-   Copyright (C) 1999, 2000, 2004 Free Software Foundation, Inc.
+   Copyright (C) 1999, 2000, 2004, 2005 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 @@
 
 #ifndef HAVE_GETPAGESIZE
 
-#ifdef HAVE_UNISTD_H
-# include <unistd.h>
-#endif
+#include <unistd.h>
 
 #if !defined getpagesize && defined _SC_PAGESIZE
 # if !(defined VMS && __VMS_VER < 70000000)
Index: lib/getugroups.c
===================================================================
RCS file: /cvsroot/gnulib/gnulib/lib/getugroups.c,v
retrieving revision 1.14
diff -p -u -r1.14 getugroups.c
--- lib/getugroups.c    14 May 2005 06:03:58 -0000      1.14
+++ lib/getugroups.c    23 Sep 2005 02:45:48 -0000
@@ -1,6 +1,6 @@
 /* getugroups.c -- return a list of the groups a user is in
 
-   Copyright (C) 1990, 1991, 1998, 1999, 2000, 2003, 2004 Free
+   Copyright (C) 1990, 1991, 1998, 1999, 2000, 2003, 2004, 2005 Free
    Software Foundation.
 
    This program is free software; you can redistribute it and/or modify
@@ -27,9 +27,7 @@
 #include <stdio.h> /* grp.h on alpha OSF1 V2.0 uses "FILE *". */
 #include <grp.h>
 
-#ifdef HAVE_UNISTD_H
-# include <unistd.h>
-#endif
+#include <unistd.h>
 
 #include <errno.h>
 #ifndef EOVERFLOW
Index: lib/getusershell.c
===================================================================
RCS file: /cvsroot/gnulib/gnulib/lib/getusershell.c,v
retrieving revision 1.21
diff -p -u -r1.21 getusershell.c
--- lib/getusershell.c  14 May 2005 06:03:58 -0000      1.21
+++ lib/getusershell.c  23 Sep 2005 02:45:48 -0000
@@ -33,11 +33,10 @@
 # endif
 #endif
 
-#include <stdio.h>
 #include <stdlib.h>
 #include <ctype.h>
 
-#include "stdio-safer.h"
+#include "stdio--.h"
 #include "xalloc.h"
 
 #if USE_UNLOCKED_IO
@@ -99,7 +98,7 @@ getusershell (void)
 
   if (shellstream == NULL)
     {
-      shellstream = fopen_safer (SHELLS_FILE, "r");
+      shellstream = fopen (SHELLS_FILE, "r");
       if (shellstream == NULL)
        {
          /* No shells file.  Use the default list.  */
Index: lib/group-member.c
===================================================================
RCS file: /cvsroot/gnulib/gnulib/lib/group-member.c,v
retrieving revision 1.16
diff -p -u -r1.16 group-member.c
--- lib/group-member.c  19 Sep 2005 17:28:14 -0000      1.16
+++ lib/group-member.c  23 Sep 2005 02:45:48 -0000
@@ -1,5 +1,5 @@
 /* group-member.c -- determine whether group id is in calling user's group list
-   Copyright (C) 1994, 1997, 1998, 2003 Free Software Foundation, Inc.
+   Copyright (C) 1994, 1997, 1998, 2003, 2005 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
@@ -26,9 +26,7 @@
 #include <sys/types.h>
 #include <stdlib.h>
 
-#if HAVE_UNISTD_H
-# include <unistd.h>
-#endif
+#include <unistd.h>
 
 #include "xalloc.h"
 
Index: lib/human.h
===================================================================
RCS file: /cvsroot/gnulib/gnulib/lib/human.h,v
retrieving revision 1.13
diff -p -u -r1.13 human.h
--- lib/human.h 19 Sep 2005 17:28:14 -0000      1.13
+++ lib/human.h 23 Sep 2005 02:45:48 -0000
@@ -28,9 +28,7 @@
 # if HAVE_STDINT_H
 #  include <stdint.h>
 # endif
-# if HAVE_UNISTD_H
-#  include <unistd.h>
-# endif
+# include <unistd.h>
 
 /* A conservative bound on the maximum length of a human-readable string.
    The output can be the square of the largest uintmax_t, so double
Index: lib/idcache.c
===================================================================
RCS file: /cvsroot/gnulib/gnulib/lib/idcache.c,v
retrieving revision 1.15
diff -p -u -r1.15 idcache.c
--- lib/idcache.c       19 Sep 2005 17:28:14 -0000      1.15
+++ lib/idcache.c       23 Sep 2005 02:45:48 -0000
@@ -27,9 +27,7 @@
 #include <pwd.h>
 #include <grp.h>
 
-#if HAVE_UNISTD_H
-# include <unistd.h>
-#endif
+#include <unistd.h>
 
 #include "xalloc.h"
 
Index: lib/inttostr.h
===================================================================
RCS file: /cvsroot/gnulib/gnulib/lib/inttostr.h,v
retrieving revision 1.5
diff -p -u -r1.5 inttostr.h
--- lib/inttostr.h      19 Sep 2005 17:28:14 -0000      1.5
+++ lib/inttostr.h      23 Sep 2005 02:45:48 -0000
@@ -25,9 +25,7 @@
 # include <stdint.h>
 #endif
 
-#if HAVE_SYS_TYPES_H
-# include <sys/types.h>
-#endif
+#include <sys/types.h>
 
 #include "intprops.h"
 
Index: lib/mountlist.c
===================================================================
RCS file: /cvsroot/gnulib/gnulib/lib/mountlist.c,v
retrieving revision 1.52
diff -p -u -r1.52 mountlist.c
--- lib/mountlist.c     19 Sep 2005 17:28:14 -0000      1.52
+++ lib/mountlist.c     23 Sep 2005 02:45:48 -0000
@@ -37,9 +37,7 @@ char *strstr ();
 
 #include <fcntl.h>
 
-#ifdef HAVE_UNISTD_H
-# include <unistd.h>
-#endif
+#include <unistd.h>
 
 #if HAVE_SYS_PARAM_H
 # include <sys/param.h>
Index: lib/nanosleep.c
===================================================================
RCS file: /cvsroot/gnulib/gnulib/lib/nanosleep.c,v
retrieving revision 1.16
diff -p -u -r1.16 nanosleep.c
--- lib/nanosleep.c     19 Sep 2005 17:28:14 -0000      1.16
+++ lib/nanosleep.c     23 Sep 2005 02:45:48 -0000
@@ -32,9 +32,7 @@
 
 #include <errno.h>
 
-#if HAVE_UNISTD_H
-# include <unistd.h>
-#endif
+#include <unistd.h>
 
 #include "timespec.h"
 
Index: lib/pathmax.h
===================================================================
RCS file: /cvsroot/gnulib/gnulib/lib/pathmax.h,v
retrieving revision 1.11
diff -p -u -r1.11 pathmax.h
--- lib/pathmax.h       2 Jun 2005 20:41:06 -0000       1.11
+++ lib/pathmax.h       23 Sep 2005 02:45:48 -0000
@@ -18,9 +18,7 @@
 #ifndef _PATHMAX_H
 # define _PATHMAX_H
 
-# if HAVE_UNISTD_H
-#  include <unistd.h>
-# endif
+# include <unistd.h>
 
 # include <limits.h>
 
Index: lib/physmem.c
===================================================================
RCS file: /cvsroot/gnulib/gnulib/lib/physmem.c,v
retrieving revision 1.6
diff -p -u -r1.6 physmem.c
--- lib/physmem.c       19 Sep 2005 17:28:14 -0000      1.6
+++ lib/physmem.c       23 Sep 2005 02:45:48 -0000
@@ -1,5 +1,5 @@
 /* Calculate the size of physical memory.
-   Copyright (C) 2000, 2001, 2003 Free Software Foundation, Inc.
+   Copyright (C) 2000, 2001, 2003, 2005 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
@@ -23,9 +23,7 @@
 
 #include "physmem.h"
 
-#if HAVE_UNISTD_H
-# include <unistd.h>
-#endif
+#include <unistd.h>
 
 #if HAVE_SYS_PSTAT_H
 # include <sys/pstat.h>
Index: lib/posixtm.c
===================================================================
RCS file: /cvsroot/gnulib/gnulib/lib/posixtm.c,v
retrieving revision 1.20
diff -p -u -r1.20 posixtm.c
--- lib/posixtm.c       14 May 2005 06:03:58 -0000      1.20
+++ lib/posixtm.c       23 Sep 2005 02:45:48 -0000
@@ -193,18 +193,18 @@ posix_time_parse (struct tm *tm, const c
 bool
 posixtime (time_t *p, const char *s, unsigned int syntax_bits)
 {
-  struct tm tm0;
-  struct tm tm1;
-  struct tm const *tm;
-  time_t t;
-
+  struct tm tm0
 #ifdef lint
   /* Placate gcc-4's -Wuninitialized.
-     posix_time_parse fails to set tm0.tm_year only when it returns
+     posix_time_parse fails to set all of tm0 only when it returns
      nonzero (due to year() returning nonzero), and in that case,
      this code doesn't use the tm0 at all.  */
-  tm0.tm_year = 0;
+    = { 0, }
 #endif
+    ;
+  struct tm tm1;
+  struct tm const *tm;
+  time_t t;
 
   if (posix_time_parse (&tm0, s, syntax_bits))
     return false;
Index: lib/posixver.c
===================================================================
RCS file: /cvsroot/gnulib/gnulib/lib/posixver.c,v
retrieving revision 1.6
diff -p -u -r1.6 posixver.c
--- lib/posixver.c      19 Sep 2005 17:28:14 -0000      1.6
+++ lib/posixver.c      23 Sep 2005 02:45:48 -0000
@@ -1,6 +1,6 @@
 /* Which POSIX version to conform to, for utilities.
 
-   Copyright (C) 2002, 2003, 2004 Free Software Foundation, Inc.
+   Copyright (C) 2002, 2003, 2004, 2005 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
@@ -27,9 +27,7 @@
 #include <limits.h>
 #include <stdlib.h>
 
-#if HAVE_UNISTD_H
-# include <unistd.h>
-#endif
+#include <unistd.h>
 #ifndef _POSIX2_VERSION
 # define _POSIX2_VERSION 0
 #endif
Index: lib/putenv.c
===================================================================
RCS file: /cvsroot/gnulib/gnulib/lib/putenv.c,v
retrieving revision 1.30
diff -p -u -r1.30 putenv.c
--- lib/putenv.c        19 Sep 2005 17:28:14 -0000      1.30
+++ lib/putenv.c        23 Sep 2005 02:45:48 -0000
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991, 1994, 1997, 1998, 2000, 2003, 2004 Free Software 
Foundation, Inc.
+/* Copyright (C) 1991, 1994, 1997, 1998, 2000, 2003, 2004, 2005 Free Software 
Foundation, Inc.
 
    NOTE: The canonical source of this file is maintained with the GNU C
    Library.  Bugs can be reported to address@hidden
@@ -39,9 +39,7 @@ void free ();
 
 #include <string.h>
 
-#if defined (__GNU_LIBRARY__) || defined (HAVE_UNISTD_H)
-# include <unistd.h>
-#endif
+#include <unistd.h>
 
 #if HAVE_GNU_LD
 # define environ __environ
Index: lib/quotearg.c
===================================================================
RCS file: /cvsroot/gnulib/gnulib/lib/quotearg.c,v
retrieving revision 1.46
diff -p -u -r1.46 quotearg.c
--- lib/quotearg.c      19 Sep 2005 17:28:14 -0000      1.46
+++ lib/quotearg.c      23 Sep 2005 02:45:48 -0000
@@ -586,7 +586,12 @@ quotearg_n_options (int n, char const *a
 
   if (nslots <= n0)
     {
-      unsigned int n1 = n0 + 1;
+      /* FIXME: technically, the type of n1 should be `unsigned int',
+        but that evokes an unsuppressible warning from gcc-4.0.1 and
+        older.  If gcc ever provides an option to suppress that warning,
+        revert to the original type, so that the test in xalloc_oversized
+        is once again performed only at compile time.  */
+      size_t n1 = n0 + 1;
 
       if (xalloc_oversized (n1, sizeof *slotvec))
        xalloc_die ();
Index: lib/raise.c
===================================================================
RCS file: /cvsroot/gnulib/gnulib/lib/raise.c,v
retrieving revision 1.3
diff -p -u -r1.3 raise.c
--- lib/raise.c 19 Sep 2005 17:28:14 -0000      1.3
+++ lib/raise.c 23 Sep 2005 02:45:48 -0000
@@ -1,5 +1,5 @@
 /* Provide a non-threads replacement for the POSIX raise function.
-   Copyright (C) 2002, 2003 Free Software Foundation, Inc.
+   Copyright (C) 2002, 2003, 2005 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
@@ -23,9 +23,7 @@
 
 #include <sys/types.h>
 #include <signal.h>
-#if HAVE_UNISTD_H
-# include <unistd.h>
-#endif
+#include <unistd.h>
 
 int
 raise (int sig)
Index: lib/regex_internal.h
===================================================================
RCS file: /cvsroot/gnulib/gnulib/lib/regex_internal.h,v
retrieving revision 1.16
diff -p -u -r1.16 regex_internal.h
--- lib/regex_internal.h        16 Sep 2005 00:23:36 -0000      1.16
+++ lib/regex_internal.h        23 Sep 2005 02:45:48 -0000
@@ -27,6 +27,10 @@
 #include <stdlib.h>
 #include <string.h>
 
+#ifndef _LIBC
+# include "strcase.h"
+#endif
+
 #if defined HAVE_LANGINFO_H || defined HAVE_LANGINFO_CODESET || defined _LIBC
 # include <langinfo.h>
 #endif
Index: lib/safe-read.c
===================================================================
RCS file: /cvsroot/gnulib/gnulib/lib/safe-read.c,v
retrieving revision 1.26
diff -p -u -r1.26 safe-read.c
--- lib/safe-read.c     19 Sep 2005 17:28:15 -0000      1.26
+++ lib/safe-read.c     23 Sep 2005 02:45:48 -0000
@@ -1,6 +1,6 @@
 /* An interface to read and write that retries after interrupts.
 
-   Copyright (C) 1993, 1994, 1998, 2002, 2003, 2004 Free Software
+   Copyright (C) 1993, 1994, 1998, 2002, 2003, 2004, 2005 Free Software
    Foundation, Inc.
 
    This program is free software; you can redistribute it and/or modify
@@ -30,9 +30,7 @@
 
 /* Get ssize_t.  */
 #include <sys/types.h>
-#if HAVE_UNISTD_H
-# include <unistd.h>
-#endif
+#include <unistd.h>
 
 #include <errno.h>
 
Index: lib/same.c
===================================================================
RCS file: /cvsroot/gnulib/gnulib/lib/same.c,v
retrieving revision 1.18
diff -p -u -r1.18 same.c
--- lib/same.c  19 Sep 2005 17:28:15 -0000      1.18
+++ lib/same.c  23 Sep 2005 02:45:48 -0000
@@ -25,9 +25,7 @@
 
 #include <stdbool.h>
 #include <stdio.h>
-#ifdef HAVE_UNISTD_H
-# include <unistd.h>
-#endif
+#include <unistd.h>
 #include <stdlib.h>
 #include <sys/types.h>
 #include <sys/stat.h>
Index: lib/save-cwd.c
===================================================================
RCS file: /cvsroot/gnulib/gnulib/lib/save-cwd.c,v
retrieving revision 1.24
diff -p -u -r1.24 save-cwd.c
--- lib/save-cwd.c      19 Sep 2005 17:28:15 -0000      1.24
+++ lib/save-cwd.c      23 Sep 2005 02:45:48 -0000
@@ -25,20 +25,14 @@
 
 #include "save-cwd.h"
 
+#include <errno.h>
 #include <stdbool.h>
 #include <stdio.h>
 #include <stdlib.h>
-
-#if HAVE_UNISTD_H
-# include <unistd.h>
-#endif
-
-#include <fcntl.h>
-
-#include <errno.h>
+#include <unistd.h>
 
 #include "chdir-long.h"
-#include "unistd-safer.h"
+#include "fcntl--.h"
 #include "xgetcwd.h"
 
 /* On systems without the fchdir function (WOE), pretend that open
@@ -78,10 +72,10 @@ save_cwd (struct saved_cwd *cwd)
 {
   cwd->name = NULL;
 
-  cwd->desc = fd_safer (open (".", O_RDONLY));
+  cwd->desc = open (".", O_RDONLY);
   if (cwd->desc < 0)
     {
-      cwd->desc = fd_safer (open (".", O_WRONLY));
+      cwd->desc = open (".", O_WRONLY);
       if (cwd->desc < 0)
        {
          cwd->name = xgetcwd ();
Index: lib/settime.c
===================================================================
RCS file: /cvsroot/gnulib/gnulib/lib/settime.c,v
retrieving revision 1.4
diff -p -u -r1.4 settime.c
--- lib/settime.c       14 May 2005 06:03:58 -0000      1.4
+++ lib/settime.c       23 Sep 2005 02:45:48 -0000
@@ -1,5 +1,5 @@
 /* settime -- set the system clock
-   Copyright (C) 2002, 2004 Free Software Foundation, Inc.
+   Copyright (C) 2002, 2004, 2005 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
@@ -23,9 +23,7 @@
 
 #include "timespec.h"
 
-#if HAVE_UNISTD_H
-# include <unistd.h>
-#endif
+#include <unistd.h>
 
 #include <errno.h>
 
Index: lib/tempname.c
===================================================================
RCS file: /cvsroot/gnulib/gnulib/lib/tempname.c,v
retrieving revision 1.16
diff -p -u -r1.16 tempname.c
--- lib/tempname.c      19 Sep 2005 17:28:15 -0000      1.16
+++ lib/tempname.c      23 Sep 2005 02:45:48 -0000
@@ -60,9 +60,7 @@
 # include <inttypes.h>
 #endif
 
-#if HAVE_UNISTD_H || _LIBC
-# include <unistd.h>
-#endif
+#include <unistd.h>
 
 #include <sys/stat.h>
 
Index: lib/unlinkdir.c
===================================================================
RCS file: /cvsroot/gnulib/gnulib/lib/unlinkdir.c,v
retrieving revision 1.2
diff -p -u -r1.2 unlinkdir.c
--- lib/unlinkdir.c     19 Sep 2005 17:28:15 -0000      1.2
+++ lib/unlinkdir.c     23 Sep 2005 02:45:48 -0000
@@ -27,9 +27,7 @@
 #if HAVE_PRIV_H
 # include <priv.h>
 #endif
-#if HAVE_UNISTD_H
-# include <unistd.h>
-#endif
+#include <unistd.h>
 
 #if ! UNLINK_CANNOT_UNLINK_DIR
 
Index: lib/userspec.c
===================================================================
RCS file: /cvsroot/gnulib/gnulib/lib/userspec.c,v
retrieving revision 1.49
diff -p -u -r1.49 userspec.c
--- lib/userspec.c      19 Sep 2005 17:28:15 -0000      1.49
+++ lib/userspec.c      23 Sep 2005 02:45:48 -0000
@@ -39,9 +39,7 @@
 #include <stdlib.h>
 #include <string.h>
 
-#if HAVE_UNISTD_H
-# include <unistd.h>
-#endif
+#include <unistd.h>
 
 #include "intprops.h"
 #include "inttostr.h"
Index: lib/xgethostname.c
===================================================================
RCS file: /cvsroot/gnulib/gnulib/lib/xgethostname.c,v
retrieving revision 1.21
diff -p -u -r1.21 xgethostname.c
--- lib/xgethostname.c  14 May 2005 06:03:58 -0000      1.21
+++ lib/xgethostname.c  23 Sep 2005 02:45:48 -0000
@@ -28,10 +28,7 @@
 
 #include <stdlib.h>
 #include <errno.h>
-
-#if HAVE_UNISTD_H
-# include <unistd.h>
-#endif
+#include <unistd.h>
 
 #include "xalloc.h"
 
Index: lib/xreadlink.c
===================================================================
RCS file: /cvsroot/gnulib/gnulib/lib/xreadlink.c,v
retrieving revision 1.20
diff -p -u -r1.20 xreadlink.c
--- lib/xreadlink.c     19 Sep 2005 17:28:15 -0000      1.20
+++ lib/xreadlink.c     23 Sep 2005 02:45:48 -0000
@@ -30,9 +30,7 @@
 #include <limits.h>
 #include <sys/types.h>
 #include <stdlib.h>
-#if HAVE_UNISTD_H
-# include <unistd.h>
-#endif
+#include <unistd.h>
 
 #ifndef SIZE_MAX
 # define SIZE_MAX ((size_t) -1)
Index: m4/backupfile.m4
===================================================================
RCS file: /cvsroot/gnulib/gnulib/m4/backupfile.m4,v
retrieving revision 1.9
diff -p -u -r1.9 backupfile.m4
--- m4/backupfile.m4    8 Jul 2005 06:51:24 -0000       1.9
+++ m4/backupfile.m4    23 Sep 2005 02:45:48 -0000
@@ -1,4 +1,4 @@
-# backupfile.m4 serial 8
+# backupfile.m4 serial 9
 dnl Copyright (C) 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -14,6 +14,5 @@ AC_DEFUN([gl_BACKUPFILE],
   AC_REQUIRE([gl_CHECK_TYPE_STRUCT_DIRENT_D_INO])
   AC_REQUIRE([gl_AC_DOS])
   AC_REQUIRE([AC_SYS_LONG_FILE_NAMES])
-  AC_CHECK_HEADERS_ONCE([unistd.h])
   AC_CHECK_FUNCS_ONCE([pathconf])
 ])
Index: m4/calloc.m4
===================================================================
RCS file: /cvsroot/gnulib/gnulib/m4/calloc.m4,v
retrieving revision 1.4
diff -p -u -r1.4 calloc.m4
--- m4/calloc.m4        23 Jan 2005 08:06:57 -0000      1.4
+++ m4/calloc.m4        23 Sep 2005 02:45:48 -0000
@@ -1,6 +1,6 @@
-# calloc.m4 serial 4
+# calloc.m4 serial 5
 
-# Copyright (C) 2004 Free Software Foundation, Inc.
+# Copyright (C) 2004, 2005 Free Software Foundation, Inc.
 # This file is free software; the Free Software Foundation
 # gives unlimited permission to copy and/or distribute it,
 # with or without modifications, as long as this notice is preserved.
@@ -18,7 +18,6 @@
 AC_DEFUN([_AC_FUNC_CALLOC_IF],
 [AC_REQUIRE([AC_HEADER_STDC])dnl
 AC_REQUIRE([AC_TYPE_SIZE_T])dnl
-AC_CHECK_HEADERS(stdlib.h)
 AC_CACHE_CHECK([for GNU libc compatible calloc], ac_cv_func_calloc_0_nonnull,
 [AC_RUN_IFELSE([AC_LANG_PROGRAM([AC_INCLUDES_DEFAULT],
                  [exit (!calloc (0, 0) || calloc ((size_t) -1 / 8 + 1, 8));])],
Index: m4/canonicalize.m4
===================================================================
RCS file: /cvsroot/gnulib/gnulib/m4/canonicalize.m4,v
retrieving revision 1.5
diff -p -u -r1.5 canonicalize.m4
--- m4/canonicalize.m4  18 May 2005 19:46:16 -0000      1.5
+++ m4/canonicalize.m4  23 Sep 2005 02:45:48 -0000
@@ -1,4 +1,4 @@
-#serial 8
+#serial 9
 
 # Copyright (C) 2003, 2004, 2005 Free Software Foundation, Inc.
 # This file is free software; the Free Software Foundation
@@ -12,7 +12,6 @@ AC_DEFUN([AC_FUNC_CANONICALIZE_FILE_NAME
     AC_LIBSOURCES([canonicalize.c, canonicalize.h])
     AC_LIBOBJ([canonicalize])
 
-    AC_REQUIRE([AC_HEADER_STDC])
-    AC_CHECK_HEADERS(string.h sys/param.h)
+    AC_CHECK_HEADERS(sys/param.h)
     AC_CHECK_FUNCS(resolvepath canonicalize_file_name)
   ])
Index: m4/chown.m4
===================================================================
RCS file: /cvsroot/gnulib/gnulib/m4/chown.m4,v
retrieving revision 1.20
diff -p -u -r1.20 chown.m4
--- m4/chown.m4 2 Jul 2005 09:58:35 -0000       1.20
+++ m4/chown.m4 23 Sep 2005 02:45:48 -0000
@@ -1,4 +1,4 @@
-#serial 14
+#serial 16
 # Determine whether we need the chown wrapper.
 
 dnl Copyright (C) 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005 Free
@@ -44,9 +44,7 @@ AC_DEFUN([gl_FUNC_CHOWN_FOLLOWS_SYMLINK]
     gl_cv_func_chown_follows_symlink,
     [
       AC_RUN_IFELSE([AC_LANG_SOURCE([[
-#ifdef HAVE_UNISTD_H
-# include <unistd.h>
-#endif
+#include <unistd.h>
 #include <stdlib.h>
 #include <errno.h>
 
@@ -81,6 +79,5 @@ AC_DEFUN([gl_FUNC_CHOWN_FOLLOWS_SYMLINK]
 # Prerequisites of lib/chown.c.
 AC_DEFUN([gl_PREREQ_CHOWN],
 [
-  AC_CHECK_HEADERS_ONCE(unistd.h)
   AC_CHECK_FUNC([fchown], , [AC_LIBOBJ(fchown-stub)])
 ])
Index: m4/cloexec.m4
===================================================================
RCS file: /cvsroot/gnulib/gnulib/m4/cloexec.m4,v
retrieving revision 1.4
diff -p -u -r1.4 cloexec.m4
--- m4/cloexec.m4       2 Jul 2005 09:58:35 -0000       1.4
+++ m4/cloexec.m4       23 Sep 2005 02:45:48 -0000
@@ -1,4 +1,4 @@
-#serial 4
+#serial 5
 dnl Copyright (C) 2004, 2005 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -8,7 +8,4 @@ AC_DEFUN([gl_CLOEXEC],
 [
   AC_LIBSOURCES([cloexec.c, cloexec.h])
   AC_LIBOBJ([cloexec])
-
-  dnl Prerequisites of lib/cloexec.c.
-  AC_CHECK_HEADERS_ONCE(unistd.h)
 ])
Index: m4/dup2.m4
===================================================================
RCS file: /cvsroot/gnulib/gnulib/m4/dup2.m4,v
retrieving revision 1.3
diff -p -u -r1.3 dup2.m4
--- m4/dup2.m4  2 Jul 2005 09:58:35 -0000       1.3
+++ m4/dup2.m4  23 Sep 2005 02:45:48 -0000
@@ -1,4 +1,4 @@
-#serial 3
+#serial 4
 dnl Copyright (C) 2002, 2005 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -7,12 +7,4 @@ dnl with or without modifications, as lo
 AC_DEFUN([gl_FUNC_DUP2],
 [
   AC_REPLACE_FUNCS(dup2)
-  if test $ac_cv_func_dup2 = no; then
-    gl_PREREQ_DUP2
-  fi
-])
-
-# Prerequisites of lib/dup2.c.
-AC_DEFUN([gl_PREREQ_DUP2], [
-  AC_CHECK_HEADERS_ONCE(unistd.h)
 ])
Index: m4/fileblocks.m4
===================================================================
RCS file: /cvsroot/gnulib/gnulib/m4/fileblocks.m4,v
retrieving revision 1.2
diff -p -u -r1.2 fileblocks.m4
--- m4/fileblocks.m4    23 Jan 2005 08:06:57 -0000      1.2
+++ m4/fileblocks.m4    23 Sep 2005 02:45:48 -0000
@@ -1,5 +1,5 @@
-# fileblocks.m4 serial 2
-dnl Copyright (C) 2002 Free Software Foundation, Inc.
+# fileblocks.m4 serial 3
+dnl Copyright (C) 2002, 2005 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
 dnl with or without modifications, as long as this notice is preserved.
@@ -15,5 +15,5 @@ AC_DEFUN([gl_FILEBLOCKS],
 
 # Prerequisites of lib/fileblocks.c.
 AC_DEFUN([gl_PREREQ_FILEBLOCKS], [
-  AC_CHECK_HEADERS_ONCE(sys/param.h unistd.h)
+  AC_CHECK_HEADERS_ONCE(sys/param.h)
 ])
Index: m4/free.m4
===================================================================
RCS file: /cvsroot/gnulib/gnulib/m4/free.m4,v
retrieving revision 1.3
diff -p -u -r1.3 free.m4
--- m4/free.m4  23 Jan 2005 08:06:57 -0000      1.3
+++ m4/free.m4  23 Sep 2005 02:45:48 -0000
@@ -1,6 +1,6 @@
 # Check whether free (NULL) is supposed to work.
 
-# Copyright (C) 2003, 2004 Free Software Foundation, Inc.
+# Copyright (C) 2003, 2004, 2005 Free Software Foundation, Inc.
 # This file is free software; the Free Software Foundation
 # gives unlimited permission to copy and/or distribute it,
 # with or without modifications, as long as this notice is preserved.
@@ -16,14 +16,11 @@
 
 AC_DEFUN([gl_FUNC_FREE],
 [
-  AC_CHECK_HEADERS_ONCE(unistd.h)
   AC_CACHE_CHECK([whether free (NULL) is known to work],
     [gl_cv_func_free],
     [AC_COMPILE_IFELSE(
        [AC_LANG_PROGRAM(
-         address@hidden:@if HAVE_UNISTD_H
-             @%:@include <unistd.h>
-           @%:@endif]],
+         address@hidden:@include <unistd.h>]],
          address@hidden:@if _POSIX_VERSION < 199009L && \
                (defined unix || defined _unix || defined _unix_ \
                 || defined __unix || defined __unix__)
Index: m4/ftruncate.m4
===================================================================
RCS file: /cvsroot/gnulib/gnulib/m4/ftruncate.m4,v
retrieving revision 1.8
diff -p -u -r1.8 ftruncate.m4
--- m4/ftruncate.m4     23 Jan 2005 08:06:57 -0000      1.8
+++ m4/ftruncate.m4     23 Sep 2005 02:45:48 -0000
@@ -1,8 +1,8 @@
-#serial 7
+#serial 8
 
 # See if we need to emulate a missing ftruncate function using fcntl or chsize.
 
-# Copyright (C) 2000, 2001, 2003, 2004 Free Software Foundation, Inc.
+# Copyright (C) 2000, 2001, 2003, 2004, 2005 Free Software Foundation, Inc.
 # This file is free software; the Free Software Foundation
 # gives unlimited permission to copy and/or distribute it,
 # with or without modifications, as long as this notice is preserved.
@@ -18,6 +18,5 @@ AC_DEFUN([gl_FUNC_FTRUNCATE],
 # Prerequisites of lib/ftruncate.c.
 AC_DEFUN([gl_PREREQ_FTRUNCATE],
 [
-  AC_CHECK_HEADERS_ONCE(unistd.h)
   AC_CHECK_FUNCS(chsize)
 ])
Index: m4/fts.m4
===================================================================
RCS file: /cvsroot/gnulib/gnulib/m4/fts.m4,v
retrieving revision 1.5
diff -p -u -r1.5 fts.m4
--- m4/fts.m4   27 May 2005 23:59:21 -0000      1.5
+++ m4/fts.m4   23 Sep 2005 02:45:48 -0000
@@ -1,4 +1,4 @@
-#serial 5
+#serial 6
 dnl Copyright (C) 2005 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -31,7 +31,4 @@ AC_DEFUN([gl_FUNC_FTS_CORE],
   # Checks for header files.
   AC_REQUIRE([AC_HEADER_DIRENT])
   AC_CHECK_HEADERS_ONCE([sys/param.h])
-
-  # Checks for library functions.
-  AC_REQUIRE([AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK])
 ])
Index: m4/getcwd.m4
===================================================================
RCS file: /cvsroot/gnulib/gnulib/m4/getcwd.m4,v
retrieving revision 1.8
diff -p -u -r1.8 getcwd.m4
--- m4/getcwd.m4        2 Jul 2005 09:58:35 -0000       1.8
+++ m4/getcwd.m4        23 Sep 2005 02:45:48 -0000
@@ -11,15 +11,12 @@ AC_DEFUN([gl_FUNC_GETCWD_NULL],
   [
    AC_LIBSOURCES([getcwd.c, getcwd.h])
 
-   AC_CHECK_HEADERS_ONCE(unistd.h)
    AC_CACHE_CHECK([whether getcwd (NULL, 0) allocates memory for result],
      [gl_cv_func_getcwd_null],
      [AC_TRY_RUN(
         [
 #       include <stdlib.h>
-#       ifdef HAVE_UNISTD_H
-#        include <unistd.h>
-#       endif
+#       include <unistd.h>
 #       ifndef getcwd
         char *getcwd ();
 #       endif
Index: m4/getpagesize.m4
===================================================================
RCS file: /cvsroot/gnulib/gnulib/m4/getpagesize.m4,v
retrieving revision 1.4
diff -p -u -r1.4 getpagesize.m4
--- m4/getpagesize.m4   21 Mar 2005 22:06:27 -0000      1.4
+++ m4/getpagesize.m4   23 Sep 2005 02:45:48 -0000
@@ -1,4 +1,4 @@
-# getpagesize.m4 serial 4
+# getpagesize.m4 serial 5
 dnl Copyright (C) 2002, 2004, 2005 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -9,7 +9,7 @@ AC_DEFUN([gl_GETPAGESIZE],
   AC_LIBSOURCES([getpagesize.h])
 
   dnl Prerequisites of lib/getpagesize.h.
-  AC_CHECK_HEADERS_ONCE(sys/param.h unistd.h)
+  AC_CHECK_HEADERS_ONCE(sys/param.h)
   AC_CHECK_HEADERS(OS.h)
   AC_CHECK_FUNCS(getpagesize)
 ])
Index: m4/getugroups.m4
===================================================================
RCS file: /cvsroot/gnulib/gnulib/m4/getugroups.m4,v
retrieving revision 1.4
diff -p -u -r1.4 getugroups.m4
--- m4/getugroups.m4    21 Mar 2005 22:06:27 -0000      1.4
+++ m4/getugroups.m4    23 Sep 2005 02:45:48 -0000
@@ -1,4 +1,4 @@
-# getugroups.m4 serial 4
+# getugroups.m4 serial 5
 dnl Copyright (C) 2002, 2003, 2005 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -10,6 +10,5 @@ AC_DEFUN([gl_GETUGROUPS],
   AC_LIBOBJ([getugroups])
 
   dnl Prerequisites of lib/getugroups.c.
-  AC_CHECK_HEADERS_ONCE(unistd.h)
   AC_TYPE_GETGROUPS
 ])
Index: m4/group-member.m4
===================================================================
RCS file: /cvsroot/gnulib/gnulib/m4/group-member.m4,v
retrieving revision 1.9
diff -p -u -r1.9 group-member.m4
--- m4/group-member.m4  21 Mar 2005 22:06:27 -0000      1.9
+++ m4/group-member.m4  23 Sep 2005 02:45:48 -0000
@@ -1,4 +1,4 @@
-#serial 8
+#serial 9
 
 # Copyright (C) 1999, 2000, 2001, 2003, 2004, 2005 Free Software Foundation, 
Inc.
 # This file is free software; the Free Software Foundation
@@ -25,6 +25,5 @@ AC_DEFUN([gl_FUNC_GROUP_MEMBER],
 # Prerequisites of lib/group-member.c.
 AC_DEFUN([gl_PREREQ_GROUP_MEMBER],
 [
-  AC_CHECK_HEADERS_ONCE(unistd.h)
   AC_REQUIRE([AC_FUNC_GETGROUPS])
 ])
Index: m4/idcache.m4
===================================================================
RCS file: /cvsroot/gnulib/gnulib/m4/idcache.m4,v
retrieving revision 1.4
diff -p -u -r1.4 idcache.m4
--- m4/idcache.m4       21 Mar 2005 22:06:27 -0000      1.4
+++ m4/idcache.m4       23 Sep 2005 02:45:48 -0000
@@ -1,4 +1,4 @@
-# idcache.m4 serial 4
+# idcache.m4 serial 5
 dnl Copyright (C) 2002, 2003, 2005 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -8,7 +8,4 @@ AC_DEFUN([gl_IDCACHE],
 [
   AC_LIBSOURCES([idcache.c])
   AC_LIBOBJ([idcache])
-
-  dnl Prerequisites of lib/idcache.c.
-  AC_CHECK_HEADERS_ONCE(unistd.h)
 ])
Index: m4/link-follow.m4
===================================================================
RCS file: /cvsroot/gnulib/gnulib/m4/link-follow.m4,v
retrieving revision 1.10
diff -p -u -r1.10 link-follow.m4
--- m4/link-follow.m4   23 Jan 2005 08:06:57 -0000      1.10
+++ m4/link-follow.m4   23 Sep 2005 02:45:48 -0000
@@ -1,8 +1,8 @@
-#serial 5
+#serial 7
 dnl Run a program to determine whether whether link(2) follows symlinks.
 dnl Set LINK_FOLLOWS_SYMLINKS accordingly.
 
-# Copyright (C) 1999, 2000, 2001, 2004 Free Software Foundation, Inc.
+# Copyright (C) 1999, 2000, 2001, 2004, 2005 Free Software Foundation, Inc.
 # This file is free software; the Free Software Foundation
 # gives unlimited permission to copy and/or distribute it,
 # with or without modifications, as long as this notice is preserved.
@@ -13,20 +13,13 @@ AC_DEFUN([gl_AC_FUNC_LINK_FOLLOWS_SYMLIN
     [whether link(2) dereferences a symlink specified with a trailing slash],
                 jm_ac_cv_func_link_follows_symlink,
   [
-    dnl poor-man's AC_REQUIRE: FIXME: repair this once autoconf-3 provides
-    dnl the appropriate framework.
-    test -z "$ac_cv_header_unistd_h" \
-      && AC_CHECK_HEADERS(unistd.h)
-
     # Create a regular file.
     echo > conftest.file
     AC_TRY_RUN(
       [
 #       include <sys/types.h>
 #       include <sys/stat.h>
-#       ifdef HAVE_UNISTD_H
-#        include <unistd.h>
-#       endif
+#       include <unistd.h>
 
 #       define SAME_INODE(Stat_buf_1, Stat_buf_2) \
          ((Stat_buf_1).st_ino == (Stat_buf_2).st_ino \
Index: m4/lstat.m4
===================================================================
RCS file: /cvsroot/gnulib/gnulib/m4/lstat.m4,v
retrieving revision 1.21
diff -p -u -r1.21 lstat.m4
--- m4/lstat.m4 24 Jun 2005 14:53:04 -0000      1.21
+++ m4/lstat.m4 23 Sep 2005 02:45:48 -0000
@@ -1,4 +1,4 @@
-#serial 13
+#serial 14
 
 # Copyright (C) 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005 Free Software
 # Foundation, Inc.
@@ -8,16 +8,11 @@
 # with or without modifications, as long as this notice is preserved.
 
 dnl From Jim Meyering.
-dnl Determine whether lstat has the bug that it succeeds when given the
-dnl zero-length file name argument.  The lstat from SunOS 4.1.4 and the Hurd
-dnl (as of 1998-11-01) do this.
-dnl
-dnl If it does, then define HAVE_LSTAT_EMPTY_STRING_BUG and arrange to
-dnl compile the wrapper function.
-dnl
 
 AC_DEFUN([gl_FUNC_LSTAT],
 [
+  AC_LIBSOURCES([lstat.c, lstat.h])
+
   AC_REQUIRE([AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK])
   dnl Note: AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK does AC_LIBOBJ(lstat).
   :
Index: m4/mkstemp.m4
===================================================================
RCS file: /cvsroot/gnulib/gnulib/m4/mkstemp.m4,v
retrieving revision 1.15
diff -p -u -r1.15 mkstemp.m4
--- m4/mkstemp.m4       2 Jul 2005 09:58:35 -0000       1.15
+++ m4/mkstemp.m4       23 Sep 2005 02:45:48 -0000
@@ -1,4 +1,4 @@
-#serial 11
+#serial 12
 
 # Copyright (C) 2001, 2003, 2004, 2005 Free Software Foundation, Inc.
 # This file is free software; the Free Software Foundation
@@ -65,7 +65,7 @@ AC_DEFUN([gl_PREREQ_MKSTEMP],
 # Prerequisites of lib/tempname.c.
 AC_DEFUN([gl_PREREQ_TEMPNAME],
 [
-  AC_CHECK_HEADERS_ONCE(sys/time.h stdint.h unistd.h)
+  AC_CHECK_HEADERS_ONCE(sys/time.h)
   AC_CHECK_FUNCS(__secure_getenv gettimeofday)
   AC_CHECK_DECLS_ONCE(getenv)
   AC_REQUIRE([gl_AC_TYPE_UINTMAX_T])
Index: m4/mktime.m4
===================================================================
RCS file: /cvsroot/gnulib/gnulib/m4/mktime.m4,v
retrieving revision 1.23
diff -p -u -r1.23 mktime.m4
--- m4/mktime.m4        23 Jan 2005 08:06:57 -0000      1.23
+++ m4/mktime.m4        23 Sep 2005 02:45:48 -0000
@@ -1,5 +1,5 @@
-# mktime.m4 serial 5
-dnl Copyright (C) 2002, 2003 Free Software Foundation, Inc.
+#serial 7
+dnl Copyright (C) 2002, 2003, 2005 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
 dnl with or without modifications, as long as this notice is preserved.
@@ -14,8 +14,8 @@ dnl From Jim Meyering.
 # --------------
 AC_DEFUN([AC_FUNC_MKTIME],
 [AC_REQUIRE([AC_HEADER_TIME])dnl
-AC_CHECK_HEADERS(stdlib.h sys/time.h unistd.h)
-AC_CHECK_FUNCS(alarm)
+AC_CHECK_HEADERS_ONCE(sys/time.h)
+AC_CHECK_FUNCS_ONCE(alarm)
 AC_CACHE_CHECK([for working mktime], ac_cv_func_working_mktime,
 [AC_RUN_IFELSE([AC_LANG_SOURCE(
 [[/* Test program from Paul Eggert and Tony Leneis.  */
@@ -30,13 +30,8 @@ AC_CACHE_CHECK([for working mktime], ac_
 # endif
 #endif
 
-#if HAVE_STDLIB_H
-# include <stdlib.h>
-#endif
-
-#if HAVE_UNISTD_H
-# include <unistd.h>
-#endif
+#include <stdlib.h>
+#include <unistd.h>
 
 #if !HAVE_ALARM
 # define alarm(X) /* empty */
Index: m4/mountlist.m4
===================================================================
RCS file: /cvsroot/gnulib/gnulib/m4/mountlist.m4,v
retrieving revision 1.8
diff -p -u -r1.8 mountlist.m4
--- m4/mountlist.m4     2 Jul 2005 09:58:35 -0000       1.8
+++ m4/mountlist.m4     23 Sep 2005 02:45:48 -0000
@@ -1,4 +1,4 @@
-#serial 7
+#serial 8
 dnl Copyright (C) 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -20,7 +20,6 @@ AC_DEFUN([gl_MOUNTLIST],
 AC_DEFUN([gl_PREREQ_MOUNTLIST_EXTRA],
 [
   dnl Note gl_LIST_MOUNTED_FILE_SYSTEMS checks for mntent.h, not sys/mntent.h.
-  AC_CHECK_HEADERS_ONCE(unistd.h)
   AC_CHECK_HEADERS(sys/mntent.h)
   gl_FSTYPENAME
 ])
Index: m4/nanosleep.m4
===================================================================
RCS file: /cvsroot/gnulib/gnulib/m4/nanosleep.m4,v
retrieving revision 1.20
diff -p -u -r1.20 nanosleep.m4
--- m4/nanosleep.m4     2 May 2005 07:00:50 -0000       1.20
+++ m4/nanosleep.m4     23 Sep 2005 02:45:48 -0000
@@ -1,4 +1,4 @@
-#serial 13
+#serial 14
 
 dnl From Jim Meyering.
 dnl Check for the nanosleep function.
@@ -67,6 +67,5 @@ AC_DEFUN([gl_FUNC_NANOSLEEP],
 # Prerequisites of lib/nanosleep.c.
 AC_DEFUN([gl_PREREQ_NANOSLEEP],
 [
-  AC_CHECK_HEADERS_ONCE(unistd.h)
   AC_CHECK_FUNCS_ONCE(siginterrupt)
 ])
Index: m4/pathmax.m4
===================================================================
RCS file: /cvsroot/gnulib/gnulib/m4/pathmax.m4,v
retrieving revision 1.4
diff -p -u -r1.4 pathmax.m4
--- m4/pathmax.m4       21 Mar 2005 22:06:27 -0000      1.4
+++ m4/pathmax.m4       23 Sep 2005 02:45:48 -0000
@@ -1,4 +1,4 @@
-# pathmax.m4 serial 4
+# pathmax.m4 serial 5
 dnl Copyright (C) 2002, 2003, 2005 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -9,5 +9,5 @@ AC_DEFUN([gl_PATHMAX],
   AC_LIBSOURCES([pathmax.h])
 
   dnl Prerequisites of lib/pathmax.h.
-  AC_CHECK_HEADERS_ONCE(sys/param.h unistd.h)
+  AC_CHECK_HEADERS_ONCE(sys/param.h)
 ])
Index: m4/physmem.m4
===================================================================
RCS file: /cvsroot/gnulib/gnulib/m4/physmem.m4,v
retrieving revision 1.4
diff -p -u -r1.4 physmem.m4
--- m4/physmem.m4       21 Mar 2005 22:06:27 -0000      1.4
+++ m4/physmem.m4       23 Sep 2005 02:45:49 -0000
@@ -1,4 +1,4 @@
-# physmem.m4 serial 4
+# physmem.m4 serial 5
 dnl Copyright (C) 2002, 2003, 2005 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -30,7 +30,6 @@ AC_DEFUN([gl_PHYSMEM],
   AC_LIBOBJ([physmem])
 
   # Prerequisites of lib/physmem.c.
-  AC_CHECK_HEADERS_ONCE(unistd.h)
   AC_CHECK_HEADERS([sys/pstat.h sys/sysmp.h sys/sysinfo.h \
     machine/hal_sysinfo.h sys/table.h sys/param.h sys/sysctl.h \
     sys/systemcfg.h],,, [AC_INCLUDES_DEFAULT])
Index: m4/posixver.m4
===================================================================
RCS file: /cvsroot/gnulib/gnulib/m4/posixver.m4,v
retrieving revision 1.5
diff -p -u -r1.5 posixver.m4
--- m4/posixver.m4      21 Mar 2005 22:06:27 -0000      1.5
+++ m4/posixver.m4      23 Sep 2005 02:45:49 -0000
@@ -1,4 +1,4 @@
-# posixver.m4 serial 6
+# posixver.m4 serial 7
 dnl Copyright (C) 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -9,7 +9,6 @@ AC_DEFUN([gl_POSIXVER],
   AC_LIBSOURCES([posixver.c, posixver.h])
   AC_LIBOBJ([posixver])
 
-  AC_CHECK_HEADERS_ONCE(unistd.h)
   AC_REQUIRE([gl_DEFAULT_POSIX2_VERSION])
 ])
 
Index: m4/putenv.m4
===================================================================
RCS file: /cvsroot/gnulib/gnulib/m4/putenv.m4,v
retrieving revision 1.15
diff -p -u -r1.15 putenv.m4
--- m4/putenv.m4        23 Jan 2005 08:06:57 -0000      1.15
+++ m4/putenv.m4        23 Sep 2005 02:45:49 -0000
@@ -1,5 +1,5 @@
-# putenv.m4 serial 9
-dnl Copyright (C) 2002, 2003, 2004 Free Software Foundation, Inc.
+# putenv.m4 serial 10
+dnl Copyright (C) 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
 dnl with or without modifications, as long as this notice is preserved.
@@ -39,11 +39,5 @@ AC_DEFUN([gl_FUNC_PUTENV],
     AC_LIBOBJ(putenv)
     AC_DEFINE(putenv, rpl_putenv,
       [Define to rpl_putenv if the replacement function should be used.])
-    gl_PREREQ_PUTENV
   fi
-])
-
-# Prerequisites of lib/putenv.c.
-AC_DEFUN([gl_PREREQ_PUTENV], [
-  AC_CHECK_HEADERS_ONCE(unistd.h)
 ])
Index: m4/safe-read.m4
===================================================================
RCS file: /cvsroot/gnulib/gnulib/m4/safe-read.m4,v
retrieving revision 1.4
diff -p -u -r1.4 safe-read.m4
--- m4/safe-read.m4     21 Mar 2005 22:06:27 -0000      1.4
+++ m4/safe-read.m4     23 Sep 2005 02:45:49 -0000
@@ -1,4 +1,4 @@
-# safe-read.m4 serial 3
+# safe-read.m4 serial 4
 dnl Copyright (C) 2002-2003, 2005 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -16,5 +16,4 @@ AC_DEFUN([gl_SAFE_READ],
 AC_DEFUN([gl_PREREQ_SAFE_READ],
 [
   AC_REQUIRE([gt_TYPE_SSIZE_T])
-  AC_CHECK_HEADERS_ONCE(unistd.h)
 ])
Index: m4/same.m4
===================================================================
RCS file: /cvsroot/gnulib/gnulib/m4/same.m4,v
retrieving revision 1.6
diff -p -u -r1.6 same.m4
--- m4/same.m4  8 Jul 2005 06:51:25 -0000       1.6
+++ m4/same.m4  23 Sep 2005 02:45:49 -0000
@@ -1,4 +1,4 @@
-# same.m4 serial 5
+# same.m4 serial 6
 dnl Copyright (C) 2002, 2003, 2005 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -11,6 +11,5 @@ AC_DEFUN([gl_SAME],
 
   dnl Prerequisites of lib/same.c.
   AC_REQUIRE([AC_SYS_LONG_FILE_NAMES])
-  AC_CHECK_HEADERS_ONCE([unistd.h])
   AC_CHECK_FUNCS_ONCE([pathconf])
 ])
Index: m4/save-cwd.m4
===================================================================
RCS file: /cvsroot/gnulib/gnulib/m4/save-cwd.m4,v
retrieving revision 1.6
diff -p -u -r1.6 save-cwd.m4
--- m4/save-cwd.m4      2 Jul 2005 09:58:35 -0000       1.6
+++ m4/save-cwd.m4      23 Sep 2005 02:45:49 -0000
@@ -1,4 +1,4 @@
-#serial 6
+#serial 7
 dnl Copyright (C) 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -10,5 +10,4 @@ AC_DEFUN([gl_SAVE_CWD],
   AC_LIBOBJ([save-cwd])
   dnl Prerequisites for lib/save-cwd.c.
   AC_CHECK_FUNCS_ONCE(fchdir)
-  AC_CHECK_HEADERS_ONCE(unistd.h)
 ])
Index: m4/stdio-safer.m4
===================================================================
RCS file: /cvsroot/gnulib/gnulib/m4/stdio-safer.m4,v
retrieving revision 1.5
diff -p -u -r1.5 stdio-safer.m4
--- m4/stdio-safer.m4   27 Aug 2005 20:38:27 -0000      1.5
+++ m4/stdio-safer.m4   23 Sep 2005 02:45:49 -0000
@@ -1,4 +1,4 @@
-#serial 4
+#serial 5
 dnl Copyright (C) 2002, 2005 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -8,7 +8,4 @@ AC_DEFUN([gl_STDIO_SAFER],
 [
   AC_LIBSOURCES([fopen-safer.c, stdio-safer.h, stdio--.h])
   AC_LIBOBJ([fopen-safer])
-
-  dnl Prerequisites of lib/fopen-safer.c.
-  AC_CHECK_HEADERS_ONCE(unistd.h)
 ])
Index: m4/unistd-safer.m4
===================================================================
RCS file: /cvsroot/gnulib/gnulib/m4/unistd-safer.m4,v
retrieving revision 1.6
diff -p -u -r1.6 unistd-safer.m4
--- m4/unistd-safer.m4  27 Aug 2005 20:35:21 -0000      1.6
+++ m4/unistd-safer.m4  23 Sep 2005 02:45:49 -0000
@@ -1,4 +1,4 @@
-#serial 6
+#serial 7
 dnl Copyright (C) 2002, 2005 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -10,17 +10,4 @@ AC_DEFUN([gl_UNISTD_SAFER],
   AC_LIBOBJ([dup-safer])
   AC_LIBOBJ([fd-safer])
   AC_LIBOBJ([pipe-safer])
-
-  gl_PREREQ_DUP_SAFER
-  gl_PREREQ_FD_SAFER
-])
-
-# Prerequisites of lib/dup-safer.c.
-AC_DEFUN([gl_PREREQ_DUP_SAFER], [
-  AC_CHECK_HEADERS_ONCE(unistd.h)
-])
-
-# Prerequisites of lib/fd-safer.c.
-AC_DEFUN([gl_PREREQ_FD_SAFER], [
-  AC_CHECK_HEADERS_ONCE(unistd.h)
 ])
Index: m4/unlinkdir.m4
===================================================================
RCS file: /cvsroot/gnulib/gnulib/m4/unlinkdir.m4,v
retrieving revision 1.1
diff -p -u -r1.1 unlinkdir.m4
--- m4/unlinkdir.m4     15 May 2005 06:11:33 -0000      1.1
+++ m4/unlinkdir.m4     23 Sep 2005 02:45:49 -0000
@@ -1,4 +1,4 @@
-#serial 2
+#serial 3
 
 # Copyright (C) 2005 Free Software Foundation, Inc.
 #
@@ -11,7 +11,7 @@
 AC_DEFUN([gl_UNLINKDIR],
 [
   AC_REQUIRE([AC_CANONICAL_HOST])
-  AC_CHECK_HEADERS_ONCE(priv.h unistd.h)
+  AC_CHECK_HEADERS_ONCE(priv.h)
 
   AC_LIBSOURCES([unlinkdir.c, unlinkdir.h])
   AC_LIBOBJ([unlinkdir])
Index: m4/userspec.m4
===================================================================
RCS file: /cvsroot/gnulib/gnulib/m4/userspec.m4,v
retrieving revision 1.7
diff -p -u -r1.7 userspec.m4
--- m4/userspec.m4      21 Mar 2005 22:06:27 -0000      1.7
+++ m4/userspec.m4      23 Sep 2005 02:45:49 -0000
@@ -1,4 +1,4 @@
-#serial 7
+#serial 8
 dnl Copyright (C) 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -10,5 +10,5 @@ AC_DEFUN([gl_USERSPEC],
   AC_LIBOBJ([userspec])
 
   dnl Prerequisites of lib/userspec.c.
-  AC_CHECK_HEADERS_ONCE(sys/param.h unistd.h)
+  AC_CHECK_HEADERS_ONCE(sys/param.h)
 ])
Index: m4/xgetcwd.m4
===================================================================
RCS file: /cvsroot/gnulib/gnulib/m4/xgetcwd.m4,v
retrieving revision 1.5
diff -p -u -r1.5 xgetcwd.m4
--- m4/xgetcwd.m4       24 Aug 2005 06:21:29 -0000      1.5
+++ m4/xgetcwd.m4       23 Sep 2005 02:45:49 -0000
@@ -1,4 +1,4 @@
-# xgetcwd.m4 serial 4
+#serial 5
 dnl Copyright (C) 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
Index: m4/xreadlink.m4
===================================================================
RCS file: /cvsroot/gnulib/gnulib/m4/xreadlink.m4,v
retrieving revision 1.6
diff -p -u -r1.6 xreadlink.m4
--- m4/xreadlink.m4     23 Jan 2005 08:06:57 -0000      1.6
+++ m4/xreadlink.m4     23 Sep 2005 02:45:49 -0000
@@ -1,12 +1,14 @@
-# xreadlink.m4 serial 5
-dnl Copyright (C) 2002, 2003 Free Software Foundation, Inc.
+#serial 7
+dnl Copyright (C) 2002, 2003, 2005 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
 dnl with or without modifications, as long as this notice is preserved.
 
 AC_DEFUN([gl_XREADLINK],
 [
+  AC_LIBSOURCES([xreadlink.c, xreadlink.h])
+  AC_LIBOBJ([xreadlink])
+
   dnl Prerequisites of lib/xreadlink.c.
   AC_REQUIRE([gt_TYPE_SSIZE_T])
-  AC_CHECK_HEADERS_ONCE(unistd.h)
 ])
Index: m4/xstrtod.m4
===================================================================
RCS file: /cvsroot/gnulib/gnulib/m4/xstrtod.m4,v
retrieving revision 1.3
diff -p -u -r1.3 xstrtod.m4
--- m4/xstrtod.m4       23 Jan 2005 08:06:57 -0000      1.3
+++ m4/xstrtod.m4       23 Sep 2005 02:45:49 -0000
@@ -1,5 +1,5 @@
-# xstrtod.m4 serial 3
-dnl Copyright (C) 2002, 2003 Free Software Foundation, Inc.
+#serial 4
+dnl Copyright (C) 2002, 2003, 2005 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
 dnl with or without modifications, as long as this notice is preserved.
@@ -7,5 +7,6 @@ dnl with or without modifications, as lo
 # Prerequisites of lib/xstrtod.c.
 AC_DEFUN([gl_XSTRTOD],
 [
-  :
+  AC_LIBSOURCES([xstrtod.c, xstrtod.h])
+  AC_LIBOBJ([xstrtod])
 ])
Index: modules/argmatch
===================================================================
RCS file: /cvsroot/gnulib/gnulib/modules/argmatch,v
retrieving revision 1.10
diff -p -u -r1.10 argmatch
--- modules/argmatch    6 Jul 2005 15:58:47 -0000       1.10
+++ modules/argmatch    23 Sep 2005 02:45:49 -0000
@@ -12,6 +12,7 @@ quotearg
 quote
 exit
 exitfail
+verify
 stdbool
 
 configure.ac:
Index: modules/getloadavg
===================================================================
RCS file: /cvsroot/gnulib/gnulib/modules/getloadavg,v
retrieving revision 1.9
diff -p -u -r1.9 getloadavg
--- modules/getloadavg  6 May 2005 17:22:45 -0000       1.9
+++ modules/getloadavg  23 Sep 2005 02:45:49 -0000
@@ -10,7 +10,7 @@ cloexec
 xalloc
 c-strtod
 stdbool
-unistd-safer
+fcntl-safer
 
 configure.ac:
 AC_FUNC_GETLOADAVG
Index: modules/save-cwd
===================================================================
RCS file: /cvsroot/gnulib/gnulib/modules/save-cwd,v
retrieving revision 1.9
diff -p -u -r1.9 save-cwd
--- modules/save-cwd    6 May 2005 17:22:45 -0000       1.9
+++ modules/save-cwd    23 Sep 2005 02:45:49 -0000
@@ -8,7 +8,7 @@ m4/save-cwd.m4
 
 Depends-on:
 chdir-long
-unistd-safer
+fcntl-safer
 xgetcwd
 stdbool
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]