progname: Clarify specification.
[gnulib.git] / ChangeLog
index afb77cd..3c01809 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
+2009-12-05  Bruno Haible  <bruno@clisp.org>
+
+       * lib/progname.h (set_program_name): Clarify specification.
+       * lib/progname.c (set_program_name): Likewise.
+       Reported by Jim Meyering.
+
+2009-12-05  Jim Meyering  <meyering@redhat.com>
+
+       maint.mk: backslash-escape parens in default regexp
+       * top/maint.mk (news-check-regexp): Now that we're using grep -E,
+       backslash-escape the literal parentheses.
+
+       maint.mk: news-date-check: use grep -E
+       * top/maint.mk (today): Define a Make variable, not a...
+       (news-date-check): ...shell variable.
+       (news-date-regexp): Use the Make variable.
+       Use grep's -E option.  Change the failing diagnostic to mention
+       the variable, $(news-date-regexp).
+
+2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
+
+       maintainer-makefile: allow customization of NEWS entry format
+       * top/maint.mk (news-date-regexp): New overridable variable.
+       (news-date-check): Use it.
+
+2009-12-04  Eric Blake  <ebb9@byu.net>
+
+       mgetgroups: add xgetgroups, and avoid ENOSYS failures
+       * lib/mgetgroups.h (xgetgroups): New prototype.
+       * lib/mgetgroups.c (xgetgroups): New wrapper.
+       (mgetgroups): Handle ENOSYS.
+       * modules/mgetgroups (Depends-on): Add realloc.
+       Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
+
+       mgetgroups: avoid argument promotion issues with -1
+       * lib/mgetgroups.c (mgetgroups): A cast is required when checking
+       for invalid gid_t.
+       * tests/test-chown.h (getegid, test_chown): Likewise.
+       * tests/test-lchown.h (getegid, test_lchown): Likewise.
+
+2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
+
+       exclude: Fix header file problems.
+       * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
+
+2009-12-01  Jim Meyering  <meyering@redhat.com>
+
+       fts: fts_open: do not let an empty string cause immediate failure
+       This is required in support of GNU rm, for which the command
+       "rm A '' B" must process and remove both A and B, in spite of
+       the empty string argument.
+       * lib/fts.c (fts_open): Do not let the presence of an empty string
+       cause fts_open to fail immediately.  Most fts-using tools must be
+       able to process all arguments, in order, and can be expected to
+       diagnose such arguments themselves.
+
+2009-11-30  Eric Blake  <ebb9@byu.net>
+
+       utimens: fix compilation error
+       * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
+       Declare variable at right scope.
+
+2009-11-29  Jim Meyering  <meyering@redhat.com>
+
+       bootstrap: handle perl-5.11's changed --version output
+       * build-aux/bootstrap (get_version): Handle perl separately,
+       since perl-5.11's --version output is different.
+
+2009-11-28  Jim Meyering  <meyering@redhat.com>
+
+       userspec: depend on the inttostr module, too
+       * modules/userspec (Depends-on): Add inttostr.
+
+       userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
+       * lib/userspec.c (parse_with_separator): Do not accept a user ID
+       number of MAXUID when it evaluates to (uid_t) -1.
+       Likewise for group ID.  Reported by Matt McCutchen in
+       <http://savannah.gnu.org/bugs/?28113>
+
+       userspec: reformat to use spaces, not TABs
+       * lib/userspec.c: Expand TABs to spaces.
+       Add Emacs' "indent-tabs-mode: nil" hint.
+
+2009-11-27  Eric Blake  <ebb9@byu.net>
+
+       getopt-gnu: flush out another BSD bug
+       * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
+       * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
+       flush out BSD bug.
+       * tests/test-getopt.h (test_getopt): End lists with NULL.
+       * tests/test-getopt_long.h (test_getopt_long): Likewise.
+       (test_getopt_long_posix): Enhance test.
+       * modules/getopt-posix-tests (Depends-on): Add stdbool.
+       * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
+       getopt-gnu.
+       * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
+       Likewise.
+
+2009-11-27  Simon Josefsson  <simon@josefsson.org>
+
+       * modules/idpriv-droptemp-tests (Notice): Fix text.
+
+2009-11-27  Jim Meyering  <meyering@redhat.com>
+
+       test-xalloc-die: avoid spurious failure due to libtool argv difference
+       In a libtool-enabled project, this test would fail due to a difference
+       in the emitted program name, e.g.,
+       -test-xalloc-die: memory exhausted
+       +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
+       Use program to avoid that.
+       * modules/xalloc-die-tests (Depends-on): Add progname.
+       * tests/test-xalloc-die.c: Include progname.h".
+       (program_name): Remove decl.
+       (main): Call set_program_name.
+       * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
+
+2009-11-26  Richard Jones  <rjones@redhat.com>
+
+       w32sock: leave win32 error in place.
+       * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
+
+2009-11-26  Eric Blake  <ebb9@byu.net>
+
+       init.sh: suggest to use skip_ and fail_ functions in comments
+       * tests/init.sh: Add a sentence.
+
+2009-11-25  Bruno Haible  <bruno@clisp.org>
+
+       init.sh: add documentation in comments
+       * tests/init.sh: Add some developer and user documentation.
+
+2009-11-26  Jim Meyering  <meyering@redhat.com>
+
+       init.sh: accommodate even those who specify bogus srcdir manually
+       * tests/init.sh: Normally, srcdir is guaranteed by automake and
+       configure-time tests to be sanitized, so that there is no need to
+       use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
+       (with no double quotes) suffices.  However, since tests may be
+       invoked manually, and since you may explicitly set srcdir to the
+       name of a directory containing spaces, do quote its uses here.
+       * tests/test-pread.sh: Likewise.
+       Suggested by Bruno Haible.
+
+       test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
+       * tests/test-pread.sh: Write no data into the pipe, because
+       test-pread actually reads none.  This avoids a diagnostic,
+       "bash: echo: write error: Broken pipe", that arises in the unusual
+       event something is ignoring SIGPIPE, and might be interpreted
+       as some sort of failure.  Reported by Bruno Haible.
+
+2009-11-25  Jim Meyering  <meyering@redhat.com>
+
+       test-pread: cover failure with ESPIPE and EINVAL
+       * tests/test-pread.c (main): Test for failure, too.
+       * tests/test-pread.sh: Invoke with stdin on a pipe.
+       Suggested by Eric Blake.
+
+       pread: improvement and fix
+       * modules/pread (Depends-on): Depend on lseek, for portability to
+       e.g., mingw.  Suggested by Eric Blake.
+       * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
+
+       unistd.in.h: correct declaration of pread
+       * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
+       Reported by Richard W.M. Jones.
+
+       test-pread.sh: distribute the test script
+       * modules/pread-tests (Files): Include test-pread.sh.
+
+       test-pread.sh: clean up
+       * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
+       * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
+       That is unnecessary, since it's always ".".
+       Suggestion from Eric Blake.
+
+       test-pread.sh: make executable
+       * tests/test-pread.sh: Set executable bit.
+       Reported by Eric Blake.
+
+       correct typo in test-pread.sh
+       * tests/test-pread.sh: Add #! line.
+
+       test pread
+       * tests/test-pread.c: New file.
+       * tests/test-pread.sh: Likewise.
+       * modules/pread-tests: Likewise.
+
+       pread: new module
+       * modules/pread: New file.
+       * lib/unistd.in.h (pread): Define/declare.
+       * lib/pread.c (pread): New file.
+       * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
+       * modules/unistd (Makefile.am): Substitute witnesses.
+       * doc/posix-functions/pread.texi (pread): Update.
+       * MODULES.html.sh: Add pread.
+
+2009-11-25  Jim Meyering  <meyering@redhat.com>
+
+       tests/init.sh: new file to be used via most *.sh tests
+       * tests/init.sh: New file.
+
+2009-11-25  Eric Blake  <ebb9@byu.net>
+
+       utimens: work around older Linux failure with symlinks
+       * lib/utimens.c (lutimensat_works_really): New variable.
+       (fdutimens, lutimens): Use it to manage kernels that support
+       nanosecond times on files, but not on symlinks.
+       Reported by Ondřej Vašík.
+
+       utimes: fix configure grammar
+       * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
+
+2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
+
+       regex: Fix fastmap for multibyte character ranges.
+       * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
+       characters when a multibyte character range is included.
+
+2009-11-22  Andy Wingo  <wingo@pobox.com>
+
+       version-etc: work also with AM_INIT_AUTOMAKE's no-define option
+       * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
+
+2009-11-24  Bruno Haible  <bruno@clisp.org>
+
+       doc: Most *_l functions exist in MacOS X 10.5.
+       * doc/posix-functions/duplocale.texi: Update platforms list.
+       * doc/posix-functions/freelocale.texi: Likewise.
+       * doc/posix-functions/newlocale.texi: Likewise.
+       * doc/posix-functions/uselocale.texi: Likewise.
+       * doc/posix-functions/isalnum_l.texi: Likewise.
+       * doc/posix-functions/isalpha_l.texi: Likewise.
+       * doc/posix-functions/isblank_l.texi: Likewise.
+       * doc/posix-functions/iscntrl_l.texi: Likewise.
+       * doc/posix-functions/isdigit_l.texi: Likewise.
+       * doc/posix-functions/isgraph_l.texi: Likewise.
+       * doc/posix-functions/islower_l.texi: Likewise.
+       * doc/posix-functions/isprint_l.texi: Likewise.
+       * doc/posix-functions/ispunct_l.texi: Likewise.
+       * doc/posix-functions/isspace_l.texi: Likewise.
+       * doc/posix-functions/isupper_l.texi: Likewise.
+       * doc/posix-functions/iswalnum_l.texi: Likewise.
+       * doc/posix-functions/iswalpha_l.texi: Likewise.
+       * doc/posix-functions/iswblank_l.texi: Likewise.
+       * doc/posix-functions/iswcntrl_l.texi: Likewise.
+       * doc/posix-functions/iswctype_l.texi: Likewise.
+       * doc/posix-functions/iswdigit_l.texi: Likewise.
+       * doc/posix-functions/iswgraph_l.texi: Likewise.
+       * doc/posix-functions/iswlower_l.texi: Likewise.
+       * doc/posix-functions/iswprint_l.texi: Likewise.
+       * doc/posix-functions/iswpunct_l.texi: Likewise.
+       * doc/posix-functions/iswspace_l.texi: Likewise.
+       * doc/posix-functions/iswupper_l.texi: Likewise.
+       * doc/posix-functions/iswxdigit_l.texi: Likewise.
+       * doc/posix-functions/isxdigit_l.texi: Likewise.
+       * doc/posix-functions/nl_langinfo_l.texi: Likewise.
+       * doc/posix-functions/strcasecmp_l.texi: Likewise.
+       * doc/posix-functions/strcoll_l.texi: Likewise.
+       * doc/posix-functions/strfmon_l.texi: Likewise.
+       * doc/posix-functions/strftime_l.texi: Likewise.
+       * doc/posix-functions/strncasecmp_l.texi: Likewise.
+       * doc/posix-functions/strxfrm_l.texi: Likewise.
+       * doc/posix-functions/tolower_l.texi: Likewise.
+       * doc/posix-functions/toupper_l.texi: Likewise.
+       * doc/posix-functions/towctrans_l.texi: Likewise.
+       * doc/posix-functions/towlower_l.texi: Likewise.
+       * doc/posix-functions/towupper_l.texi: Likewise.
+       * doc/posix-functions/wcscoll_l.texi: Likewise.
+       * doc/posix-functions/wcsxfrm_l.texi: Likewise.
+       * doc/posix-functions/wctrans_l.texi: Likewise.
+       * doc/posix-functions/wctype_l.texi: Likewise.
+       * doc/glibc-functions/strptime_l.texi: Likewise.
+       * doc/glibc-functions/strtod_l.texi: Likewise.
+       * doc/glibc-functions/strtof_l.texi: Likewise.
+       * doc/glibc-functions/strtol_l.texi: Likewise.
+       * doc/glibc-functions/strtold_l.texi: Likewise.
+       * doc/glibc-functions/strtoll_l.texi: Likewise.
+       * doc/glibc-functions/strtoul_l.texi: Likewise.
+       * doc/glibc-functions/strtoull_l.texi: Likewise.
+       * doc/glibc-functions/wcsftime_l.texi: Likewise.
+       * doc/glibc-functions/wcstod_l.texi: Likewise.
+       * doc/glibc-functions/wcstof_l.texi: Likewise.
+       * doc/glibc-functions/wcstol_l.texi: Likewise.
+       * doc/glibc-functions/wcstold_l.texi: Likewise.
+       * doc/glibc-functions/wcstoll_l.texi: Likewise.
+       * doc/glibc-functions/wcstoul_l.texi: Likewise.
+       * doc/glibc-functions/wcstoull_l.texi: Likewise.
+
+2009-11-24  Bruno Haible  <bruno@clisp.org>
+
+       duplocale: Fix logic bug.
+       * lib/duplocale.c: Don't include <langinfo.h>.
+       (_NL_LOCALE_NAME): Remove macro.
+       (rpl_duplocale): Use setlocale instead of nl_langinfo.
+       * tests/test-duplocale.c (main): Also test duplocale after uselocale.
+
+2009-11-23  Jim Meyering  <meyering@redhat.com>
+
+       test-update-copyright: don't hard-code /usr/bin/perl
+       * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
+       perl to print the current year.  Gilles Espinasse reported that
+       the replaced use of perl was hard-coded as /usr/bin/perl.
+
+2009-11-23  Bruno Haible  <bruno@clisp.org>
+
+       duplocale: Add support for glibc 2.3.x.
+       * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
+
+2009-11-22  Bruno Haible  <bruno@clisp.org>
+
+       vasnprintf: Tiny optimization.
+       * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
+       MacOS X.
+
+2009-11-22  Bruno Haible  <bruno@clisp.org>
+
+       Tests for module 'duplocale'.
+       * modules/duplocale-tests: New file.
+       * tests/test-duplocale.c: New file.
+
+       New module 'duplocale'.
+       * m4/duplocale.m4: New file.
+       * lib/locale.in.h (duplocale): New declaration.
+       * lib/duplocale.c: New file.
+       * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
+       gl_LOCALE_H_DEFAULTS): New macros.
+       (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
+       gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
+       * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
+       REPLACE_DUPLOCALE.
+       * modules/duplocale: New file.
+       * doc/posix-functions/duplocale.texi: Mention the glibc bug.
+
+2009-11-22  Bruno Haible  <bruno@clisp.org>
+
+       * modules/locale-tests (configure.ac): Test for newlocale function.
+       * tests/test-locale.c: When the system has extended locale functions,
+       verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
+
+       locale: Make locale_t available when possible.
+       * lib/locale.in.h: Include <xlocale.h> when it exists.
+       * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
+       replace <locale.h> if it does not define locale_t but <xlocale.h> does.
+       * modules/locale (Depends-on): Add extensions.
+       (Makefile.am): Also substitute HAVE_XLOCALE_H.
+       * doc/posix-headers/locale.texi: Document the problem with locale_t.
+
+2009-11-22  Bruno Haible  <bruno@clisp.org>
+
+       Add comments.
+       * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
+       invocation.
+       * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
+       * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
+       * m4/wchar.m4 (gl_WCHAR_H): Likewise.
+
+2009-11-22  Bruno Haible  <bruno@clisp.org>
+
+       error: account for the possibility of freopen (stdout).
+       * lib/error.c: Include <unistd.h>.
+       (flush_stdout): New function, extracted from error and error_at_line.
+       Determine stdout's fd dynamically.
+       (error, error_at_line): Invoke flush_stdout.
+       * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
+       * modules/error (Depends-on): Add unistd.
+
+2009-11-22  Bruno Haible  <bruno@clisp.org>
+
+       diffseq: Add comment.
+       * lib/diffseq.h (IF_LINT): Add comment about pitfall.
+
+2009-11-22  Jim Meyering  <meyering@redhat.com>
+
+       c-stack: avoid defining an unused static function
+       * lib/c-stack.c (find_stack_direction): Do not define this function
+       when it will not be used.
+
+       diffseq: avoid spurious gcc warnings
+       * lib/diffseq.h (IF_LINT2): Define.
+       (compareseq): Use it to initialize two members of "part".
+       This avoids two used-uninitialized warnings.
+
+2009-11-21  Jim Meyering  <meyering@redhat.com>
+
+       c-stack: avoid "ignoring return value of `write'" warning
+       * lib/c-stack.c: Include "ignore-value.h".
+       (die): Explicitly ignore each write return value.
+       * modules/c-stack (Depends-on): Add ignore-value.
+
+2009-11-21  Bruno Haible  <bruno@clisp.org>
+
+       diffseq: reduce scope of variable 'best'.
+       * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
+       variable, earlier used for two different purposes.
+
+2009-11-21  Jim Meyering  <meyering@redhat.com>
+
+       diffseq: remove useless assignment to "best"
+       * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
+       assignment.  At that point "best" is already guaranteed to be zero.
+
+2009-11-20  Eric Blake  <ebb9@byu.net>
+
+       build: mention ftp redirector in release announcements
+       * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
+       values that used to come from cfg.mk; mention FTP redirect URL.
+       * build-aux/announce-gen: Mention the mirror list.
+       Suggested by Karl Berry.
+
+       nanosleep: improve port to mingw
+       * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
+       * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
+       LIB_NANOSLEEP, but only when needed.
+       * modules/select (Link): Document LIBSOCKET.
+       * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
+       enough.
+
+       nanosleep: work around cygwin bug
+       * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
+       Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
+       bug.
+       (getnow): Delete, not needed.
+       * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
+       LIB_CLOCK_GETTIME.
+       * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
+       clock-time, gettime.
+       * doc/posix-functions/nanosleep.texi (nanosleep): Document the
+       bug.
+       * modules/nanosleep-tests: New test.
+       * tests/test-nanosleep.c: New file.
+
+       sleep: work around cygwin bug
+       * lib/sleep.c (rpl_sleep): Work around the bug.
+       * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
+       (gl_PREREQ_SLEEP): Delete unused macro.
+       * modules/sleep (Depends-on): Add verify.
+       * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
+       * modules/unistd (Makefile.am): Substitute witness.
+       * lib/unistd.in.h (sleep): Update prototype.
+       * doc/posix-functions/sleep.texi (sleep): Document the bug.
+       * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
+       * modules/sleep-tests (Depends-on): Check for alarm.
+
+2009-11-20  Jim Meyering  <meyering@redhat.com>
+
+       maint.mk: improve sc_prohibit_magic_number_exit
+       * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
+       so it does not match uses like System.exit(1).
+       Add comments showing how to correct all offenders.
+
+2009-11-19  Eric Blake  <ebb9@byu.net>
+
+       xalloc-die-tests: add missing library
+       * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
+
+       test-xvasprintf: silence compiler warnings
+       * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
+       empty string from gcc.
+
+2009-11-19  Jim Meyering  <meyering@redhat.com>
+
+       xfreopen: new module, from coreutils
+       * modules/xfreopen: New module.
+       * lib/xfreopen.c: New file.
+       * lib/xfreopen.h: New file.
+       * MODULES.html.sh (File stream based Input/Output"): Add it.
+
+2009-11-19  Eric Blake  <ebb9@byu.net>
+
+       manywarnings: depend on warnings
+       * modules/manywarnings (Depends-on): Add warnings.
+
+       build: avoid compiler warnings
+       * lib/select.c (rpl_select): Delete unused variable.
+       * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
+
+2009-11-18  Eric Blake  <ebb9@byu.net>
+
+       tests: avoid false negative with --with-packager
+       * tests/test-version-etc.sh: Discard packager information.
+       * tests/test-argp-version-etc-1.sh: Likewise.
+       Reported by Mike Frysinger.
+
+       utimens: fix regression on Solaris
+       * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
+       * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
+       can only change fd timestamps via futimesat.  Instead, use an
+       additional witness macro to avoid BSD bug.
+       Reported by Jim Meyering.
+
+2009-11-17  Eric Blake  <ebb9@byu.net>
+
+       usleep: use it to simplify tests
+       * modules/stat-time-tests (Depends-on): Add usleep.
+       (configure.ac): Drop usleep check.
+       * modules/chown-tests (Depends-on, configure.ac): Likewise.
+       * modules/lchown-tests (Depends-on, configure.ac): Likewise.
+       * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
+       * modules/futimens-tests (Depends-on, configure.ac): Likewise.
+       * modules/openat-tests (Depends-on, configure.ac): Likewise.
+       * modules/utimens-tests (Depends-on, configure.ac): Likewise.
+       * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
+       * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
+       Likewise.
+       * tests/test-chown.h (nap): Rely on nicer usleep semantics.
+       * tests/test-lchown.h (nap): Likewise.
+       * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
+       * tests/test-stat-time.c (nap): Likewise.
+       * tests/test-utimens-common.h (nap): Update comments.
+
+       usleep: new module
+       * modules/usleep: New file.
+       * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
+       * lib/usleep.c (usleep): Likewise.
+       * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
+       * modules/unistd (Makefile.am): Substitute witnesses.
+       * lib/unistd.in.h (usleep): Add declaration.
+       * doc/pastposix-functions/usleep.texi (usleep): Document this.
+       * MODULES.html.sh (Date and time): Likewise.
+       * modules/usleep-tests (Depends-on): New test.
+       * tests/test-usleep.c: New file.
+
+       chown: work around OpenBSD bug
+       * lib/chown.c (rpl_chown): Work around the bug.
+       * lib/lchown.c (rpl_lchown): Attempt to do likewise.
+       * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
+       * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
+       * modules/chown (Depends-on): Add stdbool.
+       * modules/lchown (Depends-on): Likewise.
+       * doc/posix-functions/chown.texi (chown): Document the bug.
+       * doc/posix-functions/lchown.texi (lchown): Likewise.
+       * tests/test-lchown.h (test_chown): Relax test.
+
+       mkstemp: avoid conflict with C++ keyword template
+       * lib/mkdtemp.c (mkdtemp): Change spelling of template.
+       * lib/mkostemp.c (mkostemp): Likewise.
+       * lib/mkostemps.c (mkostemps): Likewise.
+       * lib/mkstemp.c (mkstemp): Likewise.
+       * lib/mkstemps.c (mkstemps): Likewise.
+
+       xalloc-die-tests: optimize
+       * tests/test-xalloc-die.sh: Reduce number of processes.
+
+2009-11-17  Simon Josefsson  <simon@josefsson.org>
+
+       * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
+       patch from ludo@gnu.org (Ludovic Courtès).
+
+2009-11-17  Jim Meyering  <meyering@redhat.com>
+
+       version-etc: use proper license string
+       * modules/version-etc (License): Use LGPL, not LGPLv3+.
+       * modules/version-etc-fsf: Likewise.
+
+2009-11-17  Simon Josefsson  <simon@josefsson.org>
+
+       * tests/test-xalloc-die.sh: Add license.  Check that nothing is
+       printed to stdout.  Deal with EOL differences.
+
+2009-11-17  Eric Blake  <ebb9@byu.net>
+
+       unsetenv: work around Solaris bug
+       * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
+       * lib/unsetenv.c (rpl_unsetenv): Work around it.
+       Reported by Jim Meyering.
+
+       vasnprintf: avoid compiler warnings
+       * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
+       variables.
+       * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
+
+2009-11-17  Simon Josefsson  <simon@josefsson.org>
+
+       * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
+       settings since xalloc-die is no longer the self test,
+       xalloc-die.sh is.
+
+2009-11-17  Jim Meyering  <meyering@redhat.com>
+
+       test-xalloc-die.sh: make the code agree with the commit log
+       * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
+       at the end, just in case you happen to have a test-xalloc-die
+       program in some other PATH directory.
+
+       test-xalloc-die.sh: fix a portability bug
+       * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
+       Instead, set PATH to start with "." and invoke via "test-xalloc-die".
+       Otherwise, argv[0] (as often seen in diagnostics) would be too
+       system-dependent, sometimes with, and sometimes without the leading "./".
+
+       version-etc-fsf: relax license to LGPLv3+
+       * modules/version-etc-fsf (License): Relax license.
+
+2009-11-16  Eric Blake  <ebb9@byu.net>
+
+       xalloc-die-tests: avoid printing null pointer
+       * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
+       shell script.
+       * tests/test-xalloc-die.c (program_name): Declare.
+       * tests/test-xalloc-die.sh (tmpfiles): New file.
+
+       setenv, unsetenv: work around various bugs
+       * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
+       (setenv) [HAVE_SETENV]: Work around bugs.
+       * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
+       * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
+       for bugs.
+       (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
+       * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
+       * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
+       * modules/stdlib (Makefile.am): Update substitutions.
+       * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
+       * doc/posix-functions/setenv.texi (setenv): Document the bugs.
+       * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
+       * modules/setenv-tests: New test.
+       * modules/unsetenv-tests: Likewise.
+       * tests/test-setenv.c: New file.
+       * tests/test-unsetenv.c: Likewise.
+
+2009-11-16  Jim Meyering  <meyering@redhat.com>
+
+       version-etc: relax license to LGPLv3+
+       * modules/version-etc (License): Relax license.
+
+       better AC_REQUIRE expanded-before-required-warning avoidance
+       * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
+       with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
+       Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
+       which is no longer needed.
+
+2009-11-16  Eric Blake  <ebb9@byu.net>
+
+       test-freading: clean up temporary file
+       * tests/test-freading.c (main): Remove file on success, and use
+       ASSERT more liberally.
+       Reported by Jim Meyering.
+
+2009-11-16  Jim Meyering  <meyering@redhat.com>
+
+       avoid new AC_REQUIRE expanded-before-required warnings
+       * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
+       merely using it.
+       * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
+       * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
+
+2009-11-15  Simon Josefsson  <simon@josefsson.org>
+
+       * tests/test-xalloc-die.c: New file.
+       * modules/xalloc-die-tests: New file.
+       * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
+       XFAIL_TESTS so it can be appended by modules.
+
+2009-11-15  Simon Josefsson  <simon@josefsson.org>
+
+       * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
+       by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
+
+2009-11-14  Eric Blake  <ebb9@byu.net>
+
+       fnmatch: avoid compiler warning
+       * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
+       to silence compiler warning about mismatch signedness in ?:.
+       Reported by Robert Millan.
+
+       intprops: add double-inclusion guard
+       * lib/intprops.h: Allow idempotent includes.
+       Suggested by Bruce Korb.
+
+       openat: detect Solaris fchownat bug
+       * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
+       penalizing glibc chownat when only lchownat is broken.
+       * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
+       trailing slash bugs.
+       * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
+       * modules/openat-tests (Files): Include more files.
+       (Depends-on): Add mgetgroups, sleep, stat-time.
+       (configure.ac): Add additional checks.
+       (Makefile.am): Build new test.
+       * tests/test-fchownat.c: New file.
+
+       lchown: detect Solaris and FreeBSD bug
+       * lib/lchown.c (rpl_lchown): Work around bug.
+       * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
+       * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
+       * modules/unistd (Makefile.am): Populate it.
+       * lib/unistd.in.h (lchown): Update declaration.
+       * doc/posix-functions/lchown.texi (lchown): Document the bug.
+       * modules/lchown-tests: New file.
+       * tests/test-lchown.h (test_lchown): Likewise.
+       * tests/test-lchown.c (main): Likewise.
+
+       chown: detect Solaris and FreeBSD bug
+       * lib/chown.c (rpl_chown): Work around bug.
+       * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
+       (gl_PREREQ_CHOWN): Delete.
+       * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
+       * modules/unistd (Makefile.am): Populate it.
+       * lib/unistd.in.h (chown): Update declaration.
+       * lib/lchown.c (chown): Update client.
+       * modules/lchown (Depends-on): Add lstat.
+       * doc/posix-functions/chown.texi (chown): Document the bug.
+       * doc/posix-functions/getgroups.texi (getgroups): Document
+       getgroups pitfall.
+       * modules/chown-tests: New file.
+       * tests/test-chown.h (test_chown): Likewise.
+       * tests/test-chown.c (main): Likewise.
+
+2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
+
+       gnulib-tool: correctly detect absence of m4 directories
+       * gnulib-tool: Avoid extra newline on data passed to wc -l.
+
+2009-11-14  Jim Meyering  <meyering@redhat.com>
+
+       maint.mk: Prohibit inclusion of "xalloc.h" without use.
+       * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
+
+2009-11-14  John W. Eaton  <jwe@gnu.org>
+
+       strftime.h: wrap funtion declaration in extern "C" block
+       * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
+
+2009-11-13  Eric Blake  <ebb9@byu.net>
+
+       getgroups: avoid compiler warning
+       * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
+
+       getgroups: work around FreeBSD bug
+       * lib/getgroups.c (rpl_getgroups): Work around the bug.
+       * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
+       * doc/posix-functions/getgroups.texi (getgroups): Document it.
+       * tests/test-getgroups.c (main): Fix buffer overrun.
+
+       getgroups: avoid compilation failure
+       * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
+       * modules/getgroups (Depends-on): Add stdint.
+
+2009-11-13  Jim Meyering  <meyering@redhat.com>
+
+       test-getgroups: avoid compilation failure
+       * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
+
+2009-11-13  Eric Blake  <ebb9@byu.net>
+
+       mgetgroups: new module, taken from coreutils
+       * modules/mgetgroups: New file.
+       * lib/mgetgroups.h: Likewise.
+       * lib/mgetgroups.c (mgetgroups): Likewise.
+       * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
+       * MODULES.html.sh (Users and groups): Mention it.
+
+       getgroups: don't expose GETGROUPS_T to user
+       * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
+       an element at a time if GETGROUPS_T is wrong size.
+       * lib/getugroups.h (getugroups): Change signature.
+       * lib/unistd.in.h (getgroups): Likewise.
+       * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
+       signature needs fixing.
+       * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
+       AC_TYPE_GETGROUPS.
+       * modules/group-member (Depends-on): Add getgroups.
+       * lib/group-member.c (group_info, get_group_info): Use gid_t.
+       (group_member): Rely on getgroups replacement.
+       * lib/getugroups.c (getugroups): Use gid_t.
+       * tests/test-getgroups.c (main): Likewise.
+       * NEWS: Mention the signature change.
+       * doc/posix-functions/getgroups.texi (getgroups): Mention the
+       problem with signature.
+       * doc/glibc-functions/setgroups.texi (setgroups): Mention that
+       GETGROUPS_T is still useful for setgroups.
+
+       getgroups, getugroups: provide stubs for mingw
+       * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
+       * lib/getugroups.c (getugroups): Likewise.
+       * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
+       function.  Modernize replacement scheme.
+       (gl_PREREQ_GETGROUPS): Delete.
+       * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
+       * modules/getgroups (configure.ac): Declare witness.
+       * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
+       * modules/unistd (Depends-on): Substitute witness.
+       * lib/unistd.in.h (getgroups): Declare replacement.
+
+       getgroups: avoid calling exit
+       * modules/getgroups (Depends-on): Add malloc-posix and unistd,
+       drop xalloc.
+       * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
+       dependencies.
+       * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
+       exiting, in the rare case of malloc failure.
+
+       getgroups: fix logic error
+       * lib/getgroups.c (rpl_getgroups): Don't fail if current process
+       has more than 20 groups.
+       * modules/getgroups-tests: New test.
+       * tests/test-getgroups.c: New file.
+
+2009-11-13  Simon Josefsson  <simon@josefsson.org>
+
+       * tests/test-base64.c: Improve.
+
+2009-11-13  Simon Josefsson  <simon@josefsson.org>
+
+       * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
+       Blake <ebb9@byu.net>.
+
+2009-11-13  Simon Josefsson  <simon@josefsson.org>
+
+       * tests/test-xvasprintf.c: Add %s%s related checks.
+
+2009-11-12  Eric Blake  <ebb9@byu.net>
+
+       version-etc: match standards.texi style
+       * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
+       and use <> only for URLs.
+
+2009-11-10  Kamil Dudka  <kdudka@redhat.com>
+
+       fts: do not fail on a submount during traversal
+       * lib/fts.c (fts_build): Read the stat info again after opening
+       a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
+       Original report at http://bugzilla.redhat.com/501848.
+
+2009-11-12  Jim Meyering  <meyering@redhat.com>
+
+       bootstrap: sync from coreutils
+       * build-aux/bootstrap (bootstrap_epilogue): New function.
+       Use git_modules_config in one more place.  This make bootstrap's
+       --gnulib-srcdir option more useful for testing.
+
+       bootstrap: generalize autoheader check
+       * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
+       AC_CONFIG_HEADERS.
+
+2009-11-11  Eric Blake  <ebb9@byu.net>
+
+       mkfifoat: use new modules for Solaris and BSD bugs
+       * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
+       * lib/mkfifoat.c (mknodat): Split...
+       * lib/mknodat.c (mknodat): ...into new file.
+       * modules/mkfifoat (Files): Ship new file.
+       (Depends-on): Add mkfifo, mknod.
+       * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
+       (Depends-on): Add symlink.
+       * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
+       redundant with test_mkfifo.h.
+       (do_mkfifoat, do_mknodat): New helpers.
+
+       mknod: new module
+       * modules/mknod: New file.
+       * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
+       * lib/mknod.c (mknod): Likewise.
+       * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
+       defaults.
+       * modules/sys_stat (Makefile.am): Substitute them.
+       * lib/sys_stat.in.h (mknod): Declare replacement.
+       * MODULES.html.sh (Support for systems lacking POSIX:2008):
+       Document it.
+       * doc/posix-functions/mknod.texi (mknod): Likewise.
+       * modules/mknod-tests: New test.
+       * tests/test-mknod.c: Likewise.
+
+       mkfifo: new module
+       * modules/mkfifo: New file.
+       * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
+       * lib/mkfifo.c (mkfifo): Likewise.
+       * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
+       defaults.
+       * modules/sys_stat (Makefile.am): Substitute them.
+       * lib/sys_stat.in.h (mkfifo): Declare replacement.
+       * MODULES.html.sh (Support for systems lacking POSIX:2008):
+       Document it.
+       * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
+       * modules/mkfifo-tests: New test.
+       * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
+       from test-mkfifoat.c.
+       * tests/test-mkfifo.c: New file.
+
+       readlink: detect FreeBSD bug
+       * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
+       slash on symlink.
+       * doc/posix-functions/readlink.texi (readlink): Document the bug.
+       * tests/test-readlink.h (test_readlink): Enhance test.
+
+       symlink: detect FreeBSD bug
+       * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
+       slash on symlink.
+       * doc/posix-functions/symlink.texi (symlink): Document the bug.
+       * tests/test-symlink.h (test_symlink): Enhance test.
+
+2009-11-10  Eric Blake  <ebb9@byu.net>
+
+       link: detect FreeBSD bug
+       * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
+       symlink.
+       * doc/posix-functions/link.texi (link): Document the bug.
+       * tests/test-link.h (test_link): Enhance test.
+       * tests/test-linkat.c (main): Update caller.
+
+       unlink, remove: detect FreeBSD bug
+       * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
+       slash on symlink.
+       * doc/posix-functions/unlink.texi (unlink): Document the bug.
+       * doc/posix-functions/remove.texi (remove): Likewise.
+       * tests/test-unlink.h (test_unlink): Enhance test.
+       * tests/test-remove.c (main): Likewise.
+
+2009-11-09  Eric Blake  <ebb9@byu.net>
+
+       rename: detect FreeBSD bug
+       * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
+       slash on symlink.
+       * modules/renameat-tests (Depends-on): Add filenamecat.
+       * tests/test-rename.h (test_rename): Allow one more errno.
+       * tests/test-renameat.c (main): Likewise.
+       * doc/posix-functions/rename.texi (rename): Document the bug.
+
+       open: detect FreeBSD bug
+       * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
+       symlink.
+       * doc/posix-functions/open.texi (open): Document the bug.
+       * doc/posix-functions/utimes.texi (utimes): Likewise.
+       * tests/test-open.h (test_open): Add parameters, and test symlink
+       handling.
+       * tests/test-open.c (main): Adjust caller.
+       * tests/test-fcntl-safer.c (main): Likewise.
+       * modules/open-tests (Depends-on): Add stdbool, symlink.
+       * modules/fcntl-safer-tests (Depends-on): Likewise.
+       * tests/test-openat.c (main): Add test-open tests.
+
+       stat: detect FreeBSD bug
+       * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
+       symlink.
+       * doc/posix-functions/stat.texi (stat): Document the bug.
+       * tests/test-stat.h (test_stat_func): Add argument.
+       * tests/test-stat.c (main): Adjust caller.
+       * tests/test-fstatat.c (main): Likewise.
+       * modules/stat-tests (Depends-on): Add stdbool, symlink.
+       Reported by Jim Meyering.
+
+2009-11-09  James Youngman  <jay@gnu.org>
+
+       strftime.c: include ignore-value.h only when FPRINTFTIME is defined
+       * lib/strftime.c: Correct placement of #include "ignore-value.h".
+
+2009-11-08  Jim Meyering  <meyering@redhat.com>
+
+       utimens: remove invalid futimesat call
+       * lib/utimens.c (fdutimens): Remove invalid futimesat call.
+       It used the file descriptor of the target file as the DIR_FD
+       parameter and NULL as the file name.  That caused failure with
+       errno == EFAULT on FreeBSD-8.0-rc2
+
+2009-11-07  Eric Blake  <ebb9@byu.net>
+
+       fflush, freadseek: use fseeko, not fseek
+       * lib/fflush.c (clear_ungetc_buffer_preserving_position)
+       (clear_ungetc_buffer): Avoid potential problems on large files.
+       * lib/freadseek.c (freadseek): Likewise.
+       * modules/freadseek (Depends-on): Add fseeko.
+       * modules/fseek (configure.ac): Set a witness.
+       * tests/test-fflush.c (main): Use fseeko.
+       * tests/test-fpurge.c (fseek): Disable link warning.
+       * tests/test-freadable.c (fseek): Likewise.
+       * tests/test-freading.c (fseek): Likewise.
+       * tests/test-fseeko.c (fseek): Likewise.
+       * tests/test-ftell.c (fseek): Likewise.
+       * tests/test-ftello.c (fseek): Likewise.
+       * tests/test-fwritable.c (fseek): Likewise.
+       * tests/test-fwriting.c (fseek): Likewise.
+
+2009-11-06  Simon Josefsson  <simon@josefsson.org>
+
+       * modules/memchr (Depends-on): Drop getpagesize dependency.
+
+2009-11-06  Simon Josefsson  <simon@josefsson.org>
+
+       * build-aux/pmccabe2html: Disable execute bit.  Suggested by
+       Reported by Ludovic Courtès.
+       * build-aux/pmccabe2html: Improve example usage.
+       * build-aux/pmccabe2html: Drop #! header.  Doc fix.
+
+2009-11-06  Jim Meyering  <meyering@redhat.com>
+
+       do-release-commit-and-tag: New module.
+       Automate the release-commit and tag process.
+       * build-aux/do-release-commit-and-tag: New script, from coreutils.
+       * modules/do-release-commit-and-tag: New file.
+       * MODULES.html.sh (Support for maintaining and releasing): Add it.
+
+2009-11-06  Simon Josefsson  <simon@josefsson.org>
+
+       * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
+       because test-select.c uses inet_pton.
+
+2009-11-06  Simon Josefsson  <simon@josefsson.org>
+
+       * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
+       GETADDRINFO_LIB.  Bump serial number.
+       * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
+       Suggested by Eric Blake <ebb9@byu.net>.
+
+2009-11-05  Eric Blake  <ebb9@byu.net>
+
+       strtod: detect darwin bug
+       * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
+       Reported by Leo Davis.
+
+       freopen-safer: new module
+       * modules/freopen-safer: New module.
+       * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
+       * lib/freopen-safer.c (freopen_safer): New file.
+       * lib/stdio-safer.h (freopen_safer): New declaration.
+       * lib/stdio--.h (freopen): New override.
+       * MODULES.html.sh (File stream based Input/Output): Mention it.
+       * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
+       freopen-safer module.
+       * doc/posix-functions/stderr.texi (stderr): Likewise.
+       * doc/posix-functions/stdin.texi (stdin): Likewise.
+       * doc/posix-functions/stdout.texi (stdout): Likewise.
+       * modules/freopen-safer-tests: New test.
+       * tests/test-reopen-safer.c: New file.
+
+2009-11-05  Jim Meyering  <meyering@redhat.com>
+
+       maint.mk: Prohibit inclusion of "close-stream.h" without use.
+       * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
+
+2009-11-05  Simon Josefsson  <simon@josefsson.org>
+
+       * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
+
+2009-11-05  Simon Josefsson  <simon@josefsson.org>
+
+       * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
+
+2009-11-05  Simon Josefsson  <simon@josefsson.org>
+
+       Fix link error.
+       * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
+       * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
+
+2009-11-05  Simon Josefsson  <simon@josefsson.org>
+
+       * tests/test-func.c: Also test value of __func__.
+
+2009-11-05  Simon Josefsson  <simon@josefsson.org>
+
+       * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
+       may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
+
+2009-11-05  Bruno Haible  <bruno@clisp.org>
+
+       Fix link error.
+       * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
+       * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
+       Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
+
+2009-11-05  Bruno Haible  <bruno@clisp.org>
+
+       Tests for module 'inet_pton'.
+       * modules/inet_pton-tests: New file.
+       * tests/test-inet_pton.c: New file.
+
+2009-11-05  Bruno Haible  <bruno@clisp.org>
+
+       Tests for module 'inet_ntop'.
+       * modules/inet_ntop-tests: New file.
+       * tests/test-inet_ntop.c: New file.
+
+2009-11-04  Eric Blake  <ebb9@byu.net>
+
+       stdlib-safer: wrap all mkstemp variants
+       * modules/mkostemp (configure.ac): Set witness.
+       * modules/mkostemps (configure.ac): Likewise.
+       * modules/mkstemps (configure.ac): Likewise.
+       * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
+       (mkstemps_safer): Wrap more functions.
+       * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
+       wrapping.
+       * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
+       (mkstemps_safer): Implement the wrappers.
+
+       mkstemps, mkostemps: new modules
+       * modules/mkostemps: New module.
+       * modules/mkstemps: Likewise.
+       * lib/mkostemps.c (mkostemps): New file.
+       * lib/mkstemps.c (mkstemps): Likewise.
+       * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
+       * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
+       * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
+       * modules/stdlib (Makefile.am): Substitute them.
+       * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
+       * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
+       * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
+       * doc/gnulib.texi (Glibc stdlib.h): Include them.
+       * MODULES.html.sh (File system functions): Mention them.
+
+       tempname: resync from glibc
+       * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
+       same values for __GT_FILE as glibc.  Abort even when assertions
+       are disabled.
+       * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
+       match its value otherwise.  Allow idempotent inclusion.
+       * lib/mkdtemp.c (mkdtemp): Adjust caller.
+       * lib/mkostemp.c (mkostemp): Likewise.
+       * lib/mkstemp.c (mkstemp): Likewise.
+       * lib/tmpfile.c (tmpfile): Likewise.
+       * NEWS: Document this.
+
+       utimens: fix use of futimens on older Linux
+       * lib/utimens.c (fdutimens): Use updated, rather than original,
+       timespec to avoid bug in older Linux kernel.
+       Reported by Simon Josefsson.
+
+2009-11-04  Bruno Haible  <bruno@clisp.org>
+
+       Make num_processors more flexible and consistent.
+       * lib/nproc.h (enum nproc_query): New type.
+       (num_processors): Add a 'query' argument.
+       * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
+       (num_processors): Add a 'query' argument. Test the value of the
+       OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
+       mingw, count the number of CPUs available for the current process.
+       * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
+       Check for sched_getaffinity and sched_getaffinity_np.
+       * modules/nproc (Depends-on): Add c-ctype, extensions.
+       * NEWS: Mention the change.
+
+2009-11-03  Bruno Haible  <bruno@clisp.org>
+
+       * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
+
+2009-11-03  Jim Meyering  <meyering@redhat.com>
+
+       test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
+       * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
+       if it is defined.
+
+2009-11-02  Eric Blake  <ebb9@byu.net>
+
+       mktime, timegm: share common declaration
+       * lib/mktime-internal.h: New file.
+       * lib/mktime.c: Use it rather than open-coding a declaration.
+       * lib/timegm.c: Likewise.
+       * modules/mktime (Files): Ship it.
+       * modules/timegm (Files): Likewise.
+       Suggested by Bruno Haible.
+
+       test-update-copyright: update test to match script changes
+       * tests/test-update-copyright.sh: Avoid hard-coding perl
+       location.  Don't update *.bak created by earlier runs.
+
+2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
+           Simon Josefsson  <simon@josefsson.org>
+           Bruno Haible  <bruno@clisp.org>
+
+       Fix link error on Solaris 8.
+       * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
+       also in libnsl. Define also INET_PTON_LIB.
+       * modules/inet_pton (Link): New section.
+
+2009-11-02  Simon Josefsson  <simon@josefsson.org>
+           Bruno Haible  <bruno@clisp.org>
+
+       * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
+       * modules/inet_ntop (Link): New section.
+       Reported by Boyan Kasarov <bkasarov@gmail.com>.
+
+2009-11-02  Eric Blake  <ebb9@byu.net>
+
+       maint: avoid compiler warnings in m4 macros
+       * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
+       * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
+
+2009-11-02  Simon Josefsson  <simon@josefsson.org>
+
+       * m4/pmccabe2html.m4: Remove file.
+       * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
+       function.  Change maintainer.
+       * build-aux/pmccabe2html: Use /bin/sh with magic instead of
+       hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
+       Courtès).
+
+2009-10-31  Eric Blake  <ebb9@byu.net>
+
+       fseeko: fix m4 regression
+       * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
+       regression from 2009-10-27.
+       Reported by Ralf Wildenhues.
+
+2009-10-31  Jim Meyering  <meyering@redhat.com>
+
+       inttostr: aesthetics and improved (compile-time) safety
+       Define inttype_is_signed rather than inttype_is_unsigned,
+       since the sole use is via "#if inttype_is_signed".
+       * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
+       inttype_is_unsigned.
+       * lib/offtostr.c (inttype_is_signed): Likewise.
+       * lib/uinttostr.c (inttype_is_signed): Likewise.
+       * lib/umaxtostr.c (inttype_is_signed): Likewise.
+       * lib/inttostr.c (inttostr): Use verify to cross-check the
+       inttype_is_signed value and the signedness of the actual type.
+       * modules/inttostr (Depends-on): Add verify.
+
+2009-10-30  Eric Blake  <ebb9@byu.net>
+
+       build: avoid compiler warnings
+       * lib/fchmodat.c (lchmod): Mark unused variables.
+       * lib/getopt.c (_getopt_initialize): Likewise.
+       * lib/mktime.c (__mktime_internal): Provide prototype.
+       * lib/inttostr.c (inttostr): Avoid compiler warning even with
+       older gcc that do not understand #pragma GCC diagnostic.
+       * lib/uinttostr.c (inttype_is_unsigned): Define.
+       * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
+
+2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
+
+       stat: fix compilation on AIX
+       * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
+       only see struct stat64.
+
+2009-10-30  Eric Blake  <ebb9@byu.net>
+
+       exclude: make more robust
+       * lib/exclude.c (excluded_file_name): Abort on unexpected value,
+       rather than masking a coding bug.
+       Suggested by Bruno Haible.
+
+2009-10-30  Jim Meyering  <meyering@redhat.com>
+
+       perl scripts: remove #!/usr/bin/perl in favor of more portable...
+       Rather than putting #!/usr/bin/perl on the first line,
+       start with a variant of what's recommended by "man perlrun" that
+       invokes the first "perl" program from your shell's search path.
+       * build-aux/gitlog-to-changelog: Replace #!... as above.
+       Add a "Local Variables" perl mode setting.
+       Prompted by a patch from Ludovic Courtès.
+       Improved by Eric Blake.
+       * build-aux/useless-if-before-free: Likewise.
+       * build-aux/announce-gen: Likewise.
+       * build-aux/update-copyright: Likewise.
+
+2009-10-29  Eric Blake  <ebb9@byu.net>
+
+       filenamecat-lgpl: adjust clients
+       * modules/linkat (Depends-on): Use filenamecat-lgpl, not
+       filenamecat.
+       * modules/renameat (Depends-on): Likewise.
+
+       filenamecat: split into filenamecat-lgpl
+       * modules/filenamecat-lgpl: New module.
+       * modules/filenamecat (Files): Move library-safe files into
+       filenamecat-lgpl.
+       (Depends-on): Add filenamecat-lgpl.
+       (configure.ac): Declare witness.
+       * lib/filenamecat.h (file_name_concat): Only declare when using
+       GPL module.
+       * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
+       Move...
+       * lib/filenamecat-lgpl.c: ...into new file.
+       * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
+       (gl_FILE_NAME_CONCAT): Use it.
+       * MODULES.html.sh (File system functions): Mention new module.
+
+       argp: avoid memory leak
+       * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
+       * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
+       base_name, since the latter malloc()s and can call exit().
+       Leak introduced 2006-07-03.
+
+       dirname-lgpl: adjust clients that don't need full dirname
+       * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
+       * modules/filenamecat (Depends-on): Likewise.
+       * modules/linkat (Depends-on): Likewise.
+       * modules/mkancesdirs (Depends-on): Likewise.
+       * modules/mkdir (Depends-on): Likewise.
+       * modules/openat (Depends-on): Likewise.
+       * modules/savewd (Depends-on): Likewise.
+       * modules/rename (Depends-on): Likewise.
+       (License): Relax license.
+       * modules/mkdir-tests (Depends-on): Drop progname.
+       (Makefile.am): Delete unneeded LDADD.
+       * modules/rename-tests (Depends-on, Makefile.am): Likewise.
+
+       dirname: split into dirname-lgpl
+       * modules/dirname-lgpl: New module.
+       * modules/dirname (Files): Move library-safe files into
+       dirname-lgpl.
+       (Depends-on): Add dirname-lgpl.
+       (configure.ac): Declare witness.
+       * modules/double-slash-root (License): Relax license.
+       * lib/dirname.h (base_name, dir_name): Only declare when using GPL
+       module.
+       * lib/dirname.c (dir_len, mdir_name): Move...
+       * lib/dirname-lgpl.c: ...into new file.
+       * lib/basename.c (last_component, base_len): Move...
+       * lib/basename-lgpl.c: ...into new file.
+       * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
+       (gl_DIRNAME): Use it.
+       * MODULES.html.sh (Enhancements for POSIX:2008 functions):
+       Mention new module.
+       * modules/dirname-tests (Depends-on): Add progname.
+       * tests/test-dirname.c (program_name): Delete.
+
+       mkdir: make safe for libraries
+       * modules/mkdir (Depends-on): Drop xalloc.
+       * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
+       exit.
+
+       tests: avoid some compiler warnings
+       * tests/test-getaddrinfo.c (simple): Mark static, and allow string
+       literals.
+       * tests/test-memchr.c (main): Avoid type mismatch.
+       * tests/test-arpa_inet.c (main): Avoid unused parameters.
+       * tests/test-base64.c (main): Likewise.
+       * tests/test-getdelim.c (main): Likewise.
+       * tests/test-gethostname.c (main): Likewise.
+       * tests/test-getline.c (main): Likewise.
+       * tests/test-netinet_in.c (main): Likewise.
+       * tests/test-select.c (open_server_socket, main): Likewise.
+       * tests/test-select-stdin.c (main): Likewise.
+       * tests/test-sockets.c (main): Likewise.
+       * tests/test-strsignal.c (main): Likewise.
+       * tests/test-sys_select.c (main): Likewise.
+       * tests/test-sys_socket.c (main): Likewise.
+       * tests/test-u64.c (main): Likewise.
+       * tests/test-xfprintf-posix.c (main): Likewise.
+       * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
+
+       sockets: avoid compiler warning
+       * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
+
+       maint: detect usage(1) and other suspicious exits
+       * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
+
+2009-10-29  Jim Meyering  <meyering@redhat.com>
+
+       timespec: long-to-int truncation could make timespec_cmp malfunction
+       * lib/timespec.h (timespec_cmp): Do not interpret a difference of
+       a multiple of 2^32 nanoseconds as no difference.
+
+2009-10-28  Jim Meyering  <meyering@redhat.com>
+
+       fprintftime: wrap macro code argument in "do {...} while(0)"
+       * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
+       cpy macro must be a statement that can be followed by a semicolon.
+       Now that the else clause contains a comment and is hence longer
+       than one line, I require curly braces.  That in turn requires
+       that we wrap this code block in the standard do...while(0).
+
+       fprintftime: remove stray semicolon from previous change
+       * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
+
+       fprintftime: avoid a warning about ignored fwrite return value
+       * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
+       (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
+       that is unsafe.
+       * modules/fprintftime (Depends-on): Add ignore-value.
+
+       exclude: avoid an unwarranted warning
+       * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
+
+2009-10-27  Eric Blake  <ebb9@byu.net>
+
+       fseek: avoid compilation failure when fflush is replaced
+       * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
+       * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
+       module is in use.
+       * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
+       module is not in use; since REPLACE_FSEEK worked otherwise.
+       (GNULIB_FTELLO): Likewise for ftell.
+       Reported by Ian Beckwith and others.
+
+2009-10-27  Bruno Haible  <bruno@clisp.org>
+
+       * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
+       Reported by Jim Meyering.
+
+2009-10-27  Jim Meyering  <jim@meyering.net>
+           Bruno Haible  <bruno@clisp.org>
+
+       Avoid warning despite dropping the return value of fwrite.
+       * lib/unicodeio.c: Include ignore-value.h.
+       (fwrite_success_callback): Explicitly ignore fwrite's return value.
+       * modules/unicodeio (Depends-on): Add ignore-value.
+
+2009-10-26  Eric Blake  <ebb9@byu.net>
+
+       areadlinkat: fix fallback path
+       * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
+       pointer and zero.
+
+2009-10-22  Pádraig Brady  <P@draigBrady.com>
+
+       Use a better IO block size for modern systems
+       * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
+       * lib/md2.c: Likewise.
+       * lib/md4.c: Likewise.
+       * lib/md5.c: Likewise.
+       * lib/sha1.c: Likewise.
+       * lib/sha256.c: Likewise.
+       * lib/sha512.c: Likewise.
+
+2009-10-22  Eric Blake  <ebb9@byu.net>
+
+       tests: avoid several compiler warnings
+       * tests/test-getcwd.c (main): Avoid buffer underflow.
+       * tests/test-getdate.c (main): String literals are not safe with
+       putenv, so use setenv.  Declare unused argument.
+       * modules/getdate-tests (Depends-on): Add setenv.
+       * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
+       problems with string literals in char *.
+       * tests/test-hash.c (main): Avoid shadowing declaration.
+       (insert_new): Treat string literals as char const *.
+       * tests/test-getopt.h (test_getopt): Likewise.
+       (getopt_loop): Alter types to minimize casting elsewhere.
+       * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
+       (test_getopt_long_posix): Likewise.
+       (do_getopt_long): Add wrapper to minimize casting.
+       * tests/test-atexit.c (clear_temp_file): Use void.
+       * tests/test-areadlink-with-size.c (main): Declare unused
+       arguments.
+       * tests/test-areadlink.c (main): Likewise.
+       * tests/test-areadlinkat-with-size.c (main): Likewise.
+       * tests/test-areadlinkat.c (main): Likewise.
+       * tests/test-canonicalize-lgpl.c (main): Likewise.
+       * tests/test-canonicalize.c (main): Likewise.
+       * tests/test-dirent-safer.c (main): Likewise.
+       * tests/test-dirname.c (main): Likewise.
+       * tests/test-dup2.c (main): Likewise.
+       * tests/test-fchdir.c (main): Likewise.
+       * tests/test-fcntl-h.c (main): Likewise.
+       * tests/test-fcntl-safer.c (main): Likewise.
+       * tests/test-fdopendir.c (main): Likewise.
+       * tests/test-fdutimensat.c (main): Likewise.
+       * tests/test-fflush.c (main): Likewise.
+       * tests/test-filenamecat.c (main): Likewise.
+       * tests/test-filevercmp.c (main): Likewise.
+       * tests/test-fopen-safer.c (main): Likewise.
+       * tests/test-fopen.c (main): Likewise.
+       * tests/test-fpending.c (main): Likewise.
+       * tests/test-fpurge.c (main): Likewise.
+       * tests/test-freading.c (main): Likewise.
+       * tests/test-fstatat.c (main): Likewise.
+       * tests/test-fsync.c (main): Likewise.
+       * tests/test-futimens.c (main): Likewise.
+       * tests/test-getndelim2.c (main): Likewise.
+       * tests/test-gettimeofday.c (main): Likewise.
+       * tests/test-getopt.c (main): Likewise.
+       * tests/test-i-ring.c (main): Likewise.
+       * tests/test-inttypes.c (main): Likewise.
+       * tests/test-link.c (main): Likewise.
+       * tests/test-lstat.c (main): Likewise.
+       * tests/test-math.c (main): Likewise.
+       * tests/test-md5.c (main): Likewise.
+       * tests/test-memchr2.c (main): Likewise.
+       * tests/test-memrchr.c (main): Likewise.
+       * tests/test-mkdir.c (main): Likewise.
+       * tests/test-mkdirat.c (main): Likewise.
+       * tests/test-mkfifoat.c (main): Likewise.
+       * tests/test-open.c (main): Likewise.
+       * tests/test-openat-safer.c (main): Likewise.
+       * tests/test-openat.c (main): Likewise.
+       * tests/test-quotearg.c (main): Likewise.
+       * tests/test-rawmemchr.c (main): Likewise.
+       * tests/test-readlink.c (main): Likewise.
+       * tests/test-remove.c (main): Likewise.
+       * tests/test-rename.c (main): Likewise.
+       * tests/test-renameat.c (main): Likewise.
+       * tests/test-rmdir.c (main): Likewise.
+       * tests/test-sha1.c (main): Likewise.
+       * tests/test-signal.c (main): Likewise.
+       * tests/test-sigaction.c (main): Likewise.
+       * tests/test-stat.c (main): Likewise.
+       * tests/test-stat-time.c (main): Likewise.
+       * tests/test-stddef.c (main): Likewise.
+       * tests/test-stdint.c (main): Likewise.
+       * tests/test-stdio.c (main): Likewise.
+       * tests/test-stdlib.c (main): Likewise.
+       * tests/test-strchrnul.c (main): Likewise.
+       * tests/test-strerror.c (main): Likewise.
+       * tests/test-string.c (main): Likewise.
+       * tests/test-strtod.c (main): Likewise.
+       * tests/test-strverscmp.c (main): Likewise.
+       * tests/test-symlink.c (main): Likewise.
+       * tests/test-symlinkat.c (main): Likewise.
+       * tests/test-sys_stat.c (main): Likewise.
+       * tests/test-sys_time.c (main): Likewise.
+       * tests/test-time.c (main): Likewise.
+       * tests/test-unistd.c (main): Likewise.
+       * tests/test-unlink.c (main): Likewise.
+       * tests/test-unlinkat.c (main): Likewise.
+       * tests/test-utimens.c (main): Likewise.
+       * tests/test-utimensat.c (main): Likewise.
+       * tests/test-version-etc.c (main): Likewise.
+       * tests/test-wchar.c (main): Likewise.
+       * tests/test-wctype.c (main): Likewise.
+       * tests/test-xprintf-posix.c (main): Likewise.
+       * tests/test-posixtm.c (main): Likewise.
+       (STREQ): Delete unused macro.
+       * tests/test-linkat.c (main): Declare unused arguments.  Avoid
+       shadowed variables.
+       * tests/test-memchr.c (main): Likewise.
+
+2009-10-21  Eric Blake  <ebb9@byu.net>
+
+       areadlinkat: avoid failure on older glibc
+       * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
+       rather than mis-comparing 0 against FUNC_RESULT of char*.
+
+2009-10-21  Bruno Haible  <bruno@clisp.org>
+
+       * modules/stpncpy (License): Relicense under LGPLv2+.
+       Reported by David Lutterkort <lutter@redhat.com>.
+
+2009-10-20  Eric Blake  <ebb9@byu.net>
+
+       utimensat: work around Solaris 9 bug
+       * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
+       has trailing slash bugs.
+       * tests/test-lutimens.h (test_lutimens): Enhance test.
+       * tests/test-utimens.h (test_utimens): Likewise.
+       * doc/posix-functions/utime.texi (utime): Enhance documentation.
+       * doc/posix-functions/utimes.texi (utimes): Likewise.
+       * doc/posix-functions/utimensat.texi (utimensat): Likewise.
+       * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
+       * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
+       * doc/posix-functions/futimens.texi (futimens): Likewise.
+
+       fdutimensat: new module
+       * modules/fdutimensat: New file.
+       * lib/fdutimensat.c (fdutimensat): Likewise.
+       * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
+       * MODULES.html.sh (File system functions): Mention module.
+       * modules/fdutimensat-tests: New test.
+       * tests/test-fdutimensat.c: Likewise.
+
+       doc: regenerate INSTALL
+       * doc/INSTALL: Reflect recent autoconf update.
+       * doc/INSTALL.ISO: Likewise.
+       * doc/INSTALL.UTF-8: Likewise.
+
+2009-10-20  Pádraig Brady  <P@draigBrady.com>
+
+       acl: warn if ACL support is not detected
+       * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
+
+2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
+
+       * lib/nproc.h: Add extern "C" block for C++.
+
+2009-10-18  Reuben Thomas  <rrt@sc3d.org>
+           Bruno Haible  <bruno@clisp.org>
+
+       * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
+       * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
+       * doc/posix-functions/isalpha.texi: Likewise.
+       * doc/posix-functions/isblank.texi: Likewise.
+       * doc/posix-functions/iscntrl.texi: Likewise.
+       * doc/posix-functions/isdigit.texi: Likewise.
+       * doc/posix-functions/isgraph.texi: Likewise.
+       * doc/posix-functions/islower.texi: Likewise.
+       * doc/posix-functions/isprint.texi: Likewise.
+       * doc/posix-functions/ispunct.texi: Likewise.
+       * doc/posix-functions/isspace.texi: Likewise.
+       * doc/posix-functions/isupper.texi: Likewise.
+       * doc/posix-functions/isxdigit.texi: Likewise.
+
+2009-10-18  Bruno Haible  <bruno@clisp.org>
+
+       Tests for module 'isblank'.
+       * modules/isblank-tests: New file.
+       * tests/test-isblank.c: New file.
+
+       New module 'isblank'.
+       * lib/isblank.c: New file.
+       * m4/isblank.m4: New file.
+       * modules/isblank: New file.
+       * doc/posix-functions/isblank.texi: Mention the new module.
+
+2009-10-18  Bruno Haible  <bruno@clisp.org>
+
+       New module 'ctype'.
+       * lib/ctype.in.h: New file.
+       * m4/ctype.m4: New file.
+       * modules/ctype: New file.
+       * doc/posix-headers/ctype.texi: Mention the new module.
+
+2009-10-18  Jim Meyering  <meyering@redhat.com>
+
+       m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
+       Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
+       right after its initialization, rather than farther down.
+       Keeping these in close proximity makes it easier to ensure
+       that each such variable is initialized.  E.g.,
+
+           LIB_CLOCK_GETTIME=
+           AC_SUBST([LIB_CLOCK_GETTIME])
+
+       This change also increments these serial numbers.
+       * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
+       * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
+       * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
+
+2009-10-18  Bruno Haible  <bruno@clisp.org>
+
+       Don't let environment variables perturb build.
+       * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
+       (gl_PREREQ_GETHRXTIME): ... not here.
+
 2009-10-18  Bruno Haible  <bruno@clisp.org>
 
        Avoid symlink attack in localcharset module.
        pstat_getdynamic.
 
 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
-            Bruno Haible  <bruno@clisp.org>
+           Bruno Haible  <bruno@clisp.org>
 
        Implement nproc for NetBSD, OpenBSD.
        * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
 
 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
 
-       * lib/argp-version-etc.c (program_authors): Add const
-       qualifier.
-       * lib/version-etc.c: Fix typos in the comments.
-       * modules/argp-version-etc: Depends on version-etc.
+       * lib/argp-version-etc.c (program_authors): Add const
+       qualifier.
+       * lib/version-etc.c: Fix typos in the comments.
+       * modules/argp-version-etc: Depends on version-etc.
 
 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>