+2009-09-17 Eric Blake <ebb9@byu.net>
+
+ canonicalize, canonicalize-lgpl: update module dependencies
+ * modules/canonicalize (Depends-on): Add extensions, lstat,
+ pathmax, stdlib.
+ (Files): Drop pathmax.h.
+ (configure.ac): Adjust macro name.
+ * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
+ lstat, stdlib, sys_stat.
+ * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
+ (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
+ extensions.
+ * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
+ (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
+ (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
+ * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
+ declaration, if available.
+ * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
+ we can rely on the readlink module.
+ (MAXSYMLINKS): Also consult SYMLOOP_MAX.
+ (includes): Use <unistd.h> unconditionally.
+
+2009-09-17 Eric Blake <ebb9@byu.net>
+
+ maint: make Include sections of modules consistent
+ * modules/alloca: Use only header name; no need to list #include.
+ * modules/alloca-opt: Likewise.
+ * modules/arpa_inet: Likewise.
+ * modules/canon-host: Likewise.
+ * modules/configmake: Likewise.
+ * modules/dirent: Likewise.
+ * modules/eealloc: Likewise.
+ * modules/environ: Likewise.
+ * modules/fchdir: Likewise.
+ * modules/fcntl: Likewise.
+ * modules/fcntl-h: Likewise.
+ * modules/gethrxtime: Likewise.
+ * modules/gettime: Likewise.
+ * modules/ignore-value: Likewise.
+ * modules/inet_ntop: Likewise.
+ * modules/inet_pton: Likewise.
+ * modules/inttypes: Likewise.
+ * modules/isnand-nolibm: Likewise.
+ * modules/isnanf-nolibm: Likewise.
+ * modules/mbchar: Likewise.
+ * modules/mbfile: Likewise.
+ * modules/mbiter: Likewise.
+ * modules/mbuiter: Likewise.
+ * modules/netdb: Likewise.
+ * modules/netinet_in: Likewise.
+ * modules/nproc: Likewise.
+ * modules/pagealign_alloc: Likewise.
+ * modules/poll: Likewise.
+ * modules/printf-frexp: Likewise.
+ * modules/pthread: Likewise.
+ * modules/putenv: Likewise.
+ * modules/random_r: Likewise.
+ * modules/relocatable-prog: Likewise.
+ * modules/search: Likewise.
+ * modules/select: Likewise.
+ * modules/selinux-h: Likewise.
+ * modules/settime: Likewise.
+ * modules/signal: Likewise.
+ * modules/size_max: Likewise.
+ * modules/socklen: Likewise.
+ * modules/ssize_t: Likewise.
+ * modules/stdarg: Likewise.
+ * modules/stdbool: Likewise.
+ * modules/stddef: Likewise.
+ * modules/stdint: Likewise.
+ * modules/stdio: Likewise.
+ * modules/stdlib: Likewise.
+ * modules/string: Likewise.
+ * modules/strings: Likewise.
+ * modules/sys_file: Likewise.
+ * modules/sys_ioctl: Likewise.
+ * modules/sys_select: Likewise.
+ * modules/sys_socket: Likewise.
+ * modules/sys_stat: Likewise.
+ * modules/sys_time: Likewise.
+ * modules/sys_times: Likewise.
+ * modules/sys_utsname: Likewise.
+ * modules/sys_wait: Likewise.
+ * modules/sysexits: Likewise.
+ * modules/time: Likewise.
+ * modules/times: Likewise.
+ * modules/tmpfile: Likewise.
+ * modules/trim: Likewise.
+ * modules/unistd: Likewise.
+ * modules/wchar: Likewise.
+ * modules/wctype: Likewise.
+
+2009-09-17 Bruno Haible <bruno@clisp.org>
+
+ Make getdate.y compile on QNX and NetBSD 5 / i386.
+ * m4/getdate.m4 (gl_GETDATE): Conditionally define
+ TIME_T_FITS_IN_LONG_INT.
+ * lib/getdate.y (long_time_t): New type.
+ (relative_time): Change type of 'seconds' field to long_time_t.
+ (get_date): Update types of local variables. Check against overflow
+ during conversion from long_time_t to time_t.
+ Reported by Matt Kraai <kraai@ftbfs.org>
+ and Hasso Tepper <hasso@netbsd.org>.
+
+2009-09-17 Bruno Haible <bruno@clisp.org>
+
+ * modules/COPYING: Update copyright years.
+ * modules/README: Likeiwse.
+ * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
+ Reported by Ian Beckwith <ianb@erislabs.net>.
+
+2009-09-17 Ian Beckwith <ianb@erislabs.net> (tiny change)
+
+ * users.txt: Update references for gnuit package.
+
+2009-09-17 Ian Beckwith <ianb@erislabs.net> (tiny change)
+
+ * m4/getdelim.m4: Fix typo in copyright line.
+
+2009-09-17 Bruno Haible <bruno@clisp.org>
+
+ * lib/atoll.c: Use the standard header with GPL copyright.
+ * lib/argz.in.h: Likewise.
+ * lib/glob.c: Likewise.
+ * lib/glob-libc.h: Likewise.
+ * lib/random_r.c: Likewise.
+ * lib/siglist.h: Likewise.
+ * lib/strsignal.c: Likewise.
+ Reported by Ian Beckwith <ianb@erislabs.net>.
+
+2009-09-17 Eric Blake <ebb9@byu.net>
+
+ rmdir: ensure correct dependency order
+ * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
+
+2009-09-17 Bruno Haible <bruno@clisp.org>
+
+ Disable assertion that fails on NetBSD 5 / i386.
+ * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
+ Reported by Sam Steingold <sds@gnu.org>
+ and Hasso Tepper <hasso@netbsd.org>.
+
+2009-09-16 Eric Blake <ebb9@byu.net>
+
+ unlinkdir: port to mingw
+ * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
+ on which no one can unlink a directory.
+
+ stdlib: sort witness names
+ * modules/stdlib (Makefile.am): Sort replacements.
+ * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
+ * lib/stdlib.in.h: Likewise.
+
+ parse-duration-tests: avoid link failure
+ * modules/parse-duration-tests (test_parse_duration_LDADD): Add
+ LIBINTL.
+ Reported by Tom G. Christensen.
+
+ openat-tests: ensure unlinkat behaves like rmdir
+ * tests/test-rmdir.c (main): Factor guts...
+ * tests/test-rmdir.h (test_rmdir_func): ...into new file.
+ * modules/rmdir-tests (Files): Ship new file.
+ * modules/openat-tests: New test.
+ * tests/test-unlinkat.c: Likewise.
+
+ rmdir-errno: mark obsolete, it is unsafe for cross-compilation
+ * modules/rmdir-errno (Status, Notice): Now obsolete.
+
+ rmdir: work around cygwin 1.5.x and mingw bugs
+ * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
+ * lib/rmdir.c (rmdir): Work around it.
+ * modules/rmdir (Status, Notice): No longer obsolete.
+ (Files): Add dos.m4.
+ (Depends-on): Add unistd.
+ (configure.ac): Set witnesses.
+ (License): Relax to LGPLv2+.
+ * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
+ * modules/unistd (Makefile.am): Substitute witnesses.
+ * lib/unistd.in.h (rmdir): Declare replacement.
+ * doc/posix-functions/rmdir.texi (rmdir): Document this.
+ * modules/rmdir-tests: New tests.
+ * tests/test-rmdir.c: Likewise.
+
+2009-09-15 Eric Blake <ebb9@byu.net>
+
+ fchdir: improve use of replacement functions
+ * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
+ * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
+ * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
+ REPLACE_CLOSEDIR.
+ * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
+ * modules/sys_stat (Makefile.am): Substitute correct witness.
+ * modules/dirent (Makefile.am): Likewise.
+ * modules/unistd (Makefile.am): Likewise.
+ * lib/dirent.in.h (opendir, closedir): Use better witnesses.
+ * lib/unistd.in.h (dup): Likewise.
+ * lib/sys_stat.in.h (fstat): Likewise.
+
+ maint: ignore gnulib-tool temp files
+ * .gitignore: Ignore files created during gnulib-tool --test.
+
+2009-09-13 Jim Meyering <meyering@redhat.com>
+
+ posixtm: don't reject a time that specify "60" as the number of seconds
+ * lib/posixtm.c (posixtime): The code to reject invalid dates
+ would also reject a time specified with the .60 suffix.
+ But POSIX allows that, in order to accommodate leap seconds.
+ So don't reject it.
+ (main): Adjust tests accordingly.
+ * modules/posixtm (Depends-on): Add stpcpy.
+
+2009-09-11 Jim Meyering <meyering@redhat.com>
+
+ announce-gen: include [$release_type] in emitted Subject:
+ * build-aux/announce-gen (get_tool_versions): Include [$release_type],
+ e.g., [stable] in the emitted Subject: line.
+
+2009-09-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
+
+ Remove obsolete macros from several modules.
+ * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
+ obsolete Autoconf macros with their modern counterparts.
+ * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
+ * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
+ * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
+ * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
+ * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
+ * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
+ * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
+ * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
+ * m4/poll.m4 (gl_FUNC_POLL): Likewise.
+ * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
+ * m4/round.m4 (gl_FUNC_ROUND): Likewise.
+ * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
+ * m4/select.m4 (gl_FUNC_SELECT): Likewise.
+ * m4/sockets.m4 (gl_SOCKETS): Likewise.
+ * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
+ * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
+ * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
+ * m4/time_r.m4 (gl_TIME_R): Likewise.
+ * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
+ * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
+ * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
+
+ Fix copyright header in build-aux scripts.
+ * build-aux/git-version-gen: Fix copyright header to match GPLv3
+ recommendation.
+ * build-aux/ncftpput-ftp: Likewise.
+ * build-aux/update-copyright: Likewise.
+
+2009-09-09 Eric Blake <ebb9@byu.net>
+
+ test-link: allow Linux choice of errno
+ * tests/test-link.c (main): Relax test for alternate error.
+
+ strndup: fix improper m4 caching
+ * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
+ inside AC_CACHE_CHECK. Use REPLACE_STRNDUP, not HAVE_STRNDUP.
+ (gl_PREREQ_STRNDUP): Delete.
+ * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
+ * modules/string (Makefile.am): Substitute it.
+ * lib/string.in.h (strndup): Modernize prototype.
+
+ getcwd: port to mingw
+ * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
+ different from the POSIX assumptions made throughout the getcwd
+ module; fortunately, the mingw getcwd does not need replacement.
+ (gl_FUNC_GETCWD_NULL): Skip test on mingw.
+ * modules/getcwd-tests: New test.
+ * tests/test-getcwd.c: Likewise.
+
+ link: fix platform bugs
+ * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
+ * lib/link.c (link): Work around them. Fix related mingw bug.
+ * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
+ * modules/unistd (Makefile.am): Substitute it.
+ * lib/unistd.in.h (link): Declare replacement.
+ * doc/posix-functions/link.texi (link): Document this.
+ * modules/link (Depends-on): Add strdup-posix, sys_stat.
+
+ test-link: consolidate into single C program, test more cases
+ * tests/test-link.sh: Delete.
+ * tests/test-link.c: Test more error conditions. Exposes bugs on
+ at least Cygwin and Solaris.
+ * modules/link-tests (Files): Remove unused file.
+ (Depends-on): Add errno, sys_stat.
+ (Makefile.am): Simplify.
+
+2009-09-08 Bruno Haible <bruno@clisp.org>
+
+ Work around towlower, towupper bug on mingw.
+ * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
+ * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
+ * doc/posix-functions/towlower.texi: Mention the mingw bug.
+ * doc/posix-functions/towupper.texi: Likewise.
+ Reported by Eric Blake.
+
+2009-09-08 Jim Meyering <meyering@redhat.com>
+
+ build: don't try to run autoheader if we don't use it
+ * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
+ is not used in configure.ac.
+
+2009-09-08 Eric Blake <ebb9@byu.net>
+
+ euidaccess: fix compilation error
+ * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
+
+ rawmemchr: relax license
+ * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
+ okay.
+ Reported by Jim Meyering.
+
+ mkfifoat: new module
+ * modules/mkfifoat: New file.
+ * lib/mkfifoat.c: Likewise.
+ * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
+ * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
+ * modules/sys_stat (Makefile.am): Use them.
+ * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
+ * MODULES.html.sh (File system functions): Mention module.
+ * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
+ * doc/posix-functions/mknodat.texi (mknodat): Likewise.
+ * modules/mkfifoat-tests: New test.
+ * tests/test-mkfifoat.c: Likewise.
+
+ strchrnul: relax license
+ * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
+ okay.
+ Reported by Jim Meyering.
+
+2009-09-08 Eric Blake <ebb9@byu.net>
+
+ fstatat: fix compilation on Solaris
+ * lib/fstatat.c (includes): Add fcntl.h.
+ Reported by Pádraig Brady.
+
+2009-09-07 Eric Blake <ebb9@byu.net>
+
+ rename: modernize replacement
+ * modules/rename (Depends-on): Add stdio.
+ (configure.ac): Declare witness.
+ * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
+ stdio take care of replacement.
+ * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
+ * modules/stdio (Makefile.am): Substitute them.
+ * lib/stdio.in.h (rename): Declare replacement.
+ * lib/rename.c (includes): Allow cross-compilation to non-windows
+ machines.
+ * doc/posix-functions/rename.texi (rename): Improve
+ documentation.
+
+ stdio: sort witness names
+ * modules/stdio (Makefile.am): Sort replacements.
+ * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
+ * lib/stdio.in.h: Likewise.
+
+ getcwd: minor cleanups
+ * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
+ (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
+
+ openat: provide more convenience names
+ * modules/faccessat (configure.ac): Add C witness.
+ * lib/unistd.in.h (readlinkat): Fix typo.
+ * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
+ convenience wrappers.
+ * top/maint.mk (sc_prohibit_openat_without_use): Allow these
+ wrappers in syntax checks.
+
+2009-09-06 Eric Blake <ebb9@byu.net>
+
+ doc: fix comments in recent patches
+ * lib/faccessat.c: Mention correct function.
+ * lib/fchmodat.c: Likewise.
+ * lib/fchownat.c: Likewise.
+ * lib/symlinkat.c: Likewise.
+ * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
+ constants.
+
+ faccessat, symlinkat: continue cleanup of previous patch
+ * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
+ * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
+ * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
+ * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
+ * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
+ * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
+ set.
+
+2009-09-06 Bruno Haible <bruno@clisp.org>
+
+ * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
+ (fstatat): Declare if GNULIB_FSTATAT is set.
+ (mkdirat): Declare if GNULIB_MKDIRAT is set.
+ * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
+ (unlinkat): Declare if GNULIB_UNLINKAT is set.
+ * modules/fcntl-h (Files): Remove m4/openat.m4.
+ * modules/sys_stat (Files): Remove m4/openat.m4.
+ (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
+ GNULIB_MKDIRAT instead of GNULIB_OPENAT.
+ * modules/unistd (Files): Remove m4/openat.m4.
+ (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
+ GNULIB_OPENAT.
+ * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
+ HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
+ * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
+ GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
+ HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
+ gl_OPENAT_DEFAULTS.
+ * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
+ GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
+ Don't require gl_OPENAT_DEFAULTS.
+ * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
+ gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
+ GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
+ (gl_OPENAT_DEFAULTS): Remove macro.
+
2009-09-06 Bruno Haible <bruno@clisp.org>
* modules/openat (configure.ac): Remove unneeded witness.