acl: Avoid test failure on Cygwin-hosted mingw.
[gnulib.git] / ChangeLog
index f39ca5a..7c1f4e2 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
+2010-05-09  Bruno Haible  <bruno@clisp.org>
+
+       acl: Avoid test failure on Cygwin-hosted mingw.
+       * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
+
+2010-05-09  Bruno Haible  <bruno@clisp.org>
+
+       error: Use system's fcntl function.
+       * lib/error.c (fcntl): Undefine.
+
+2010-05-09  Jim Meyering  <meyering@redhat.com>
+
+       verify: adjust formatting to be more consistent
+       * lib/verify.h (_GL_GENSYM): Add a space before each of a few
+       argument-list '('s, and after one comma.
+
+2010-05-09  Bruno Haible  <bruno@clisp.org>
+
+       error: More reliable output on mingw.
+       * lib/error.c: Include <windows.h>.
+       (is_open): New function.
+       (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
+       defined.
+
+2010-05-09  Bruno Haible  <bruno@clisp.org>
+
+       vasnprintf: Fix syntax errors in libintl build on mingw.
+       * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
+       pad_ourselves and prec_ourselves after use.
+
+2010-05-08  Bruno Haible  <bruno@clisp.org>
+
+       * lib/config.charset: Update comments for Cygwin 1.7.
+       * lib/localcharset.c: Likewise.
+
+2010-05-07  Jim Meyering  <meyering@redhat.com>
+
+       init.sh: improve comments
+       * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
+       . "${srcdir=.}/init.sh"; path_prepend_ .
+       Add a note about path_prepend_ and the alternative of using
+       TESTS_ENVIRONMENT.
+
+2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
+
+       exclude: Unescape hashed patterns in wildcard mode.
+       * lib/exclude.c (add_exclude): Unescape the pattern before adding it
+       to the hash list.
+       * tests/test-exclude8.sh: New test case.
+       * modules/exclude-tests: Add new test.
+
+2010-05-05  Eric Blake  <eblake@redhat.com>
+
+       verify: automate tests
+       * modules/verify-tests: New module.
+       * tests/test-verify.sh: New file.
+       * tests/test-verify.c: Guard each negative test with a unique id.
+       Also avoid warning about unused left hand of comma expressions.
+
+2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
+
+       Further improvements to verify.h, suggested by Eric Blake.
+       * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
+       the GL_* versions, to avoid collision with OpenGL.
+       (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
+       __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
+       than testing merely whether it's defined.
+
+       Modify verify.h to pacify gcc -Wredundant_decls.
+       * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
+       These use the prefix "GL_" since they're likely to be useful elsewhere.
+       We may need to break them out into a different .h file.
+       (__COUNTER__): Define to 0 if the compiler doesn't support it.
+       (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
+       of verify_function__.
+
+2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
+
+       Tests for module pwrite.
+       * modules/pwrite-tests: New file.
+       * tests/test-pwrite.sh: New file.
+       * tests/test-pwrite.c: New file.
+
+       New module pwrite.
+       * lib/unistd.in.h (pwrite): New declaration.
+       * lib/pwrite.c: New file, from glibc with modifications.
+       * m4/pwrite.m4: New file.
+       * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
+       (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
+       REPLACE_PWRITE.
+       * modules/pwrite: New file.
+       * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
+       REPLACE_PWRITE.
+       * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
+       * doc/posix-functions/pwrite.texi: Mention the new module.
+
+2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
+
+       pread: Update documentation.
+       * doc/posix-functions/pread.texi: Mention the 'pread' module.
+
+2010-05-04  Eric Blake  <eblake@redhat.com>
+
+       docs: update cygwin progress
+       * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
+       this bug.
+       * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
+       Added in cygwin 1.7.2.
+       * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
+       Likewise.
+       * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
+       Likewise.
+       * doc/glibc-functions/dup3.texi (dup3): Likewise.
+       * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
+       * doc/glibc-functions/accept4.texi (accept4): Likewise.
+       * doc/posix-functions/strfmon.texi (strfmon): Likewise.
+       * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
+       Mention nproc module.
+       * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
+       bug in cygwin 1.7.5 addition.
+       * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
+       * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
+       * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
+       * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
+       1.7.5.
+       * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
+       * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
+       * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
+       * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
+       * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
+       * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
+       * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
+       * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
+       * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
+       * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
+       * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
+       * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
+       * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
+       * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
+       * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
+       Likewise.
+       * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
+       * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
+       * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
+       * doc/glibc-functions/xdr_reference.texi (xdr_reference):
+       Likewise.
+       * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
+       * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
+       * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
+       * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
+       * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
+       * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
+       * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
+       * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
+       Likewise.
+       * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
+       * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
+       * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
+       * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
+       * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
+       Likewise.
+       * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
+       Likewise.
+       * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
+       Likewise.
+       * doc/glibc-functions/xdrrec_endofrecord.texi
+       (xdrrec_endofrecord): Likewise.
+       * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
+       * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
+       Likewise.
+       * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
+       Likewise.
+
+2010-05-04  Jim Meyering  <meyering@redhat.com>
+
+       gendocs.sh: make its "-s FILE" option more useful
+       * build-aux/gendocs.sh: When honoring the -s FILE option, update
+       $PACKAGE to reflect the probably-different basename of "FILE".
+
+2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
+
+       bootstrap: don't ignore download_po_files failure
+       * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
+       failure.
+
+2010-05-03  Jim Meyering  <meyering@redhat.com>
+
+       maint.mk: allow to pass options to gendocs.sh
+       * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
+       (gendocs_options_): New overridable variable.
+
+       gnu-web-doc-update: don't ignore configure or build failure
+       * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
+
+       announce-gen: backslash-escape '@'s in --help output
+       * build-aux/announce-gen: Fix syntax errors.
+
+       maint.mk, announce-gen: allow project-specific announcement mail headers
+       * top/maint.mk (translation_project_): Define default.
+       (announcement_Cc_, announcement_mail_headers_): Likewise.
+       (announcement): Invoke announce-gen with new --mail-headers option.
+       * build-aux/announce-gen: New option: --mail-headers=HEADERS.
+
+       test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
+       * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
+       "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
+       on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
+       line in the "err2" output file when running "make check" in verbose
+       mode (i.e., with set -x enabled).
+
+2010-05-03  Bruno Haible  <bruno@clisp.org>
+
+       wctob: Fix for weird platforms.
+       * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
+       argument value.
+
+2010-05-03  Jim Meyering  <meyering@redhat.com>
+
+       maint.mk: prohibit unwarranted use of <strings.h>
+       * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
+       strings.h in a file that does not also use strcasecmp, strncasecmp,
+       ffs or ffsll.
+
+       maint.mk: remove obsolete comments
+       * top/maint.mk: Remove stale, commented-out rules.
+
+2010-05-02  Bruno Haible  <bruno@clisp.org>
+
+       wcwidth: Declare also when it's aliased.
+       * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
+       macro.
+
+2010-05-02  Bruno Haible  <bruno@clisp.org>
+
+       Fix regression from 2010-04-25.
+       * gnulib-tool (func_modules_transitive_closure): Check the status of
+       all modules, not only of the tests that are of the form foo-tests where
+       foo is a module.
+
+2010-05-02  Bruno Haible  <bruno@clisp.org>
+
+       wctob: Work around nasty Cygwin 1.7.2 bug.
+       * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
+       * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
+
+2010-05-01  Bruno Haible  <bruno@clisp.org>
+
+       fpurge: Sharper test.
+       * tests/test-fpurge.c (main): Add one more ftell check.
+       * modules/fpurge-tests (Depends-on): Add ftell.
+       Suggested by Eric Blake.
+
+2010-05-01  Bruno Haible  <bruno@clisp.org>
+
+       ftello: Another test.
+       * tests/test-ftello3.c: New file.
+       * modules/ftello-tests (Files): Add it.
+       (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
+       MOSTLYCLEANFILES.
+
+       ftell: Another test.
+       * tests/test-ftell3.c: New file.
+       * modules/ftell-tests (Files): Add it.
+       (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
+       MOSTLYCLEANFILES.
+
+2010-05-01  Bruno Haible  <bruno@clisp.org>
+
+       ftell, ftello: Work around Solaris bug.
+       * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
+       * lib/ftello.c: Include stdio-impl.h.
+       (ftello): On Solaris, when _IOWRT is set, compute the result without
+       looking at _IOREAD.
+       * modules/ftello (Files): Add lib/stdio-impl.h.
+       * doc/posix-functions/ftell.texi: Mention Solaris bug.
+       * doc/posix-functions/ftello.texi: Likewise.
+       Reported by Eric Blake.
+
+2010-05-01  Bruno Haible  <bruno@clisp.org>
+
+       freading: Adapt to special meaning of _IOREAD flag on Solaris.
+       * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
+       the _IOWRT flag is also set.
+
+2010-05-01  Bruno Haible  <bruno@clisp.org>
+
+       Fix doc about a HP-UX stdio bug.
+       * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
+       * doc/posix-functions/ftello.texi: Likewise.
+
+2010-05-01  Bruno Haible  <bruno@clisp.org>
+
+       lseek test: Fix failure on Solaris.
+       * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
+       output.
+
+2010-04-30  Jim Meyering  <meyering@redhat.com>
+
+       bootstrap: don't ignore failure to generate po*/Makevars
+       * build-aux/bootstrap (with_gettext): Don't ignore failure
+       to create po/Makevars or runtime-po/Makevars.
+
+2010-04-29  Eric Blake  <eblake@redhat.com>
+
+       headers: relax license to LGPLv2+
+       * modules/fcntl-h (License): Relax license.
+       * modules/getopt-posix (License): Likewise.
+       * modules/locale (License): Likewise.
+       * modules/math (License): Likewise.
+       * modules/pty (License): Likewise.
+       * modules/sched (License): Likewise.
+       * modules/search (License): Likewise.
+       * modules/spawn (License): Likewise.
+       * modules/stdarg (License): Likewise.
+       * modules/sysexits (License): Likewise.
+
+2010-04-29  Jim Meyering  <meyering@redhat.com>
+
+       inttypes: relax license to LGPLv2+
+       * modules/inttypes (License): Relax license.
+
+2010-04-29  Simon Josefsson  <simon@josefsson.org>
+
+       * top/maint.mk (indent): Run twice to produce idempotent results.
+
+2010-04-28  Bruno Haible  <bruno@clisp.org>
+
+       getdate: Generate getdate.c in the source directory.
+       * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
+       MOSTLYCLEANFILES.
+       Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
+
+2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
+
+       * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
+       is not declared as a const *; avoid warnings in that case.
+
+2010-04-28  Eric Blake  <eblake@redhat.com>
+
+       canonicalize-lgpl: avoid compiler warning
+       * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
+       declaration' / 'extraneous semicolon' warning with some compilers.
+       Reported by Andreas Gruenbacher.
+
+2010-04-28  Jim Meyering  <meyering@redhat.com>
+
+       init.sh: ensure a more reliable exit status when exiting via trap
+       * tests/init.sh (setup_): Don't rely on $? in signal handler.
+       Inspired by patches from Dmitry V. Levin.
+       Also trap on signal 3 (SIGQUIT).
+
+2010-04-27  Bruno Haible  <bruno@clisp.org>
+
+       Update doc about utimes().
+       * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
+       'utimens' module.
+       Reported by Andreas Gruenbacher <agruen@suse.de>.
+
+2010-04-27  Eric Blake  <eblake@redhat.com>
+
+       full-read, full-write: relax license
+       * modules/full-read (License): Drop to LGPLv2+.
+       * modules/full-write (License): Likewise.
+       * modules/safe-read (License): Likewise.
+       * modules/safe-write (License): Likewise.
+
+       pthread: mention library for linking
+       * modules/pthread (Link): Mention $(LIB_PTHREAD).
+
+2010-04-27  Jim Meyering  <meyering@redhat.com>
+
+       maint.mk: fix a bug introduced in last change
+       * top/maint.mk (gl_assured_headers_): Now that all names are on
+       one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
+       is not anchored to end of word, it should be adequate.
+
+       maint.mk: avoid side-effect in latest syntax-check
+       * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
+       to run commands via $(shell...), and hence to incur cost only when
+       the new rule is actually run.
+
+       maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
+       Derive the list of guaranteed header names from gnulib/lib/*.in.h,
+       and use that to create a regexp used to detect all #if HAVE_..._H uses.
+       * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
+       (gl_assured_headers_, az_, AZ_): Define.
+       (gl_header_upper_case_or_, gl_have_header_regex_): Define.
+
+2010-04-26  Jim Meyering  <jim@meyering.net>
+           Bruno Haible  <bruno@clisp.org>
+
+       gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
+       * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
+       Prompted by an exchange with Gilles Espinasse.
+
+2010-04-26  Jim Meyering  <meyering@redhat.com>
+
+       git-version-gen: aesthetic tweak
+       * build-aux/git-version-gen: Use "$nl" rather than a literal,
+       so that the command remains on a single line.
+
+2010-04-26  Eric Blake  <eblake@redhat.com>
+
+       git-version-gen: allow use on EBCDIC hosts
+       * build-aux/git-version-gen (dirty): Use literal rather than tying
+       ourselves to ascii.
+       Reported by Steve Goetze.
+
+2010-04-25  Bruno Haible  <bruno@clisp.org>
+
+       netdb: Add support for GNULIB_POSIXCHECK.
+       * lib/netdb.in.h: Include warn-on-use.h.
+       (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
+       functions are used when GNULIB_POSIXCHECK is defined and the
+       getaddrinfo module is not in use.
+       * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
+       freeaddrinfo, gai_strerror, getnameinfo are declared.
+       * modules/netdb (Depends-on): Add warn-on-use.
+       (Makefile.am): Include warn-on-use.h in netdb.h.
+
+2010-04-24  Ian Beckwith  <ianb@erislabs.net>
+
+       build: avoid "make check" failure without .git/ directory
+       * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
+       there is no .git/ directory.
+
+2010-04-25  Bruno Haible  <bruno@clisp.org>
+
+       ptsname: Fix misuse of ttyname_r.
+       * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
+       of errno.
+
+2010-04-25  Bruno Haible  <bruno@clisp.org>
+
+       ttyname_r: Make it work on Solaris 10.
+       * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
+       if the system function has the POSIX declaration. Test whether the
+       function fails if the buffer is less than 128 bytes large.
+       * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
+       system's ttyname_r function. Provide a reasonably large buffer.
+       * modules/ttyname_r (Depends-on): Add extensions.
+       * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
+
+2010-04-25  Bruno Haible  <bruno@clisp.org>
+
+       Use the 'extensions' module for some more functions on Solaris.
+       * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
+       module.
+       * doc/posix-functions/ctime_r.texi: Likewise.
+       * doc/posix-functions/getgrgid_r.texi: Likewise.
+       * doc/posix-functions/getgrnam_r.texi: Likewise.
+       * doc/posix-functions/getpwnam_r.texi: Likewise.
+       * doc/posix-functions/getpwuid_r.texi: Likewise.
+       * doc/posix-functions/readdir_r.texi: Likewise.
+       * doc/posix-functions/sigwait.texi: Likewise.
+       * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
+       * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
+
+2010-04-25  Bruno Haible  <bruno@clisp.org>
+
+       ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
+       * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
+       has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
+       * lib/ttyname_r.c: Include <limits.h>.
+       (ttyname_r): Define using the system's ttyname_r function, if it exists
+       and not on Solaris.
+       * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
+       set.
+       * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
+       * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
+       * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
+       Reported by Simon Josefsson.
+
+2010-04-25  Bruno Haible  <bruno@clisp.org>
+
+       Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
+       * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
+       * doc/posix-functions/ctime_r.texi: Likewise.
+       * doc/posix-functions/getgrgid_r.texi: Likewise.
+       * doc/posix-functions/getgrnam_r.texi: Likewise.
+       * doc/posix-functions/getlogin_r.texi: Likewise.
+       * doc/posix-functions/getpwnam_r.texi: Likewise.
+       * doc/posix-functions/getpwuid_r.texi: Likewise.
+       * doc/posix-functions/readdir_r.texi: Likewise.
+       * doc/posix-functions/sigwait.texi: Likewise.
+       * doc/posix-functions/ttyname_r.texi: Likewise.
+       Reported by Simon Josefsson.
+
+2010-04-25  Bruno Haible  <bruno@clisp.org>
+
+       gnulib-tool: Don't include hairy tests of dependencies in testdirs.
+       * gnulib-tool (func_usage): Document that --with-*-tests options apply
+       also to --create-testdir.
+       (func_acceptable): Don't consider the status of *-tests modules here.
+       (func_modules_transitive_closure): Consider it here, before including a
+       test module.
+       (func_import, func_create_testdir): Set inc_all_direct_tests,
+       inc_all_indirect_tests.
+       * doc/gnulib.texi (Extra tests modules): Document new behaviour of
+       --create-testdir and --create-megatestdir.
+
+2010-04-25  Bruno Haible  <bruno@clisp.org>
+
+       gnulib-tool: Add --without-*-tests options.
+       * gnulib-tool (func_usage): Document the --without-*-tests options.
+       (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
+       excl_unportable_tests): New variables.
+       Fail if they are specified with --import or --update.
+       (func_acceptable): Respect the excl_*_tests variables.
+       (func_import): Set the excl_*_tests variables to empty.
+
+2010-04-25  Simon Josefsson  <simon@josefsson.org>
+            Bruno Haible  <bruno@clisp.org>
+
+       Work around a MacOS X 10.4 bug with openpty.
+       * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
+       * tests/test-openpty.c (main): Close the master side explicitly.
+
+2010-04-25  Bruno Haible  <bruno@clisp.org>
+
+       strnlen: Fix a C++ test error on MacOS X and Solaris.
+       * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
+       the function is not declared.
+       Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
+       Simon Josefsson.
+
+2010-04-24  Bruno Haible  <bruno@clisp.org>
+
+       Avoid a gcc warning.
+       * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
+       of correct type for %08lx directive.
+       Reported by Eric Blake.
+
+2010-04-24  Bruno Haible  <bruno@clisp.org>
+
+       vasnprintf: Correct errno value in case of out-of-memory.
+       * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
+       or sprintf. Use the errno value from SNPRINTF or sprintf.
+       Reported by Ian Beckwith <ianb@erislabs.net>.
+
+2010-04-24  Bruno Haible  <bruno@clisp.org>
+
+       ansi-c++-opt: Find correct compiler when cross-compiling.
+       * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
+       AC_CHECK_PROGS.
+       Reported by Simon Josefsson.
+
+2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
+
+       vc-list-files: Add support for subversion
+       * build-aux/vc-list-files: Use "svn list" to generate the list of
+       files controlled by subversion.
+
+2010-04-23  Jim Meyering  <meyering@redhat.com>
+
+       vc-list-files tests: convert to use init.sh
+       * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
+       path_prepend_.
+       Use Exit, not exit.
+       Use skip_ rather than open coding it.
+       Remove trap set-up and compare definitions.
+       * tests/test-vc-list-files-git.sh: Likewise.
+       * modules/vc-list-files-tests (Files): Add tests/init.sh.
+
+2010-04-22  Simon Josefsson  <simon@josefsson.org>
+
+       * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
+       backup files.
+
+2010-04-21  Simon Josefsson  <simon@josefsson.org>
+
+       * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
+
+2010-04-20  Eric Blake  <eblake@redhat.com>
+
+       tests: be robust to ignored SIGPIPE
+       * tests/test-select-in.sh: Consume all output.
+       * tests/test-lseek.sh: Check correct exit status, while avoiding
+       EPIPE.
+
+2010-04-20  Simon Josefsson  <simon@josefsson.org>
+            Bruno Haible  <bruno@clisp.org>
+
+       visibility: Don't use -fvisibility if it leads to a warning.
+       * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
+       yes, don't pretend that visibility works if it leads to a warning.
+       Reported by Mike Gran <spk121@yahoo.com>.
+
+2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
+
+       * build-aux/bootstrap: Use "git -h" for testing for supported options
+       instead of "git --help".  The short-form option only shows a summary,
+       and doesn't layout the full man page.  Grep for the full option name
+       in the summary, too.
+
+2010-04-19  Bruno Haible  <bruno@clisp.org>
+
+       relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
+       * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
+       * doc/relocatable-maint.texi (Supporting Relocation): Remove the
+       mention of RELOCATABLE_STRIP.
+       Reported by Sylvain Beucler <beuc@beuc.net>.
+
+2010-04-19  Bruno Haible  <bruno@clisp.org>
+
+       * lib/diffseq.h: Fix typo in comment.
+       Reported by Eric Blake.
+
+2010-04-19  Bruno Haible  <bruno@clisp.org>
+
+       ioctl: Move autoconf macro to a .m4 file.
+       * m4/ioctl.m4: New file, extracted from modules/ioctl.
+       * modules/ioctl (Files): Add it.
+       (configure.ac): Simply invoke gl_FUNC_IOCTL.
+       Reported by Ian Beckwith <ianb@erislabs.net>.
+
+2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
+            Bruno Haible  <bruno@clisp.org>
+
+       diffseq: Accommodate use-case with abstract arrays.
+       * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
+       is not defined.
+       (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
+       defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
+
+2010-04-18  Bruno Haible  <bruno@clisp.org>
+
+       * doc/posix-headers/stdbool.texi: More precise wording.
+
+2010-04-17  Jim Meyering  <meyering@redhat.com>
+
+       maint.mk: use gnu-style indentation in an embedded perl script
+       * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
+       Rename variable: s/two/last_two_bytes/
+
+2010-04-16  Eric Blake  <eblake@redhat.com>
+
+       test-stdbool: skip test that fails with Solaris CC
+       * tests/test-stdbool.c (f): Skip test that causes compilation
+       error under buggy C++ compiler.
+       * lib/stdbool.in.h: Document the limitation.
+       * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
+
+       setenv: allow compilation with C++
+       * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
+       register keyword.
+
+       stdint: allow test to pass with C++
+       * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
+
+       getopt: allow compilation with C++
+       * lib/getopt_int.h (__ordering): Hoist enum declaration outside
+       struct.
+       * lib/getopt.c (_getopt_internal_r): Use correct type.
+       Reported by Dagobert Michelson, via Joel E. Denny.
+
+2010-04-16  Bruno Haible  <bruno@clisp.org>
+
+       Override netdb.h always.
+       * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
+       * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
+       Reported by Ludovic Courtès <ludo@gnu.org>.
+
+2010-04-15  Bruno Haible  <bruno@clisp.org>
+
+       openpty: Fix mistake from 2010-03-21.
+       * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
+       Reported by Simon Josefsson.
+
+2010-04-15  Eric Blake  <eblake@redhat.com>
+
+       test-forkpty: fix expected signature
+       * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
+       Reported by Simon Josefsson.
+
+2010-04-15  Jim Meyering  <meyering@redhat.com>
+
+       maint.mk: texinfo_suffix_re_: correct the default regexp
+       * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
+
+       * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
+       make it configurable via texinfo_suffix_re_.
+
+2010-04-14  Eric Blake  <eblake@redhat.com>
+
+       strtok_r: relax license to LGPLv2+
+       * modules/strtok_r (License): Relax license.
+       Reported by Matthias Bolte.
+
+2010-04-14  Simon Josefsson  <simon@josefsson.org>
+
+       * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
+       version 1.4.4 by default instead of requiring the libgcrypt
+       version used during build.  This makes it possible to use the
+       application with older but still binary compatible libgcrypt
+       versions.
+
+2010-04-13  Eric Blake  <eblake@redhat.com>
+
+       getopt-gnu: match recent glibc fixes and posix ruling
+       * tests/test-getopt.h (test_getopt): Strengthen tests of leading
+       '+' handling, when requesting extensions.
+       * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
+       'W;' handling.
+       * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
+       * doc/posix-functions/getopt.texi (getopt): Document this.
+       * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
+       * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
+       Likewise.
+
+       getopt: merge bug fixes from glibc
+       * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
+       diagnostics.  Honor '+:' correctly.  Reject ';'.
+
+       getopt-posix: detect MacOS bug
+       * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
+       optind when missing a required argument.
+       * doc/posix-functions/getopt.texi (getopt): Document the bug.
+       * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
+       * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
+       Likewise.
+
+       getopt-posix: avoid spurious failure on Solaris
+       * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
+       an indicator that setting optind=1 is sufficient for reset.
+
+       getopt-posix: avoid spurious failure on FreeBSD
+       * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
+       in POSIX mode, since the m4 test uses it.
+
+       gnulib-tool: silence warning on BSD sh
+       * gnulib-tool: Avoid leaking warning about unknown 'declare'.
+
+2010-04-13  Jim Meyering  <meyering@redhat.com>
+
+       doc: users.txt: GNU patch now uses gnulib
+       * users.txt: Add patch.
+
+2010-04-12  Jim Meyering  <meyering@redhat.com>
+
+       maint.mk: generate more concise timing data for syntax-check rules
+       * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
+       " done" from each line that reports a syntax-check test duration.
+
+2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
+
+       git-version-gen: use "git update-index..." rather than "git status"
+       * build-aux/git-version-gen: Use git update-index --refresh, not
+       "git status".  With some versions of git, "git status" would fail
+       to update the index and result in an unwarranted "-dirty" suffix.
+
+2010-04-11  Jim Meyering  <meyering@redhat.com>
+
+       openat: correct formatting (no semantic change)
+       * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
+       Suggested by Bruno Haible.
+
+2010-04-11  Bruno Haible  <bruno@clisp.org>
+
+       Stricter declaration checking in testdirs.
+       * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
+       If for_tests is true, augment AM_CPPFLAGS to define
+       GNULIB_STRICT_CHECKING.
+       * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
+       GNULIB_STRICT_CHECKING is defined, verify that the function is
+       declared.
+
+2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
+            Bruno Haible  <bruno@clisp.org>
+
+       libunistring: Improve configure output.
+       * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
+       Don't say "consider installing GNU libunistring" when checking again
+       with libiconv.
+
+2010-04-11  Bruno Haible  <bruno@clisp.org>
+
+       libunistring: Correct value of $LTLIBUNISTRING.
+       * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
+       correct the value of $LTLIBUNISTRING.
+
+2010-04-11  Bruno Haible  <bruno@clisp.org>
+
+       havelib: Add static libraries to LIBS in the right order.
+       * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
+       -l options, prepend it to $LIBS, instead of appending it to $LIBS.
+
+2010-04-11  Bruno Haible  <bruno@clisp.org>
+
+       libunistring: Detect libunistring also when it depends on libiconv.
+       * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
+       the second AC_LIB_HAVE_LINKFLAGS invocation.
+
+2010-04-11  James Youngman  <jay@gnu.org>
+
+       close-stream: declare local scalars to be "const"
+       * lib/close-stream.c (close_stream): Make boolean variables const
+       to document the fact that we set but do not change them.
+
+2010-04-11  Bruno Haible  <bruno@clisp.org>
+
+       * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
+
+2010-04-11  Jim Meyering  <meyering@redhat.com>
+
+       maint.mk: don't include dist-check.mk
+       * top/maint.mk: Remove bogus include directive.
+
+       maint.mk: improve empty-line-at-EOF check
+       * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
+       solution, rather than tail+Perl-based one.  The latter would read
+       a few kilobytes from the end of each file, and did not handle empty
+       files properly.
+
+       maint.mk: print the elapsed time for each syntax-check rule
+       * top/maint.mk (sc_m_rules_): Save start time in a file.
+       (sc_z_rules_): New rules: remove temp file and print elapsed time.
+       (local-check): Interpose the .z rules
+
+2010-04-11  Jim Meyering  <meyering@redhat.com>
+
+       maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
+       * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
+       empty file with one that ends in an empty line.
+
+2010-04-10  Bruno Haible  <bruno@clisp.org>
+
+       mkdir: Make it work on mingw64.
+       * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
+       * lib/mkdir.c: Update comment.
+       Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
+
+2010-04-10  Bruno Haible  <bruno@clisp.org>
+
+       Don't override improved macro from newer autoconf.
+       * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
+       autoconf >= 2.62.
+       Reported by Joel E. Denny <jdenny@clemson.edu>.
+
+2010-04-10  Jim Meyering  <meyering@redhat.com>
+
+       maint.mk: new syntax-check rule: prohibit empty lines at end of file
+       * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
+
+       maint.mk: correct a diagnostic
+       * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
+       in diagnostic; now use $prohibit.
+
+2010-04-10  Bruno Haible  <address@hidden>
+
+       fchownat: Fix a C++ test error on Solaris 8.
+       * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
+       the function does not exist.
+
+2010-04-10  Bruno Haible  <bruno@clisp.org>
+
+       vasnprintf: Add more tests.
+       * tests/test-vasnprintf-posix.c: Include <errno.h>.
+       (test_function): Test converting an invalid wide string.
+
+       vasnprintf: Correct handling of unconvertible wide string arguments.
+       * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
+       VASNPRINTF.
+       (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
+       if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
+       smaller than the expected maximum need for the directive. Set errno to
+       EILSEQ, not EINVAL, when the directive is 'c' or 's'.
+       (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
+       * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
+       gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
+       * modules/vasnprintf (Files): Add m4/printf.m4.
+       Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
+
+2010-04-10  Bruno Haible  <bruno@clisp.org>
+
+       vasnprintf: Fix crash in %ls directive.
+       * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
+       string is passed as argument to %ls, with no precision and no width.
+       Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
+
+2010-04-10  Bruno Haible  <bruno@clisp.org>
+
+       vasnprintf: Fix multiple test failures on mingw.
+       * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
+       _snprintf, or snwprintf, not _snwprintf.
+
+2010-04-10  Bruno Haible  <bruno@clisp.org>
+
+       write: Fix a C++ test error on mingw.
+       * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
+
+2010-04-10  Bruno Haible  <bruno@clisp.org>
+
+       vasnprintf test: Reduce code duplication.
+       * tests/test-vasnprintf.c (test_function): New function, extracted from
+       test_vasnprintf.
+       (test_vasnprintf, test_asnprintf): Invoke it.
+
+2010-04-10  Bruno Haible  <bruno@clisp.org>
+
+       strnlen: Fix warning in C++ mode on MacOS X.
+       * lib/string.in.h (strnlen): Use the modern idiom.
+       * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
+       defining strnlen as a macro already in <config.h>.
+       * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
+       REPLACE_STRNLEN.
+       * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
+       Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
+
+2010-04-08  James Youngman  <jay@gnu.org>
+
+       * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
+       the example.
+
+2010-04-09  Jim Meyering  <meyering@redhat.com>
+
+       maint.mk: print better diagnostic when there is no $(_hv_file)
+       * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
+       announce that when $(_hv_file) (aka help-version) does not exist.
+
+       init.sh: run tr in the "C" locale to avoid multibyte interpretation
+       * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
+       not try to interpret its random input bytes.  Jarno Rajahalme reported
+       that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
+       on Darwin 10.3.0 with LC_CTYPE=UTF-8.
+       (mktempd_): Likewise, just in case.
+
+       ftruncate: add two years to projected module removal date: 2012
+       * m4/ftruncate.m4: Adjust comments.
+
+       ftruncate: mark module as obsolete; even MinGW provides it, now
+       * modules/ftruncate (Status): Obsolete.
+       (Notice): Say that.
+       * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
+       http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
+
+2010-04-08  Bruno Haible  <bruno@clisp.org>
+
+       Fix side effects from tests-related modules.
+       * modules/dprintf-posix (Comment): New section.
+       * modules/fprintf-posix (Comment): Likewise.
+       * modules/obstack-printf-posix (Comment): Likewise.
+       * modules/printf-posix (Comment): Likewise.
+       * modules/snprintf-posix (Comment): Likewise.
+       * modules/sprintf-posix (Comment): Likewise.
+       * modules/vasnprintf-posix (Comment): Likewise.
+       * modules/vasprintf-posix (Comment): Likewise.
+       * modules/vdprintf-posix (Comment): Likewise.
+       * modules/vfprintf-posix (Comment): Likewise.
+       * modules/vprintf-posix (Comment): Likewise.
+       * modules/vsnprintf-posix (Comment): Likewise.
+       * modules/vsprintf-posix (Comment): Likewise.
+       * modules/xprintf-posix (Comment): Likewise.
+       * modules/xvasprintf-posix (Comment): Likewise.
+       * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
+       * modules/floorf-tests (Depends-on): Likewise.
+       * modules/round-tests (Depends-on): Likewise.
+       * modules/roundf-tests (Depends-on): Likewise.
+       * modules/trunc-tests (Depends-on): Likewise.
+       * modules/truncf-tests (Depends-on): Likewise.
+       * tests/test-ceilf2.c (check): Don't invoke fprintf if the
+       'fprintf-posix' module is not present.
+       * tests/test-floorf2.c (check): Likewise.
+       * tests/test-trunc2.c (check): Likewise.
+       * tests/test-truncf2.c (check): Likewise.
+       * tests/test-round2.c (equal): Likewise.
+       Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
+
+2010-04-07  Karl Berry  <karl@gnu.org>
+
+       * config/srclist.txt,
+       * config/srclistvars.sh,
+       * config/srclist-update: doc fixes.
+
+2010-04-07  Jim Meyering  <meyering@redhat.com>
+
+       maint.mk: add a PATH crosschecking syntax-check rule
+       * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
+       Useful if you use a test like the one in help-version (coreutils,
+       diffutils, grep, gzip) that ensures $(VERSION) matches what is
+       printed by prog --version.
+
+2010-04-06  Bruno Haible  <bruno@clisp.org>
+
+       Fix link error on mingw.
+       * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
+       * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
+
+2010-04-06  Bruno Haible  <bruno@clisp.org>
+
+       Assume rmdir exists.
+       * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
+
+2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
+
+       doc: update users.txt
+       * users.txt: Add gcal.
+
+2010-04-06  Jim Meyering  <meyering@redhat.com>
+
+       init.sh: simply unset TMPDIR rather than risking env -i
+       * tests/init.sh (mktempd_): Using env -i is rather harsh, and
+       although it probably works fine on all Unix-based systems, some
+       systems (Cygwin?) cannot tolerate a totally cleared environment.
+       Suggestion from Eric Blake.
+
+2010-04-06  Jim Meyering  <meyering@redhat.com>
+
+       init.sh: portability fix: use env's POSIX-specified -i option not -u
+       * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
+       than unportable env -u.  Solaris 5.11's env lacks support for -u.
+
+2010-04-05  Bruno Haible  <bruno@clisp.org>
+
+       btowc: Work around Cygwin 1.7.2 bug.
+       * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
+       does not map NUL to 0.
+       * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
+
+2010-04-05  Bruno Haible  <bruno@clisp.org>
+
+       Make the multithread modules work on Cygwin 1.7.2.
+       * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
+       imported symbols can be declared weak, so that it returns "no" on
+       Cygwin 1.7.2.
+
+2010-04-05  Bruno Haible  <bruno@clisp.org>
+
+       Use the module 'strncat'.
+       * modules/unistr/u8-strncat (Depends-on): Add strncat.
+
+       Tests for module 'strncat'.
+       * modules/strncat-tests: New file.
+       * tests/test-strncat.c: New file.
+
+       New module 'strncat'.
+       * lib/string.in.h (strncat): New declaration.
+       * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
+       * m4/strncat.m4: New file, based on m4/memchr.m4.
+       * modules/strncat: New file.
+       * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
+       is declared.
+       (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
+       REPLACE_STRNCAT.
+       * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
+       REPLACE_STRNCAT.
+       * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
+       module.
+       * tests/test-string-c++.cc: Check signature of strncat.
+
+2010-04-05  Jim Meyering  <meyering@redhat.com>
+
+       xstrtoumax-tests: convert to use init.sh
+       * modules/xstrtoumax-tests (Files): Add tests/init.sh.
+       * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
+       Use Exit, not exit.
+       Remove uses of $EXEEXT and "./" to run a program in the current dir.
+
+       xstrtoimax-tests: convert to use init.sh
+       * modules/xstrtoimax-tests (Files): Add tests/init.sh.
+       * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
+       Use Exit, not exit.
+       Remove uses of $EXEEXT and "./" to run a program in the current dir.
+
+2010-04-05  Bruno Haible  <bruno@clisp.org>
+
+       sys_socket: Avoid #define replacements in C++ mode.
+       * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
+       warning to the function if possible, rather than #defining the symbol
+       to a dysfunctional alias.
+
+2010-04-05  Bruno Haible  <bruno@clisp.org>
+
+       fseeko: Fix C++ test error on mingw.
+       * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
+       gl_FUNC_FSEEKO.
+       (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
+       (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
+       * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
+       fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
+
+2010-04-05  Bruno Haible  <bruno@clisp.org>
+
+       duplocale: Improve test output.
+       * tests/test-duplocale.c (main): Print reason for skipped test.
+
+2010-04-05  Bruno Haible  <bruno@clisp.org>
+
+       Assume rmdir exists.
+       * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
+       * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
+
+2010-04-05  Bruno Haible  <bruno@clisp.org>
+
+       Fix link error on Solaris 8 with cc.
+       * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
+
+2010-04-05  Bruno Haible  <bruno@clisp.org>
+
+       frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
+       * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
+
+2010-04-05  Bruno Haible  <bruno@clisp.org>
+
+       vasprintf: Update documentation.
+       * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
+
+2010-04-05  Bruno Haible  <bruno@clisp.org>
+
+       ptsname: Improve test.
+       * tests/test-ptsname.c (main): Also try the various master names of BSD
+       systems.
+
+2010-04-05  Bruno Haible  <bruno@clisp.org>
+
+       memchr: Avoid a possible C++ test error.
+       * lib/string.in.h (memchr): Provide declaration if function is missing.
+       * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
+       HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
+       * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
+       * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
+
+2010-04-05  Bruno Haible  <bruno@clisp.org>
+
+       strtok_r: Improve idiom.
+       * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
+       AC_LIBOBJ is used.
+
+2010-04-05  Bruno Haible  <bruno@clisp.org>
+
+       strdup: Improve idiom.
+       * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
+       AC_LIBOBJ is used.
+       (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
+       compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
+       when AC_LIBOBJ is used.
+
+2010-04-05  Bruno Haible  <bruno@clisp.org>
+
+       mbsinit, mbrtowc, wcrtomb: Improve idioms.
+       * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
+       don't set REPLACE_MBSINIT to 1.
+       * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
+       don't set REPLACE_MBRTOWC to 1.
+       * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
+       exist, don't set REPLACE_MBSRTOWCS to 1.
+       * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
+       exist, don't set REPLACE_MBSNRTOWCS to 1.
+       * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
+       don't set REPLACE_WCRTOMB to 1.
+       * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
+       exist, don't set REPLACE_WCSRTOMBS to 1.
+       * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
+       exist, don't set REPLACE_WCSNRTOMBS to 1.
+
+2010-04-05  Bruno Haible  <bruno@clisp.org>
+
+       ldexpl: Improve idiom.
+       * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
+       make sure to set HAVE_DECL_LDEXPL to 0.
+
+2010-04-05  Jim Meyering  <meyering@redhat.com>
+
+       xstrtol-tests: convert to use init.sh
+       * modules/xstrtol-tests (Files): Add tests/init.sh.
+       * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
+       Use Exit, not exit.
+       Remove uses of $EXEEXT and "./" to run a program in the current dir.
+
+       atexit-tests: convert to use init.sh
+       * modules/atexit-tests (Files): Add tests/init.sh.
+       * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
+       Use Exit, not exit.
+       Remove uses of $EXEEXT and "./" to run a program in the current dir.
+
+       init.sh: fix typo
+       * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
+
+       init.sh: make it easier for a test script to write to the tty, ...
+       when using automake's parallel-tests mode.
+       * tests/init.sh (stderr_fileno_): Define overridable variable.
+       (warn_): New function, to use it.
+       (fail_, skip_, framework_failure_): Use warn_.
+
+2010-04-04  Bruno Haible  <bruno@clisp.org>
+
+       btowc: Avoid warning.
+       * lib/btowc.c: Include <stdlib.h>.
+       Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
+
+2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
+            Bruno Haible  <bruno@clisp.org>
+
+       wchar: Port to NetBSD 1.5.
+       * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
+       * lib/wctype.in.h (WEOF): Likewise.
+
+2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
+            Bruno Haible  <bruno@clisp.org>
+
+       Port extended stdio to NetBSD 1.5.
+       * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
+       (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
+       older.
+
+2010-04-04  Bruno Haible  <bruno@clisp.org>
+
+       string: Remove unused substitution.
+       * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
+       HAVE_DECL_STRERROR.
+       * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
+
+2010-04-04  Bruno Haible  <bruno@clisp.org>
+
+       strtod: Avoid a possible C++ test error.
+       * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
+       set REPLACE_STRTOD.
+
+2010-04-04  Bruno Haible  <bruno@clisp.org>
+
+       strerror: Update documentation.
+       * doc/posix-functions/strerror.texi: Remove mention of old platforms.
+
+2010-04-04  Bruno Haible  <bruno@clisp.org>
+
+       stdio: Fix some C++ test errors on Solaris 8 with GCC.
+       * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
+       _GL_CXXALIAS_SYS_CAST.
+
+2010-04-04  Bruno Haible  <bruno@clisp.org>
+
+       frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
+       * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
+       function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
+       REPLACE_FREXPL to 1.
+       * doc/posix-functions/frexpl.texi: Update documentation.
+
+2010-04-04  Bruno Haible  <bruno@clisp.org>
+
+       math: Fix some C++ test errors on Solaris 8 and Cygwin.
+       * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
+
+2010-04-04  Bruno Haible  <bruno@clisp.org>
+
+       Implement nanosleep for native Windows.
+       * lib/nanosleep.c (nanosleep): New implementation for native Windows.
+
+2010-04-04  Bruno Haible  <bruno@clisp.org>
+
+       math: Fix some C++ test errors on Solaris 8.
+       * lib/math.in.h (truncf, trunc): Use simpler idiom.
+
+2010-04-04  Bruno Haible  <bruno@clisp.org>
+
+       math: Fix some C++ test errors on Cygwin.
+       * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
+       truncl): Provide declaration if the system does not have it.
+       * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
+       HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
+       * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
+       HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
+       * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
+       HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
+       * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
+       HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
+       * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
+       HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
+       * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
+       HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
+       * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
+       HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
+       * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
+       HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
+       * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
+       HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
+       HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
+       * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
+       HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
+       HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
+
+2010-04-04  Bruno Haible  <bruno@clisp.org>
+
+       * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
+       * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
+       * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
+       * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
+       * m4/isfinite.m4 (gl_ISFINITE): Likewise.
+       * m4/isinf.m4 (gl_ISINF): Likewise.
+       * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
+
+2010-04-04  Bruno Haible  <bruno@clisp.org>
+
+       * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
+       * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
+
+2010-04-04  Bruno Haible  <bruno@clisp.org>
+
+       * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
+       * modules/tmpfile (configure.ac): Update.
+
+       tmpfile: Fix C++ test error on mingw.
+       * lib/stdio.in.h (tmpfile): New declaration.
+       * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
+       REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
+       * modules/tmpfile (Depends-on): Add stdio.
+       (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
+       * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
+       (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
+       * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
+       REPLACE_TMPFILE.
+       * tests/test-stdio-c++.cc (tmpfile): Verify signature.
+
+2010-04-04  Bruno Haible  <bruno@clisp.org>
+
+       ioctl: Fix C++ test error on mingw.
+       * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
+       * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
+       use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
+
+2010-04-03  Bruno Haible  <bruno@clisp.org>
+
+       wcwidth: Fix C++ test error on mingw.
+       * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
+       * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
+       exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
+
+2010-04-03  Bruno Haible  <bruno@clisp.org>
+
+       nanosleep: Fix C++ test error on mingw.
+       * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
+       * lib/time.in.h (nanosleep): Use modern idiom.
+       * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
+       nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
+       REPLACE_NANOSLEEP to 1.
+       * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
+       * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
+
+2010-04-03  Bruno Haible  <bruno@clisp.org>
+
+       strptime: Fix C++ test error on mingw.
+       * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
+       * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
+       REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
+       (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
+       * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
+       not REPLACE_STRPTIME.
+       * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
+       REPLACE_STRPTIME.
+
+2010-04-03  Bruno Haible  <bruno@clisp.org>
+
+       timegm: Fix C++ test error on mingw.
+       * lib/time.in.h (timegm): Use modern idiom.
+       * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
+       HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
+       * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
+       * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
+
+2010-04-03  Bruno Haible  <bruno@clisp.org>
+
+       timegm: Assume declaration if function exists.
+       * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
+       if it exists. Don't clobber ac_cv_func_timegm.
+
+2010-04-03  Bruno Haible  <bruno@clisp.org>
+
+       time_r: Fix C++ test error on mingw.
+       * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
+       * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
+       HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
+       * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
+       * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
+
+2010-04-03  Bruno Haible  <bruno@clisp.org>
+
+       time_r: Minor updates.
+       * modules/time_r (Description): Mention the provided functions.
+       * lib/time_r.c: Don't include <string.h>.
+       * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
+       * doc/posix-functions/localtime_r.texi: Likewise.
+
+2010-04-03  Bruno Haible  <bruno@clisp.org>
+
+       time: Fix regression introduced on 2010-03-08.
+       * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
+       gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
+
+2010-04-03  Jim Meyering  <meyering@redhat.com>
+
+       maint.mk: don't silently disable project-specific syntax-check rules
+       * top/maint.mk (_prohibit_regexp): Define, to help people realize
+       that they need to convert their project-specific syntax-check rules
+       to use the new _sc_search_regexp.
+
+2010-04-03  Bruno Haible  <bruno@clisp.org>
+
+       fchdir: Fix regression introduced on 2010-03-08.
+       * lib/unistd.in.h (fchdir): Fix declaration.
+       * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
+       * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
+       REPLACE_FCHDIR.
+       * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
+       REPLACE_FCHDIR.
+
+2010-04-03  Bruno Haible  <bruno@clisp.org>
+
+       getpagesize: Fix C++ test error on mingw.
+       * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
+       system does not declare the function.
+       * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
+       declared.
+       * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
+       HAVE_DECL_GETPAGESIZE.
+       * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
+
 2010-04-03  Bruno Haible  <bruno@clisp.org>
 
        stdio: Make C++ tests work on mingw.