+2008-11-11 Paolo Bonzini <bonzini@gnu.org>
+
+ * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
+ (gl_WARN_ADD): Substitute $2 if literal.
+
+2008-11-11 Paolo Bonzini <bonzini@gnu.org>
+
+ * m4/warning.m4: Remove.
+
+2008-11-11 Paolo Bonzini <bonzini@gnu.org>
+
+ * m4/warnings.m4: Almost complete rewrite. :-)
+
+2008-11-10 Simon Josefsson <simon@josefsson.org>
+
+ * modules/warnings: New module.
+ * m4/warnings.m4: New file.
+ * MODULES.html.sh: Mention warnings module.
+ With review improvements from Paolo Bonzini <bonzini@gnu.org> and
+ Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
+
+2008-11-10 Eric Blake <ebb9@byu.net>
+
+ fdl.texi: make a symlink to the latest version
+ * doc/standards.texi: Revert today's earlier change.
+ * doc/fdl-1.2.texi: Rename from old fdl.texi...
+ * doc/fdl.texi: ...and replace this with a symlink to the newer
+ fdl-1.3.texi.
+
+2008-11-10 Bruno Haible <bruno@clisp.org>
+
+ * tests/test-select-fd.c (main): Accept the result file name as fourth
+ argument.
+ * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
+ * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
+
+2008-11-10 Bruno Haible <bruno@clisp.org>
+
+ * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
+ HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
+ as autoconf-substituted macros.
+ * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
+ * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
+ gl_NETDB_H_DEFAULTS. Set these variables.
+ * modules/netdb (Makefile.am): Substitute these variables.
+
+2008-11-10 Eric Blake <ebb9@byu.net>
+
+ standards.texi: include correct file for FDL 1.3
+ * doc/standards.texi (GNU Free Documentation License): Change
+ include file to pull in FDL 1.3, not 1.2.
+
+ fdl.texi: revert accidental change to license
+ * doc/fdl.texi: This is FDL 1.2, not 1.3.
+
+2008-11-10 Bruno Haible <bruno@clisp.org>
+
+ * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
+ cross-compiling guesses also when the native compile gives no result.
+
+2008-11-10 Bruno Haible <bruno@clisp.org>
+
+ * lib/spawni.c (__spawni): Force variable into the stack.
+
+2008-11-10 Bruno Haible <bruno@clisp.org>
+
+ Add support for Haiku.
+ * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
+ glibc and BeOS, but also on Haiku.
+ * lib/fpurge.c (fpurge): Likewise.
+ * lib/freadable.c (freadable): Likewise.
+ * lib/freadahead.c (freadahead): Likewise.
+ * lib/freading.c (freading): Likewise.
+ * lib/freadptr.c (freadptr): Likewise.
+ * lib/freadseek.c (freadptrinc): Likewise.
+ * lib/fseeko.c (rpl_fseeko): Likewise.
+ * lib/fseterr.c (fseterr): Likewise.
+ * lib/fwritable.c (fwritable): Likewise.
+ * lib/fwriting.c (fwriting): Likewise.
+ Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
+
+2008-11-10 Ingo Weinhold <ingo_weinhold@gmx.de>
+
+ * lib/config.charset: Treat Haiku like BeOS.
+
+2008-11-10 Ingo Weinhold <ingo_weinhold@gmx.de>
+
+ * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
+ * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
+
+2008-11-08 Bruno Haible <bruno@clisp.org>
+
+ * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
+ AC_CACHE_CHECK.
+
+2008-11-08 Bruno Haible <bruno@clisp.org>
+
+ * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
+
+2008-11-08 Bruno Haible <bruno@clisp.org>
+
+ * tests/test-select-fd.c: New file.
+ * tests/test-select-in.sh: New file.
+ * tests/test-select-out.sh: New file.
+ * tests/test-select-stdin.c: New file.
+ * modules/select-tests (Files): Add the new files.
+ (Depends-on): Add gettimeofday.
+ (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
+ Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
+ check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
+
+2008-11-06 Alexander V. Lukyanov <lav@netis.ru>
+ Bruno Haible <bruno@clisp.org>
+
+ * lib/sys_stat.in.h: Enclose function definitions in extern "C".
+
+2008-10-12 Giuseppe Scrivano <gscrivano@gnu.org>
+
+ * build-aux/pmccabe2html: Added support for C++ source files.
+
+2008-11-05 Ben Pfaff <blp@gnu.org>
+
+ Fix lib/close.c build on Windows.
+ * modules/close (Files): Add lib/w32sock.h.
+
+2008-11-05 Joel E. Denny <jdenny@ces.clemson.edu>
+
+ Accept Bison's NEWS format.
+ * build-aux/announce-gen (print_news_deltas): Tweak
+ $re_prefix.
+
+2008-11-04 Bruno Haible <bruno@clisp.org>
+
+ * modules/random_r (Maintainer): Add glibc.
+
+2008-11-04 Simon Josefsson <simon@josefsson.org>
+
+ * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
+ by karl@freefriends.org (Karl Berry).
+ * doc/alloca.texi: Likewise.
+ * doc/c-ctype.texi: Likewise.
+ * doc/c-strcase.texi: Likewise.
+ * doc/c-strcaseeq.texi: Likewise.
+ * doc/c-strcasestr.texi: Likewise.
+ * doc/c-strstr.texi: Likewise.
+ * doc/c-strtod.texi: Likewise.
+ * doc/c-strtold.texi: Likewise.
+ * doc/ctime.texi: Likewise.
+ * doc/error.texi: Likewise.
+ * doc/fdl.texi: Likewise.
+ * doc/gcd.texi: Likewise.
+ * doc/getdate.texi: Likewise.
+ * doc/gnulib-intro.texi: Likewise.
+ * doc/gnulib-tool.texi: Likewise.
+ * doc/gnulib.texi: Likewise.
+ * doc/inet_ntoa.texi: Likewise.
+ * doc/maintain.texi: Likewise.
+ * doc/make-stds.texi: Likewise.
+ * doc/quote.texi: Likewise.
+ * doc/regexprops-generic.texi: Likewise.
+ * doc/standards.texi: Likewise.
+ * doc/verify.texi: Likewise.
+ * doc/visibility.texi: Likewise.
+ * doc/gnulib.texi (GNU Free Documentation License): Include
+ fdl-1.3.texi instead of fdl.texi.
+
+2008-11-04 Simon Josefsson <simon@josefsson.org>
+
+ * doc/fdl-1.3.texi: New file, from
+ <http://www.gnu.org/licenses/fdl-1.3.texi>.
+ * modules/fdl-1.3: Add.
+ * MODULES.html.sh: Add fdl-1.3.
+
+2008-11-03 Bruno Haible <bruno@clisp.org>
+
+ Make determination of absolute name of header file work with AIX xlc.
+ * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
+ AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
+ preprocessing.
+ * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
+ Reported by Gary V. Vaughan <gary@thewrittenword.com>.
+
+2008-11-03 Simon Josefsson <simon@josefsson.org>
+
+ * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
+ -fprofile-arcs -ftest-coverage. Suggested by Ludovic Courtès
+ <ludo@gnu.org>.
+
+2008-11-02 Bruno Haible <bruno@clisp.org>
+
+ Mark 'strpbrk' obsolete.
+ * modules/strpbrk (Status, Notice): New sections.
+ * modules/strtok_r (Depends-on): Add strpbrk.
+
+2008-11-02 Bruno Haible <bruno@clisp.org>
+
+ Mark 'strdup' obsolete.
+ * modules/strdup (Status, Notice): New sections.
+ * modules/findprog (Depends-on): Add strdup.
+ * modules/getaddrinfo (Depends-on): Likewise.
+ * modules/localename (Depends-on): Likewise.
+ * modules/relocatable-lib (Depends-on): Likewise.
+ * modules/relocatable-lib-lgpl (Depends-on): Likewise.
+ * modules/relocatable-prog (Depends-on): Likewise.
+ * modules/trim (Depends-on): Likewise.
+ * modules/unictype/gen-ctype (Depends-on): Likewise.
+ * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
+
+2008-11-02 Bruno Haible <bruno@clisp.org>
+
+ Mark 'strcspn' obsolete.
+ * modules/strcspn (Status, Notice): New sections.
+
+2008-11-02 Bruno Haible <bruno@clisp.org>
+
+ Mark 'rmdir' obsolete.
+ * modules/rmdir (Status, Notice): New sections.
+ * modules/clean-temp (Depends-on): Add rmdir.
+ * modules/openat (Depends-on): Likewise.
+
+2008-11-02 Bruno Haible <bruno@clisp.org>
+
+ Mark 'raise' obsolete.
+ * modules/raise (Status, Notice): New sections.
+ (Include): Specify <signal.h>.
+ * modules/stdio (Depends-on): Add raise.
+ * modules/write (Depends-on): Likewise.
+
+2008-11-02 Bruno Haible <bruno@clisp.org>
+
+ Mark 'memset' obsolete.
+ * modules/memset (Status, Notice): New sections.
+
+2008-11-02 Bruno Haible <bruno@clisp.org>
+
+ Mark 'memmove' obsolete.
+ * modules/memmove (Status, Notice): New sections.
+ * modules/argp (Depends-on): Add memmove.
+ * modules/argz (Depends-on): Likewise.
+ * modules/canonicalize (Depends-on): Likewise.
+ * modules/canonicalize-lgpl (Depends-on): Likewise.
+ * modules/fts (Depends-on): Likewise.
+ * modules/getcwd (Depends-on): Likewise.
+ * modules/human (Depends-on): Likewise.
+ * modules/regex (Depends-on): Likewise.
+ * modules/striconveh (Depends-on): Likewise.
+ * modules/trim (Depends-on): Likewise.
+ * modules/unistr/u8-move (Depends-on): Likewise.
+ * modules/unistr/u16-move (Depends-on): Likewise.
+ * modules/unistr/u32-move (Depends-on): Likewise.
+
+2008-11-02 Bruno Haible <bruno@clisp.org>
+
+ Mark 'memcpy' obsolete.
+ * modules/memcpy (Status, Notice): New sections.
+
+2008-11-02 Bruno Haible <bruno@clisp.org>
+
+ Mark 'memcmp' obsolete.
+ * modules/memcmp (Status, Notice): New sections.
+ * modules/argmatch (Depends-on): Add memchr.
+ * modules/backupfile (Depends-on): Likewise.
+ * modules/c-strcasestr (Depends-on): Likewise.
+ * modules/crypto/des (Depends-on): Likewise.
+ * modules/csharpcomp (Depends-on): Likewise.
+ * modules/fnmatch (Depends-on): Likewise.
+ * modules/git-merge-changelog (Depends-on): Likewise.
+ * modules/isnand (Depends-on): Likewise.
+ * modules/isnand-nolibm (Depends-on): Likewise.
+ * modules/isnanf (Depends-on): Likewise.
+ * modules/isnanf-nolibm (Depends-on): Likewise.
+ * modules/isnanl (Depends-on): Likewise.
+ * modules/isnanl-nolibm (Depends-on): Likewise.
+ * modules/mbchar (Depends-on): Likewise.
+ * modules/memcoll (Depends-on): Likewise.
+ * modules/quotearg (Depends-on): Likewise.
+ * modules/regex (Depends-on): Likewise.
+ * modules/relocatable-prog (Depends-on): Likewise.
+ * modules/same (Depends-on): Likewise.
+ * modules/signbit (Depends-on): Likewise.
+ * modules/strcasestr-simple (Depends-on): Likewise.
+ * modules/unictype/gen-ctype (Depends-on): Likewise.
+ * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
+ * modules/uniname/uniname (Depends-on): Likewise.
+ * modules/unistr/u8-cmp (Depends-on): Likewise.
+
+2008-11-02 Bruno Haible <bruno@clisp.org>
+
+ Mark 'memchr' obsolete.
+ * modules/memchr (Status, Notice): New sections.
+ * modules/argp (Depends-on): Add memchr.
+ * modules/base64 (Depends-on): Likewise.
+ * modules/c-strcasestr (Depends-on): Likewise.
+ * modules/chdir-long (Depends-on): Likewise.
+ * modules/fnmatch (Depends-on): Likewise.
+ * modules/getsubopt (Depends-on): Likewise.
+ * modules/git-merge-changelog (Depends-on): Likewise.
+ * modules/glob (Depends-on): Likewise.
+ * modules/strcasestr-simple (Depends-on): Likewise.
+ * modules/strnlen (Depends-on): Likewise.
+
+2008-11-02 Bruno Haible <bruno@clisp.org>
+
+ Mark 'atexit' obsolete.
+ * modules/atexit (Status, Notice): New sections.
+ * modules/chdir-long (Depends-on): Add atexit.
+ * modules/wait-process (Depends-on): Likewise.
+
+2008-11-02 Bruno Haible <bruno@clisp.org>
+
+ * gnulib-tool: New option --with-obsolete.
+ (func_usage): Document it.
+ (func_modules_transitive_closure): Drop obsolete dependencies if
+ incobsolete is not true.
+ (func_import): Read and save the incobsolete variable to the cache.
+
+2008-11-02 Bruno Haible <bruno@clisp.org>
+
+ * modules/TEMPLATE-EXTENDED: New field 'Status'.
+ * gnulib-tool: New option --extract-status.
+ (func_usage): Document it.
+ (sed_extract_prog): Recognize it.
+ (func_get_status): New function.
+
+2008-10-30 Simon Josefsson <simon@josefsson.org>
+
+ * modules/sockets (License): Change from LGPL to LGPLv2+.
+
+2008-10-28 Simon Josefsson <simon@josefsson.org>
+
+ * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
+
+2008-10-28 Simon Josefsson <simon@josefsson.org>
+
+ * MODULES.html.sh (Support for systems lacking POSIX:2001):
+ Mention times and sys_times.
+ * modules/sys_times, modules/sys_times-tests: New modules.
+ * modules/times, modules/times-tests: Likewise
+ * m4/sys_times_h.m4: New file.
+ * lib/sys_times.in.h: Likewise
+ * lib/times.c: Likewise.
+ * tests/test-sys_times.c: Likewise.
+ * tests/test-times.c: Likewise.
+ * doc/posix-headers/sys_times.texi: Update.
+ * doc/posix-functions/times.texi: Update.
+
+2008-10-28 Jim Meyering <meyering@redhat.com>
+
+ * modules/tempname (Depends-on): Add lstat.
+
+ * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
+
+2008-10-28 Simon Josefsson <simon@josefsson.org>
+
+ * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
+ * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
+ using idiom used elsewhere in gnulib.
+
+2008-10-27 Jim Meyering <meyering@redhat.com>
+
+ * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
+
+2008-10-27 Simon Josefsson <simon@josefsson.org>
+
+ * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
+ TESTS_ENVIRONMENT, for shell scripts that needs to call built
+ programs.
+ * tests/test-argp-2.sh: Use $EXEEXT when needed.
+
+2008-10-27 Simon Josefsson <simon@josefsson.org>
+
+ * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
+
+2008-10-27 Bruno Haible <bruno@clisp.org>
+
+ * tests/test-lstat.c: Include <stdio.h>.
+
+2008-10-27 Simon Josefsson <simon@josefsson.org>
+
+ * modules/lstat-tests: New module.
+ * tests/test-lstat.c: New file.
+
+2008-10-26 Jim Meyering <meyering@redhat.com>
+
+ * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
+
+2008-10-26 Simon Josefsson <simon@josefsson.org>
+ Bruno Haible <bruno@clisp.org>
+
+ Fix a clash between the type DATADIR on Windows and the macro DATADIR.
+ * modules/configmake (Include): Add a note that the include must come
+ after all system headers.
+ * lib/javaversion.c: Include configmake.h after all other includes.
+
+2008-10-26 Bruno Haible <bruno@clisp.org>
+
+ * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
+ HAVE_STRUCT_RANDOM_DATA to 1.
+ (gl_STDLIB_H): Simplify.
+
+2008-10-26 Simon Josefsson <simon@josefsson.org>
+
+ * m4/stdlib_h.m4: Check for struct random_data. Initialize and
+ substitute HAVE_STRUCT_RANDOM_DATA.
+ * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
+ random_data.
+ * modules/stdlib (Makefile.am): Substitute
+ HAVE_STRUCT_RANDOM_DATA.
+
+2008-10-26 Simon Josefsson <simon@josefsson.org>
+
+ * doc/gnulib.texi (@copying): Use GFDLv1.2+.
+ * doc/gnulib-intro.texi (Copyright): Likewise.
+
+2008-10-26 Simon Josefsson <simon@josefsson.org>
+
+ * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
+ findings.
+
+2008-10-25 Ben Pfaff <blp@cs.stanford.edu>
+ Bruno Haible <bruno@clisp.org>
+
+ * lib/unistd.in.h: Include <winsock2.h>.
+ (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
+ listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
+ Provide dummy declarations.
+ (gethostname): Override.
+ * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
+ * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
+ gl_PREREQ_SYS_H_WINSOCK2.
+ * modules/gethostname (Files): Add m4/sys_socket_h.m4.
+ * doc/posix-functions/gethostname.texi: More details.
+
+2008-10-25 Bruno Haible <bruno@clisp.org>
+
+ * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
+ gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
+ * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
+
+ * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
+ here ...
+ * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
+ * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
+ gl_UNISTD_H_DEFAULTS.
+
+2008-10-25 Eric Blake <ebb9@byu.net>
+
+ signbit: avoid spurious compiler failure
+ * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
+ declarations inside function.
+
+2008-10-24 Simon Josefsson <simon@josefsson.org>
+ Bruno Haible <bruno@clisp.org>
+
+ * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
+ * modules/random_r (Depends-on): Add stdint.
+
+2008-10-24 Bruno Haible <bruno@clisp.org>
+
+ * modules/intprops (License): Change to LGPLv2+, with approval by Paul
+ Eggert.
+ * modules/strerror (License): Likewise.
+
+2008-10-24 Jim Meyering <meyering@redhat.com>
+
+ sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
+ * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
+
+2008-10-24 Eric Blake <ebb9@byu.net>
+
+ getgroups: fix compilation when getgroups is available
+ * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
+ but with <config.h> override of getgroups disabled.
+
+2008-10-24 Simon Josefsson <simon@josefsson.org>
+
+ * doc/gnulib.texi (Header files): Add note about C++ problems.
+ Explained by Bruno Haible <bruno@clisp.org>.
+
+2008-10-23 Bruno Haible <bruno@clisp.org>
+
+ Define a dummy SA_NODEFER macro on Interix.
+ * lib/signal.in.h (SA_NODEFER): Define fallback.
+ Reported by Aleksey Cheusov <cheusov@tut.by> via
+ Thomas Klausner <wiz@netbsd.org> and Eric Blake.
+
+2008-10-23 Bruno Haible <bruno@clisp.org>
+
+ * modules/freadahead (License): Change to LGPLv2+.
+ Suggested by Simon Josefsson.
+
+2008-10-23 Jim Meyering <meyering@redhat.com>
+
+ random_r: new module
+ * modules/random_r: New file.
+ * m4/random_r.m4: New file.
+ * lib/random_r.c: New file, from glibc.
+ * modules/random_r-tests: New file.
+ * tests/test-random_r.c: New file.
+ * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
+ Declare.
+ (RAND_MAX): Define.
+ * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
+ * modules/stdlib: Substitute them, too.
+ * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
+ * doc/glibc-functions/initstate_r.texi: Mention the new module.
+ * doc/glibc-functions/random_r.texi: Likewise.
+ * doc/glibc-functions/setstate_r.texi: Likewise.
+ * doc/glibc-functions/srandom_r.texi: Likewise.
+ * config/srclist.txt: Mention it.
+
+2008-10-23 David Lutterkort <lutter@redhat.com>
+
+ * modules/selinux-h: Search for LIB_SELINUX and mark it as a
+ link requirement
+
+2008-10-23 Jim Meyering <meyering@redhat.com>
+
+ selinux-h: mark parameters of stub functions as intentionally unused
+ * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
+ * lib/se-context.in.h: Likewise.
+
+2008-10-22 Simon Josefsson <simon@josefsson.org>
+
+ * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
+
+2008-10-22 Simon Josefsson <simon@josefsson.org>
+
+ * m4/getgroups.m4: Avoid invoking test with wrong parameters.
+
+2008-10-22 Eric Blake <ebb9@byu.net>
+
+ glthread/thread: avoid compiler warning
+ * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
+ Add unreachable abort to silence compiler.
+
+2008-10-22 Eric Blake <ebb9@byu.net>
+
+ netdb: also supply struct addrinfo for cygwin 1.5.x
+ * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
+ older cygwin.
+ * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
+ cygwin.
+ * doc/posix-headers/netdb.texi (netdb.h): Document this.
+
+2008-10-22 Bruno Haible <bruno@clisp.org>
+
+ * users.txt: Update entry about pspp.
+
+2008-10-21 Bruno Haible <bruno@clisp.org>
+
+ Simplification.
+ * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
+ * lib/close.c (_gl_close_fd_maybe_socket): Make static.
+
+ Simplification.
+ * lib/ioctl.c (ioctl): Don't undefine.
+ * lib/socket.c (socket): Don't undefine.
+
+ Remove unused module indicator macros.
+ * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
+ GNULIB_$1 as a C macro.
+
+ * doc/posix-functions/close.texi: Undo last change.
+ * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
+ Windows platforms.
+
+2008-10-21 Bruno Haible <bruno@clisp.org>
+
+ Add gethostname() declaration to <unistd.h>.
+ * lib/unistd.in.h (gethostname): New declaration.
+ * lib/gethostname.c: Include <unistd.h>.
+ * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
+ gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
+ * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
+ and HAVE_GETHOSTNAME.
+ * modules/gethostname (Depends-on): Add unistd.
+ (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
+ (Include): Specify <unistd.h>.
+ * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
+ HAVE_GETHOSTNAME.
+ * tests/test-gethostname.c: Include <unistd.h> first.
+
+2008-10-21 Bruno Haible <bruno@clisp.org>
+
+ * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
+ * modules/select-tests (Depends-on): Likewise.
+ Reported by Simon Josefsson.
+
+2008-10-21 Simon Josefsson <simon@josefsson.org>
+
+ * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
+ * lib/accept.c: New file, based on winsock.c.
+ * lib/bind.c: New file, based on winsock.c.
+ * lib/connect.c: New file, based on winsock.c.
+ * lib/getpeername.c: New file, based on winsock.c.
+ * lib/getsockname.c: New file, based on winsock.c.
+ * lib/getsockopt.c: New file, based on winsock.c.
+ * lib/ioctl.c: New file, based on winsock.c.
+ * lib/listen.c: New file, based on winsock.c.
+ * lib/recv.c: New file, based on winsock.c.
+ * lib/recvfrom.c: New file, based on winsock.c.
+ * lib/send.c: New file, based on winsock.c.
+ * lib/sendto.c: New file, based on winsock.c.
+ * lib/setsockopt.c: New file, based on winsock.c.
+ * lib/shutdown.c: New file, based on winsock.c.
+ * lib/socket.c: New file, based on winsock.c.
+ * lib/w32sock.h: New file, based on winsock.c.
+ * lib/winsock.c: Remove file.
+ * modules/accept: Likewise.
+ * modules/bind: Likewise.
+ * modules/connect: Likewise.
+ * modules/getpeername: Likewise.
+ * modules/getsockname: Likewise.
+ * modules/getsockopt: Likewise.
+ * modules/ioctl: Likewise.
+ * modules/listen: Likewise.
+ * modules/recv: Likewise.
+ * modules/recvfrom: Likewise.
+ * modules/send: Likewise.
+ * modules/sendto: Likewise.
+ * modules/setsockopt: Likewise.
+ * modules/shutdown: Likewise.
+ * modules/socket: Use socket.c instead of winsock.c.
+ * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
+ * doc/posix-functions/accept.texi: Doc fix.
+ * doc/posix-functions/bind.texi: Doc fix.
+ * doc/posix-functions/close.texi: Doc fix.
+ * doc/posix-functions/connect.texi: Doc fix.
+ * doc/posix-functions/getpeername.texi: Doc fix.
+ * doc/posix-functions/getsockname.texi: Doc fix.
+ * doc/posix-functions/getsockopt.texi: Doc fix.
+ * doc/posix-functions/ioctl.texi: Doc fix.
+ * doc/posix-functions/listen.texi: Doc fix.
+ * doc/posix-functions/recv.texi: Doc fix.
+ * doc/posix-functions/recvfrom.texi: Doc fix.
+ * doc/posix-functions/send.texi: Doc fix.
+ * doc/posix-functions/sendto.texi: Doc fix.
+ * doc/posix-functions/setsockopt.texi: Doc fix.
+ * doc/posix-functions/shutdown.texi: Doc fix.
+ * doc/posix-functions/socket.texi: Doc fix.
+
+2008-10-20 Bruno Haible <bruno@clisp.org>
+
+ Take into account the role of SIGABRT_COMPAT on Windows 2008.
+ * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
+ (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
+ as an alias for SIGABRT.
+ * lib/sigaction.c (SIGABRT_COMPAT): New macro.
+ (sigaction): Map it to SIGABRT.
+ Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
+
+2008-10-20 Bruno Haible <bruno@clisp.org>
+
+ * lib/fts.c: Don't include lstat.h.
+ * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
+
+ Move the lstat() declaration to <sys/stat.h>.
+ * lib/lstat.h: Remove file.
+ * lib/sys_stat.in.h: Add special invocation convention.
+ (lstat): New declaration.
+ * lib/lstat.c (orig_lstat): New function.
+ (rpl_lstat): Use orig_lstat instead of lstat.
+ * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
+ AC_C_INLINE. Set REPLACE_LSTAT.
+ * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
+ and REPLACE_LSTAT.
+ * modules/lstat (Files): Remove lib/lstat.h.
+ (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
+ (Include): Specify <sys/stat.h> instead of lstat.h.
+ * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
+ REPLACE_LSTAT.
+ * NEWS: Mention the change.
+
+2008-10-20 Bruno Haible <bruno@clisp.org>
+
+ * modules/posix_spawn-tests: New file.
+ * tests/test-posix_spawn3.c: New file.
+
+2008-10-20 Bruno Haible <bruno@clisp.org>
+
+ * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
+ * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
+ WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
+ * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
+ WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
+
+2008-10-20 Bruno Haible <bruno@clisp.org>
+
+ * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
+ of posix_spawn on AIX 5.3.
+
+2008-10-20 Bruno Haible <bruno@clisp.org>
+
+ * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
+
+2008-10-20 Bruno Haible <bruno@clisp.org>
+
+ * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
+ of AC_LANG_PROGRAM.
+
+2008-10-20 Simon Josefsson <simon@josefsson.org>
+
+ * lib/netdb.in.h: Don't define GNU specific constants until they
+ are supported or needed. Reported by Bruno Haible
+ <bruno@clisp.org>.
+
+2008-10-20 Simon Josefsson <simon@josefsson.org>
+
+ * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
+
+2008-10-20 Simon Josefsson <simon@josefsson.org>
+
+ * lib/getaddrinfo.h: Remove file.
+ * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
+ * m4/getaddrinfo.m4: Call gl_HEADER_NETDB. Don't check for netdb.h.
+ * lib/netdb.in.h: Add declarations from getaddrinfo.h.
+ * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
+ * modules/netdb: Substitute GNULIB_GETADDRINFO.
+ * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
+ * tests/test-getaddrinfo.c: Likewise.
+ * lib/gai_strerror.c: Likewise. Also drop HAVE_NETDB_H check.
+ * NEWS: Mention change.
+
+2008-10-19 Bruno Haible <bruno@clisp.org>
+
+ * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
+
+2008-10-19 Bruno Haible <bruno@clisp.org>
+
+ * lib/wait-process.c: Include simply <sys/wait.h>.
+ (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
+ WIFSTOPPED): Remove fallback definitions.
+ * modules/wait-process (Depends-on): Add sys_wait.
+
+ New module 'sys_wait'.
+ * modules/sys_wait: New file.
+ * lib/sys_wait.in.h: New file, partially copied from
+ lib/wait-process.c.
+ * m4/sys_wait_h.m4: New file.
+ * doc/posix-headers/sys_wait.texi: Mention the new module.
+
+2008-10-19 Bruno Haible <bruno@clisp.org>
+
+ * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
+
+2008-10-19 Bruno Haible <bruno@clisp.org>
+
+ Assume that waitpid() fills an 'int' status, not a 'union wait'.
+ * lib/wait-process.c (WAIT_T): Remove type.
+ (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
+ (wait_subprocess): Update.
+
+2008-10-19 Bruno Haible <bruno@clisp.org>
+
+ New module 'atoll'.
+ * modules/atoll: New file.
+ * lib/stdlib.in.h (atoll): New declaration.
+ * lib/atoll.c: New file, from glibc with modifications.
+ * m4/atoll.m4: New file.
+ * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
+ HAVE_ATOLL.
+ * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
+ * doc/posix-functions/atoll.texi: Mention the new module.
+
+2008-10-19 Bruno Haible <bruno@clisp.org>
+
+ Add strtoull() declaration to <stdlib.h>.
+ * lib/stdlib.in.h (strtoull): New declaration.
+ * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
+ Set HAVE_STRTOULL.
+ * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
+ HAVE_STRTOULL.
+ * modules/strtoull (Depends-on): Add stdlib.
+ (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
+ * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
+ HAVE_STRTOULL.
+
+2008-10-19 Bruno Haible <bruno@clisp.org>
+
+ Add strtoll() declaration to <stdlib.h>.
+ * lib/stdlib.in.h (strtoll): New declaration.
+ * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
+ Set HAVE_STRTOLL.
+ * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
+ HAVE_STRTOLL.
+ * modules/strtoll (Depends-on): Add stdlib.
+ (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
+ * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
+
+2008-10-19 Bruno Haible <bruno@clisp.org>
+
+ * modules/bcopy (Depends-on): Add strings.
+ (Include): Specify <strings.h>.
+
+2008-10-19 Bruno Haible <bruno@clisp.org>
+
+ * doc/posix-functions/atexit.texi: Update doc regarding mingw.
+
+2008-10-19 Bruno Haible <bruno@clisp.org>
+
+ * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
+ the parameter from 'errno' to 'errnum'. Fixes a compilation error on
+ mingw.
+
+2008-10-19 Bruno Haible <bruno@clisp.org>
+
+ * lib/atanl.c: Don't include isnanl.h.
+ * lib/cosl.c: Likewise.
+ * lib/ldexpl.c: Likewise.
+ * lib/logl.c: Likewise.
+ * lib/sinl.c: Likewise.
+ * lib/sqrtl.c: Likewise.
+ * lib/tanl.c: Likewise.
+
+ Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
+ * lib/isnanf.h: Remove file.
+ * lib/isnand.h: Remove file.
+ * lib/isnanl.h: Remove file.
+ * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
+ lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
+ macros.
+ * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
+ HAVE_ISNANF, don't define it as a C macro.
+ * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
+ HAVE_ISNAND, don't define it as a C macro.
+ * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
+ HAVE_ISNANL, don't define it as a C macro.
+ * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
+ HAVE_ISNAN[FDL].
+ * modules/isnanf (Files): Remove lib/isnanf.h.
+ (Depends-on): Add math.
+ (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
+ (Include): Specify <math.h> instead of isnanf.h.
+ * modules/isnand (Files): Remove lib/isnand.h.
+ (Depends-on): Add math.
+ (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
+ (Include): Specify <math.h> instead of isnand.h.
+ * modules/isnanl (Files): Remove lib/isnanl.h.
+ (Depends-on): Add math.
+ (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
+ (Include): Specify <math.h> instead of isnanl.h.
+ * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
+ HAVE_ISNAN[FDL].
+ * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
+ * tests/test-isnand.c: Include <math.h> instead of isnand.h.
+ * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
+ * NEWS: Mention the change.
+
+2008-10-18 Bruno Haible <bruno@clisp.org>
+
+ Add getusershell(), setusershell(), endusershell() declarations to
+ <unistd.h>.
+ * lib/unistd.in.h (getusershell, setusershell, endusershell): New
+ declarations.
+ * lib/getusershell.c: Include unistd.h.
+ * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
+ gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
+ HAVE_GETUSERSHELL.
+ * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
+ and HAVE_GETUSERSHELL.
+ * modules/getusershell (Depends-on): Add unistd, extensions.
+ (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
+ (Include): Specify <unistd.h>.
+ * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
+ HAVE_GETUSERSHELL.
+
+2008-10-18 Bruno Haible <bruno@clisp.org>
+
+ Add a getloadavg() declaration to <stdlib.h>.
+ * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
+ getloadavg declaration.
+ (getloadavg): New declaration.
+ * lib/getloadavg.c: Include <stdlib.h> first.
+ * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
+ AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
+ HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
+ * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
+ HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
+ * modules/getloadavg (Depends-on): Add stdlib, extensions.
+ (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
+ (Include): Specify <stdlib.h>.
+ * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
+ HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
+
+2008-10-18 Bruno Haible <bruno@clisp.org>
+
+ * lib/dirchownmod.c: Don't include lchmod.h.
+
+ Move the lchmod() declaration to <sys/stat.h>.
+ * lib/lchmod.h: Remove file.
+ * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
+ (lchmod): New declaration, moved here from lib/lchown.h.
+ * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
+ AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
+ * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
+ and HAVE_LCHMOD.
+ * modules/lchmod (Files): Remove lib/lchmod.h.
+ (Depends-on): Add sys_stat, extensions.
+ (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
+ (Include): Specify <sys/stat.h> instead of lchmod.h.
+ * modules/sys_stat (Depends-on): Add link-warning.
+ (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
+ definition of GL_LINK_WARNING.
+ * NEWS: Mention the change.
+
+2008-10-18 Bruno Haible <bruno@clisp.org>
+
+ * lib/fchdir.c: Don't include dirfd.h.
+ * lib/fts.c: Likewise.
+ * lib/getcwd.c: Likewise.
+ * lib/glob.c: Likewise.
+
+ Move the dirfd() declaration to <dirent.h>.
+ * lib/dirfd.h: Remove file.
+ * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
+ (dirfd): New declaration.
+ * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
+ * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
+ AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
+ HAVE_DECL_DIRFD.
+ * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
+ HAVE_DECL_DIRFD.
+ * modules/dirfd (Files): Remove lib/dirfd.h.
+ (Depends-on): Add dirent, extensions.
+ (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
+ (Include): Specify <dirent.h> instead of dirfd.h.
+ * modules/dirent (Depends-on): Add link-warning.
+ (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
+ definition of GL_LINK_WARNING.
+ * NEWS: Mention the change.
+
+2008-10-18 Bruno Haible <bruno@clisp.org>
+
+ Move the euidaccess() declaration to <unistd.h>.
+ * lib/euidaccess.h: Remove file.
+ * lib/unistd.in.h (euidaccess): New declaration.
+ * lib/euidaccess.c: Don't include euidaccess.h.
+ * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
+ Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
+ * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
+ and HAVE_EUIDACCESS.
+ * modules/euidaccess (Files): Remove lib/euidaccess.h.
+ (Depends-on): Add unistd.
+ (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
+ (Include): Specify <unistd.h> instead of euidaccess.h.
+ * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
+ HAVE_EUIDACCESS.
+ * NEWS: Mention the change.
+
+2008-10-18 Bruno Haible <bruno@clisp.org>
+
+ * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
+
+ Move the getdomainname() declaration to <unistd.h>.
+ * lib/getdomainname.h: Remove file.
+ * lib/unistd.in.h (getdomainname): New declaration.
+ * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
+ * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
+ gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
+ HAVE_GETDOMAINNAME.
+ * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
+ GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
+ * modules/getdomainname (Files): Remove lib/getdomainname.h.
+ (Depends-on): Add unistd, extensions.
+ (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
+ (Includes): Specify <unistd.h> instead of getdomainname.h.
+ * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
+ HAVE_GETDOMAINNAME.
+ * NEWS: Mention the change.
+
+2008-10-18 Bruno Haible <bruno@clisp.org>
+
+ * modules/dirent: New file.
+ * m4/dirent_h.m4: New file.
+ * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
+ Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
+ * modules/fchdir (Files): Remove lib/dirent.in.h.
+ (Depends-on): Add dirent.
+ (Makefile.am): Move rules to modules/dirent.
+ * doc/posix-headers/dirent.texi: Mention the new module.
+
+2008-10-18 Bruno Haible <bruno@clisp.org>
+
+ Avoid -Wunused-parameter warnings in public gnulib header files.
+ * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
+ macro.
+ * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
+
+2008-10-18 Bruno Haible <bruno@clisp.org>
+
+ * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
+ * doc/glibc-functions/error.texi: Mention the module 'error'.
+ * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
+ * doc/glibc-functions/getdomainname.texi: Mention the module
+ 'getdomainname'.
+ * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
+ * doc/glibc-functions/getpagesize.texi: Mention the module
+ 'getpagesize'.
+ * doc/glibc-functions/getusershell.texi: Mention the module
+ 'getusershell'.
+ * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
+ * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
+ * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
+ * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
+ * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
+ * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
+ * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
+ * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
+ * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
+ * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
+ * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
+ * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
+ * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
+ * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
+
+2008-10-17 Bruno Haible <bruno@clisp.org>
+
+ * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
+ HP-UX and IRIX, use -0.0L.
+ * tests/test-ceill.c (minus_zero): Likewise.
+ * tests/test-floorl.c (minus_zero): Likewise.
+ * tests/test-frexpl.c (minus_zero): Likewise.
+ * tests/test-isnan.c (minus_zerol): Likewise.
+ * tests/test-isnanl.h (minus_zero): Likewise.
+ * tests/test-ldexpl.c (minus_zero): Likewise.
+ * tests/test-roundl.c (minus_zero): Likewise.
+ * tests/test-signbit.c (minus_zerol): Likewise.
+ * tests/test-snprintf-posix.h (minus_zerol): Likewise.
+ * tests/test-sprintf-posix.h (minus_zerol): Likewise.
+ * tests/test-truncl.c (minus_zero): Likewise.
+ * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
+ * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
+ Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
+ and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
+
+2008-10-17 Bruno Haible <bruno@clisp.org>
+
+ Avoid gcc warnings because of #pragma GCC system_header on older gcc.
+ * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
+ that it gets activated only for gcc >= 3.0.
+ * lib/dirent.in.h: Likewise.
+ * lib/errno.in.h: Likewise.
+ * lib/fcntl.in.h: Likewise.
+ * lib/float.in.h: Likewise.
+ * lib/iconv.in.h: Likewise.
+ * lib/inttypes.in.h: Likewise.
+ * lib/locale.in.h: Likewise.
+ * lib/math.in.h: Likewise.
+ * lib/netdb.in.h: Likewise.
+ * lib/netinet_in.in.h: Likewise.
+ * lib/search.in.h: Likewise.
+ * lib/signal.in.h: Likewise.
+ * lib/spawn.in.h: Likewise.
+ * lib/stdarg.in.h: Likewise.
+ * lib/stdint.in.h: Likewise.
+ * lib/stdio.in.h: Likewise.
+ * lib/stdlib.in.h: Likewise.
+ * lib/string.in.h: Likewise.
+ * lib/strings.in.h: Likewise.
+ * lib/sys_file.in.h: Likewise.
+ * lib/sys_ioctl.in.h: Likewise.
+ * lib/sys_select.in.h: Likewise.
+ * lib/sys_socket.in.h: Likewise.
+ * lib/sys_stat.in.h: Likewise.
+ * lib/sys_time.in.h: Likewise.
+ * lib/sysexits.in.h: Likewise.
+ * lib/time.in.h: Likewise.
+ * lib/unistd.in.h: Likewise.
+ * lib/wchar.in.h: Likewise.
+ * lib/wctype.in.h: Likewise.
+ Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
+
+2008-10-17 Jim Meyering <meyering@redhat.com>
+
+ ignore-value: don't depend on inline module
+ * modules/ignore-value (Depends-on): Remove 'inline'.
+ (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
+ Suggestion from Bruno Haible.
+
+2008-10-17 Bruno Haible <bruno@clisp.org>
+
+ New implementation of condition variables for Win32.
+ * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
+ (gl_linked_waitqueue_t): New type.
+ (gl_cond_t): Use it.
+ * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
+ (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
+ gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
+ (glthread_cond_init_func, glthread_cond_wait_func,
+ glthread_cond_timedwait_func, glthread_cond_signal_func,
+ glthread_cond_broadcast_func, glthread_cond_destroy_func):
+ Reimplemented on the basis of gl_linked_waitqueue_t.
+ * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
+ gl_waitqueue_t.
+ (gl_rwlock_t): Update.
+ * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
+
+2008-10-17 Simon Josefsson <simon@josefsson.org>
+
+ * modules/recvfrom (Depends-on): Add dependency on getpeername.
+ Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
+
+2008-10-17 Jim Meyering <meyering@redhat.com>
+
+ ignore-value: new module
+ * modules/ignore-value: New file.
+ * lib/ignore-value.h: New file.
+ * MODULES.html.sh (Compiler warning management): New section,
+ just for this module. More to come.
+
+2008-10-16 Paul Eggert <eggert@cs.ucla.edu>
+
+ open-safer.c: avoid 'signed and unsigned in conditional...' warning
+ * lib/open-safer.c (open_safer): Use an "if/else" statement in place
+ of the ternary operator. Reported by Reuben Thomas <rrt@sc3d.org>.
+
+2008-10-16 Jim Meyering <meyering@redhat.com>
+
+ openat-die.c: avoid 'no previous prototype' warning
+ * lib/openat-die.c: Include "openat.h".
+ Reported by Reuben Thomas <rrt@sc3d.org>.
+
+2008-10-16 Simon Josefsson <simon@josefsson.org>
+
+ * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
+ * lib/netdb.in.h: Fix typo.
+ Reported by Bruno Haible <bruno@clisp.org>
+
+ * lib/netdb.in.h: Include sys/socket.h for platforms without
+ netdb.h, to get structures like hostent on MinGW.
+ * modules/netdb (Depends-on): Add sys_socket.
+
+2008-10-15 Simon Josefsson <simon@josefsson.org>
+
+ * modules/netdb, modules/netdb-tests: New file.
+ * m4/netdb_h.m4: New file.
+ * lib/netdb.in.h: Add, currently just an empty file pending
+ definitions.
+ * tests/test-netdb.c: New file.
+ * doc/posix-headers/netdb.texi: Mention that we replace it if
+ needed.
+ * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
+ netdb.
+
+2008-10-15 Simon Josefsson <simon@josefsson.org>
+
+ * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
+ with code.
+
+2008-10-13 Bruno Haible <bruno@clisp.org>
+
+ * lib/glthread/cond.c (glthread_cond_wait_func,
+ glthread_cond_timedwait_func): Add a comment.
+
+2008-10-13 Yoann Vandoorselaere <yoann@prelude-ids.org>
+
+ * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
+ * tests/test-select.c: Likewise,
+
+2008-10-13 Bruno Haible <bruno@clisp.org>
+
+ * lib/glthread/cond.c (glthread_cond_wait_func,
+ glthread_cond_timedwait_func): Fix variable name.
+ Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
+
+2008-10-13 Paolo Bonzini <bonzini@gnu.org>
+
+ fix getaddrinfo emulation for systems with struct sockaddr.sa_len
+ * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
+ struct sockaddr.sa_len.
+ * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
+
+2008-10-13 Simon Josefsson <simon@josefsson.org>
+
+ * build-aux/pmccabe2html: Add css and css_url parameters.
+
+2008-10-12 Bruno Haible <bruno@clisp.org>
+
+ * tests/test-sameacls.c (main) [AIX]: Clear type argument before
+ calling aclx_get.
+ Reported by Rainer Tammer <tammer@tammer.net>.
+
+2008-10-12 Bruno Haible <bruno@clisp.org>
+
+ Use msvcrt aware primitives for creation/termination of Win32 threads.
+ * lib/glthread/thread.c: Include <process.h>.
+ (glthread_create_func): Use _beginthreadex instead of CreateThread.
+ (wrapper_func): Update signature.
+ (gl_thread_exit_func): Use _endthreadex instead of EndThread.
+
+2008-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
+ Bruno Haible <bruno@clisp.org>
+
+ Provide a Win32 implementation of the 'cond' module.
+ * lib/glthread/cond.h [USE_WIN32]: New implementation.
+ * lib/glthread/cond.c (glthread_cond_init_func,
+ glthread_cond_wait_func, glthread_cond_timedwait_func,
+ glthread_cond_signal_func, glthread_cond_broadcast_func,
+ glthread_cond_destroy_func) [USE_WIN32]: New functions.
+ * modules/cond (Dependencies): Add gettimeofday.
+
+2008-10-11 Bruno Haible <bruno@clisp.org>
+
+ Make sleep work on older versions of mingw.
+ * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
+ only whether it exists.
+ * doc/posix-functions/sleep.texi: Mention the problem with older
+ versions of mingw.
+
+2008-10-11 Bruno Haible <bruno@clisp.org>
+
+ New module 'shutdown'.
+ * modules/shutdown: New file.
+ * lib/sys_socket.in.h (shutdown): New declaration.
+ * lib/winsock.c (shutdown): New function.
+ * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
+ GNULIB_SHUTDOWN.
+ * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
+ * doc/posix-functions/shutdown.texi: Document the new module.
+
+2008-10-11 Jim Meyering <meyering@redhat.com>
+
+ * lib/fclose.c: Fix typo in comment: s/close/fclose/.
+
+2008-10-11 Bruno Haible <bruno@clisp.org>
+
+ New module 'fclose'.
+ * modules/fclose: New file.
+ * lib/stdio.in.h (fclose): New declaration.
+ * lib/fclose.c: New file.
+ * m4/fclose.m4: New file.
+ * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
+ REPLACE_FCLOSE.
+ * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
+ * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
+ REPLACE_FCLOSE.
+ * modules/close (Depends-on): fclose.
+ * doc/posix-functions/fclose.texi: Mention the problem on Windows.
+
+2008-10-11 Bruno Haible <bruno@clisp.org>
+
+ * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
+ set errno and don't call _close.
+
+2008-10-10 Bruno Haible <bruno@clisp.org>
+
+ * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
+ ACL, not afterwards. Fixes test failure on Cygwin.
+
+2008-10-09 Ben Pfaff <blp@gnu.org>
+
+ * build-aux/announce-gen: Fix gnulib version related part of usage
+ message. Die with a useful error message if no tarballs are
+ found.
+
+2008-10-10 Jim Meyering <meyering@redhat.com>
+
+ bootstrap: use git's --depth=N option only if it's supported
+ * build-aux/bootstrap: Work with git-1.4.4.4, which does not
+ recognize the --depth option. Reported by Pádraig Brady.
+
+2008-10-09 Bruno Haible <bruno@clisp.org>
+
+ New module 'ioctl'.
+ * modules/ioctl: New file.
+ * lib/sys_socket.in.h (ioctl): Remove declaration.
+ * lib/winsock.c: Include <sys/ioctl.h>.
+ (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
+ * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
+ gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
+ * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
+ * doc/posix-functions/ioctl.texi: Mention the new module.
+
+2008-10-09 Bruno Haible <bruno@clisp.org>
+
+ New module 'sys_ioctl'.
+ * lib/sys_ioctl.in.h: New file.
+ * m4/sys_ioctl_h.m4: New file.
+ * modules/sys_ioctl: New file.
+ * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
+
+2008-10-09 Bruno Haible <bruno@clisp.org>
+
+ * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
+ * lib/winsock.c: Include <stdarg.h>.
+ (rpl_ioctl): Change to second argument 'int' and then varargs.
+
+2008-10-09 Bruno Haible <bruno@clisp.org>
+
+ * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
+ when the sys_socket module is present and the system has <winsock2.h>.
+
+2008-10-09 Bruno Haible <bruno@clisp.org>
+
+ * doc/posix-functions/close.texi: Mention module 'close' instead of
+ module 'sys_socket'.
+
+2008-10-09 Bruno Haible <bruno@clisp.org>
+
+ * doc/glibc-headers/sys_ioctl.texi: New file.
+ * doc/gnulib.texi: Include it.
+
+2008-10-09 Paolo Bonzini <bonzini@gnu.org>
+ Bruno Haible <bruno@clisp.org>
+
+ Combine the two replacements of 'close'.
+ * lib/sys_socket.in.h (close): Define to a reminder to include
+ <unistd.h>.
+ (_gl_close_fd_maybe_socket): New declaration.
+ (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
+ * lib/winsock.c (close): Remove undefinition.
+ (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
+ needed for the gnulib module 'close'.
+ * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
+ define to an error symbol or to a warning, if suitable.
+ * lib/close.c: Include <sys/socket.h>.
+ (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
+ * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
+ UNISTD_H_HAVE_WINSOCK2_H.
+ (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
+ * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
+ UNISTD_H_HAVE_WINSOCK2_H.
+ * modules/sys_socket (Files): Add m4/unistd_h.m4.
+ (configure.ac): Set a module indicator.
+ (Makefile.am): Substitute GNULIB_CLOSE.
+ * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
+ * modules/poll-tests (Depends-on): Add close.
+ * modules/select-tests (Depends-on): Likewise.
+
+2008-10-09 Paolo Bonzini <bonzini@gnu.org>
+ Bruno Haible <bruno@clisp.org>
+
+ New module 'close'.
+ * modules/close: New file.
+ * lib/unistd.in.h (close): Move declaration out of the
+ FCHDIR_REPLACEMENT scope.
+ (_gl_unregister_fd): New declaration.
+ * lib/close.c: New file.
+ * lib/fchdir.c (rpl_close): Remove function.
+ * m4/close.m4: New file.
+ * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
+ close.
+ * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
+ REPLACE_CLOSE.
+ * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
+ REPLACE_CLOSE.
+ * modules/fchdir (Depends-on): Add close.
+
+2008-10-09 Paolo Bonzini <bonzini@gnu.org>
+ Bruno Haible <bruno@clisp.org>
+
+ * lib/fcntl.in.h (open): Simplify conditionals.
+ (_gl_register_fd): New declaration.
+ * lib/fchdir.c (rpl_open): Remove function.
+ * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
+ also.
+ (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
+ * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
+ open.
+
+2008-10-09 Jim Meyering <meyering@redhat.com>
+
+ GNUmakefile: use the more name-space-friendly "_version"
+ * top/GNUmakefile (_dummy): Update.
+ (_version): Rename from "version".
+
+2008-10-09 Paolo Bonzini <bonzini@gnu.org>
+ Bruno Haible <bruno@clisp.org>
+
+ * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
+ rpl_close.
+ (_gl_register_fd): New function, extracted from rpl_open.
+ (rpl_close, rpl_closedir): Use _gl_unregister_fd.
+ (rpl_open, rpl_opendir): Use _gl_register_fd.
+
+2008-10-09 Paolo Bonzini <bonzini@gnu.org>
+
+ Fix organization of 'open' replacement.
+ * m4/open.m4 (gl_REPLACE_OPEN): New macro.
+ (gl_FUNC_OPEN): Use it.
+ (gl_PREREQ_OPEN): Add a : to make the body non-empty.
+
+2008-10-08 Bruno Haible <bruno@clisp.org>
+
+ * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
+
+2008-10-08 Simon Josefsson <simon@josefsson.org>
+
+ * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock). The file is
+ AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
+ listen).
+
+2008-10-08 Eric Blake <ebb9@byu.net>
+
+ GNUmakefile: add 'make version' target
+ * top/GNUmakefile (_curr-ver): Split version update rules...
+ (version): ...into a target.
+
+2008-10-07 Bruno Haible <bruno@clisp.org>
+
+ Use a more portable replacement expression for -0.0L.
+ * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
+ instead of -0.0L. Fix m4 quotation.
+
+ * tests/test-signbit.c: Include <float.h>.
+ (minus_zero): New variable.
+ (test_signbitl): Use minus_zero instead of -zero.
+ * modules/signbit-tests (Depends-on): Add float.
+
+ * tests/test-ceill.c: Include <float.h>.
+ (zero): Remove variable.
+ (minus_zero): New variable.
+ (main): Use minus_zero instead of -zero.
+ * modules/ceill-tests (Depends-on): Add float.
+
+ * tests/test-floorl.c: Include <float.h>.
+ (zero): Remove variable.
+ (minus_zero): New variable.
+ (main): Use minus_zero instead of -zero.
+ * modules/floorl-tests (Depends-on): Add float.
+
+ * tests/test-roundl.c: Include <float.h>.
+ (zero): Remove variable.
+ (minus_zero): New variable.
+ (main): Use minus_zero instead of -zero.
+ * modules/roundl-tests (Depends-on): Add float.
+
+ * tests/test-truncl.c: Include <float.h>.
+ (zero): Remove variable.
+ (minus_zero): New variable.
+ (main): Use minus_zero instead of -zero.
+ * modules/truncl-tests (Depends-on): Add float.
+
+ * tests/test-frexpl.c (zero): Remove variable.
+ (minus_zero): New variable.
+ (main): Use minus_zero instead of -zero.
+ * modules/frexpl-tests (Depends-on): Add float.
+
+ * tests/test-isnan.c (zerol): Remove variable.
+ (minus_zerol): New variable.
+ (test_long_double): Use minus_zerol instead of -zerol.
+ * modules/isnan-tests (Depends-on): Add float.
+
+ * tests/test-isnanl.h (zero): Remove variable.
+ (minus_zero): New variable.
+ (main): Use minus_zero instead of -zero.
+ * modules/isnanl-nolibm-tests (Depends-on): Add float.
+ * modules/isnanl-tests (Depends-on): Add float.
+
+ * tests/test-ldexpl.c (zero): Remove variable.
+ (minus_zero): New variable.
+ (main): Use minus_zero instead of -zero.
+ * modules/ldexpl-tests (Depends-on): Add float.
+
+ * tests/test-snprintf-posix.h (zerol): Remove variable.
+ (minus_zerol): New variable.
+ (test_function): Use minus_zerol instead of -zerol.
+ * modules/snprintf-posix-tests (Depends-on): Add float.
+ * modules/vsnprintf-posix-tests (Depends-on): Add float.
+
+ * tests/test-sprintf-posix.h (zerol): Remove variable.
+ (minus_zerol): New variable.
+ (test_function): Use minus_zerol instead of -zerol.
+ * modules/sprintf-posix-tests (Depends-on): Add float.
+ * modules/vsprintf-posix-tests (Depends-on): Add float.
+
+ * tests/test-vasnprintf-posix.c (zerol): Remove variable.
+ (minus_zerol): New variable.
+ (test_function): Use minus_zerol instead of -zerol.
+ * modules/vasnprintf-posix-tests (Depends-on): Add float.
+
+ * tests/test-vasprintf-posix.c (zerol): Remove variable.
+ (minus_zerol): New variable.
+ (test_function): Use minus_zerol instead of -zerol.
+ * modules/vasprintf-posix-tests (Depends-on): Add float.
+
+2008-10-07 Simon Josefsson <simon@josefsson.org>
+
+ * MODULES.html.sh (Support for building documentation): Mention
+ pmccabe2html. Sort entries.
+
+ Add pmccabe2html module, from gnupdf.
+ * build-aux/pmccabe.css: New file.
+ * build-aux/pmccabe2html: New file.
+ * m4/pmccabe2html.m4: New file.
+ * modules/pmccabe2html: New file.
+
+2008-10-07 Richard W.M. Jones <rjones@redhat.com>
+
+ flock: new module
+ * MODULES.html.sh: Add to list of modules.
+ * lib/flock.c: flock implementation for Windows and Unix systems
+ which have fcntl.
+ * doc/glibc-functions/flock.texi: Update documentation.
+ * lib/sys_file.in.h: <sys/file.h> header file.
+ * m4/flock.m4: M4 macros.
+ * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
+ * modules/flock: flock module.
+ * modules/flock-tests: flock tests module.
+ * modules/sys_file: sys/file.h module.
+ * tests/test-flock.c: test suite for flock.
+
+2008-10-06 Jim Meyering <meyering@redhat.com>
+
+ bootstrap: check for LT_INIT more portably still ;-)
+ * build-aux/bootstrap: Don't rely on \>, since it's not portable.
+ Spotted by Bruno Haible.
+
+2008-10-06 Eric Blake <ebb9@byu.net>
+
+ test-signbit: avoid tripping Irix cc bug on -0.0L
+ * tests/test-signbit.c (minus_zerol): Delete, and replace with
+ '-zerol'. This may break on HP-UX/hppa, but at least makes the
+ entire testsuite consistent and avoids an Irix 6.2 bug.
+
+2008-10-05 Bruno Haible <bruno@clisp.org>
+ Jim Meyering <jim@meyering.net>
+
+ Add an option for ignoring EPIPE during close_stdout.
+ * lib/closeout.h: Include <stdbool.h>.
+ (close_stdout_set_ignore_EPIPE): New declaration.
+ * lib/closeout.c: Include <stdbool.h>.
+ (ignore_EPIPE): New variable.
+ (close_stdout_set_ignore_EPIPE): New function.
+ (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
+ * lib/close-stream.c (close_stream): Mention the possible EPIPE
+ failure.
+ * modules/closeout (Depends-on): Add stdbool.
+
+2008-10-05 Bruno Haible <bruno@clisp.org>
+
+ * modules/accept: New file.
+ * modules/bind: New file.
+ * modules/connect: New file.
+ * modules/getpeername: New file.
+ * modules/getsockname: New file.
+ * modules/getsockopt: New file.
+ * modules/listen: New file.
+ * modules/recv: New file.
+ * modules/recvfrom: New file.
+ * modules/send: New file.
+ * modules/sendto: New file.
+ * modules/setsockopt: New file.
+ * modules/socket: New file.
+ * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
+ (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
+ listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
+ the particular module is requested. Add a link warning when the
+ particular module is not requested.
+ * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
+ rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
+ rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
+ the particular module is requested.
+ * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
+ gl_SYS_SOCKET_H_DEFAULTS): New macros.
+ (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
+ * modules/sys_socket (Depends-on): Add link-warning.
+ (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
+ GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
+ GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
+ GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
+ GL_LINK_WARNING.
+ * doc/posix-functions/accept.texi: Mention the new module 'accept'.
+ * doc/posix-functions/bind.texi: Mention the new module 'bind'.
+ * doc/posix-functions/connect.texi: Mention the new module 'connect'.
+ * doc/posix-functions/getpeername.texi: Mention the new module
+ 'getpeername'.
+ * doc/posix-functions/getsockname.texi: Mention the new module
+ 'getsockname'.
+ * doc/posix-functions/getsockopt.texi: Mention the new module
+ 'getsockopt'.
+ * doc/posix-functions/listen.texi: Mention the new module 'listen'.
+ * doc/posix-functions/recv.texi: Mention the new module 'recv'.
+ * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
+ * doc/posix-functions/send.texi: Mention the new module 'send'.
+ * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
+ * doc/posix-functions/setsockopt.texi: Mention the new module
+ 'setsockopt'.
+ * doc/posix-functions/socket.texi: Mention the new module 'socket'.
+ * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
+ listen, connect, accept.
+ * modules/select-tests (Depends-on): Likewise.
+
+2008-10-05 Bruno Haible <bruno@clisp.org>
+
+ * lib/winsock.c (strerror): Remove unused #undef.
+ (rpl_close): Remove unused local variable.
+
+ * modules/sys_socket (Depends-on); Add errno.
+
+2008-10-05 Bruno Haible <bruno@clisp.org>
+
+ * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
+ (select): Add a link warning when the 'select' module is not used.
+ * modules/sys_select (Depends-on): Add link-warning.
+ (Makefile.am): Substitute the definition of GL_LINK_WARNING.
+ Suggested by Paolo Bonzini.
+
+2008-10-05 Jim Meyering <meyering@redhat.com>
+
+ bootstrap: check for LT_INIT more portably
+ * build-aux/bootstrap: Avoid using grep -E, since it's not
+ portable enough. Suggestion from Bruno Haible.
+
+2008-10-05 Bruno Haible <bruno@clisp.org>
+
+ * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
+ as being fixed by gnulib.
+
+2008-10-05 Bruno Haible <bruno@clisp.org>
+
+ * modules/select-tests: New file, mostly copied from
+ modules/sys_select-tests.
+ * tests/test-select.c: New file, mostly copied from
+ tests/test-sys_select.c.
+ * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
+ * modules/sys_select-tests (Depends-on): Remove all dependencies.
+ (Makefile.am): Remove test_sys_select_LDADD.
+
+ * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
+ to an undefined symbol, for an error message.
+ * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
+ (gl_SYS_SELECT_H_DEFAULTS): New macro.
+ (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
+ winsock-select.c here.
+ * modules/sys_select (Files): Remove lib/winsock-select.c.
+ (Depends-on): Remove alloca.
+ (Makefile.am): Substitute GNULIB_SELECT.
+ * modules/select: New file.
+ * doc/posix-functions/select.texi: Update.
+
+2008-10-05 Bruno Haible <bruno@clisp.org>
+
+ * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
+ * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
+ * lib/spawn_faction_addopen.c (__sysconf): Likewise.
+ * modules/posix_spawn_file_actions_addclose (Depends-on): Add
+ getdtablesize.
+ * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
+ * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
+
+2008-10-05 Bruno Haible <bruno@clisp.org>
+
+ * modules/getdtablesize-tests: New file.
+ * tests/test-getdtablesize.c: New file.
+
+ New module 'getdtablesize'.
+ * lib/unistd.in.h (getdtablesize): New declaration.
+ * lib/getdtablesize.c: New file.
+ * m4/getdtablesize.m4: New file.
+ * modules/getdtablesize: New file.
+ * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
+ GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
+ * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
+ HAVE_GETDTABLESIZE.
+ * doc/glibc-functions/getdtablesize.texi: Mention the new module.
+
+2008-10-05 Bruno Haible <bruno@clisp.org>
+
+ * modules/sched (Makefile.am): Fix typo.
+ Reported by Simon Josefsson.
+
+2008-10-05 Jim Meyering <meyering@redhat.com>
+
+ bootstrap: check for LT_INIT, too
+ * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
+ are deprecated. Suggestion from Ralf Wildenhues.
+
+2008-10-05 Bruno Haible <bruno@clisp.org>
+
+ * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
+ overriding them by ours.
+ (POSIX_SPAWN_USEVFORK): Use the next free bit position.
+
+2008-10-05 Jim Meyering <meyering@redhat.com>
+
+ bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
+ * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
+ obsolete AM_PROG_LIBTOOL. Spotted by Debarshi Ray <rishi@gnu.org>.
+
+2008-10-04 Bruno Haible <bruno@clisp.org>
+
+ * modules/dup2 (License): Change to LGPLv2+.
+ * modules/sleep (License): Likewise.
+ * modules/perror (License): Likewise.
+ * modules/fopen (License): Change to LGPLv2+, with approval by Eric
+ Blake.
+ * modules/signal (License): Likewise.
+ * modules/sigprocmask (License): Likewise.
+ * modules/raise (License): Change to LGPLv2+, with approval by Jim
+ Meyering.
+
+2008-10-04 Bruno Haible <bruno@clisp.org>
+
+ * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
+ Reported by Rainer Tammer <tammer@tammer.net>.
+
+2008-10-03 Paolo Bonzini <bonzini@gnu.org>
+ Bruno Haible <bruno@clisp.org>
+
+ * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
+ * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
+ * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
+
+2008-10-03 Kamil Dudka <kdudka@redhat.com>
+
+ filevercmp: new module
+ * lib/filevercmp.h: New function filevercmp comparing version strings.
+ * lib/filevercmp.c: Implementation of filevercmp function.
+ * modules/filevercmp: Module metadata.
+ * tests/test-filevercmp.c: Unit test for new module.
+ * modules/filevercmp-tests: Unit test metadata.
+ * MODULES.html.sh: Add filevercmp module.
+
+2008-10-03 Bruno Haible <bruno@clisp.org>
+
+ * lib/c-ctype.h: Add comment.
+ Reported by Jim Meyering.
+
+2008-10-02 Bruno Haible <bruno@clisp.org>
+
+ * modules/posix_spawn-internal (Depends-on): Add 'open'.
+
+2008-10-02 Paolo Bonzini <bonzini@gnu.org>
+
+ * build-aux/bootstrap: Allow renaming bootstrap, and change the
+ name of bootstrap.conf accordingly.
+
+2008-10-02 Paolo Bonzini <bonzini@gnu.org>
+
+ * build-aux/bootstrap: Install git-merge-changelog configuration
+ items into .gitconfig if needed.
+
+2008-10-02 Paolo Bonzini <bonzini@gnu.org>
+
+ * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
+ git repository, and initialize/update it accordingly.
+
+2008-10-02 Richard W.M. Jones <rjones@redhat.com>
+
+ * modules/fsync-tests: New file.
+ * tests/test-fsync.c: New file.
+
+ New module 'fsync'.
+ * lib/fsync.c: New file.
+ * m4/fsync.m4: New file.
+ * modules/fsync: New file.
+ * lib/unistd.in.h (fsync): New declaration.
+ * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
+ GNULIB_FSYNC and HAVE_FSYNC.
+ * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
+ * MODULES.html.sh (posix_functions): Add fsync.
+ * doc/posix-functions/fsync.texi: Mention the new module.
+
+2008-10-02 Jim Meyering <meyering@redhat.com>
+
+ fts.c: sync with similar code from coreutils' remove.c
+ * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
+ Guard also with "#if defined __linux__", since for now at least,
+ this code is Linux-kernel-specific.
+
+2008-10-02 Jim Meyering <meyering@redhat.com>
+
+ fts: bug fixes
+ * lib/fts.c: Remove unnecessary "defined" in cpp directive.
+ Include <sys/vfs.h>, not <sys/statfs.h>.
+
+ * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
+ Include <sys/vfs.h>, not <sys/statfs.h>.
+
+2008-10-01 Bruno Haible <bruno@clisp.org>
+
+ Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
+ * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
+ (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
+ * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
+ * doc/posix-functions/posix_spawnp.texi: Likewise.
+ * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
+ whether posix_spawn actually works.
+ * m4/pipe.m4 (gl_PIPE): Likewise.
+ * modules/execute (Files): Add m4/posix_spawn.m4.
+ * modules/pipe (Files): Add m4/posix_spawn.m4.
+ Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
+
+2008-10-01 Jim Meyering <meyering@redhat.com>
+
+ remove trailing spaces
+ * NEWS: Likewise.
+ * lib/poll.c (poll): Likewise.
+ * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
+ * lib/winsock.c (rpl_close): Likewise.
+ * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
+ * modules/yield: Likewise.
+ * tests/test-poll.c (connect_to_socket, poll1): Likewise.
+ * tests/test-sys_select.c (connect_to_socket): Likewise.
+
+ fts.c: adjust a new interface to be more generally useful
+ * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
+ (fts_build): Adjust caller.
+
+2008-09-30 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
+
+ * modules/cond-tests: New file.
+ * tests/test-cond.c: New file.
+
+2008-09-30 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
+ Bruno Haible <bruno@clisp.org>
+
+ * modules/cond (Dependencies): Add errno, time.
+ * lib/glthread/cond.h: Include <time.h>.
+ (gl_cond_define, gl_cond_define_initialized): Use the same definition
+ across platforms.
+
+2008-09-30 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
+ Bruno Haible <bruno@clisp.org>
+
+ * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
+
+2008-09-30 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
+ Bruno Haible <bruno@clisp.org>
+
+ * modules/tls-tests (Depends-on): Add thread, yield.
+ (configure.ac): Remove all checks.
+ (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
+ * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
+ gl_thread_self): Remove definitions. Include glthread/thread.h and
+ glthread/yield.h instead.
+ (test_tls): Pass an additional NULL argument to gl_thread_join.
+
+2008-09-30 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
+ Bruno Haible <bruno@clisp.org>
+
+ * modules/lock-tests (Depends-on): Add thread, yield.
+ (configure.ac): Remove all checks.
+ (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
+ * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
+ gl_thread_self): Remove definitions. Include glthread/thread.h and
+ glthread/yield.h instead.
+ (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
+ additional NULL argument to gl_thread_join.
+
+2008-09-30 Bruno Haible <bruno@clisp.org>
+
+ Fix the Win32 implementation of the 'thread' module.
+ * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
+ pointer type.
+ (gl_thread_self): Invoke gl_thread_self_func.
+ (gl_thread_self_func): New declaration.
+ * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
+ (do_init_self_key, init_self_key): New functions.
+ (struct gl_thread_struct): Renamed from 'struct thread_extra'.
+ Remove some fields.
+ (running_threads, running_lock): Remove variables.
+ (get_current_thread_handle): New function.
+ (gl_thread_self_func, wrapper_func, glthread_create_func,
+ glthread_join_func, gl_thread_exit_func): Largely rewritten and
+ simplified.
+
+2008-09-30 Bruno Haible <bruno@clisp.org>
+
+ * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
+ files.
+
+2008-09-30 Jim Meyering <meyering@redhat.com>
+
+ fts.m4: correct the test for statfs.f_type
+ * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
+ when checking for statfs.f_type.
+
+2008-09-15 Simon Josefsson <simon@josefsson.org>
+
+ tests: avoid some compiler warnings
+ * tests/test-memchr.c (main): Pass NULL indirectly.
+ * tests/test-getdate.c (main): Remove unused variable 'ret'.
+
+2008-09-29 Ondřej Vašík <ovasik@redhat.com>
+
+ getdate.y: disallow countable dayshifts like "4 yesterday ago"
+ * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
+ exactly specified dayshifts.
+ (dayshift): New rule.
+ (rel): Add dayshift.
+ (relative_time_table) [tomorrow, yesterday, today, now]:
+ Use tDAY_SHIFT in place of tDAY_UNIT.
+ * tests/test-getdate.c: Add tests for now-disallowed countable
+ dayshifts, e.g., "4 yesterday ago".
+
+2008-09-29 Bruno Haible <bruno@clisp.org>
+
+ * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
+ * tests/test-posix_spawn1.in.sh: Renamed from
+ tests/test-posix_spawn.in.sh.
+ * tests/test-posix_spawn2.c: New file.
+ * tests/test-posix_spawn2.in.sh: New file.
+ * modules/posix_spawnp-tests (Files): Update.
+ (Makefile.am): Update. Add test-posix_spawn2 to the tests.
+
+2008-09-29 Bruno Haible <bruno@clisp.org>
+
+ Propagate effects of putenv/setenv/unsetenv to child processes.
+ * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
+ * lib/pipe.c (create_pipe): Likewise.
+
+2008-09-29 Bruno Haible <bruno@clisp.org>
+
+ Enable use of shell scripts as executables in mingw.
+ * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
+ run the program as a shell script.
+ * lib/pipe.c (create_pipe): Likewise.
+ * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
+ resulting array.
+
+2008-09-29 Eric Blake <ebb9@byu.net>
+
+ * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
+
+2008-08-24 Paolo Bonzini <bonzini@gnu.org>
+
+ * doc/posix-functions/accept.texi: Update mingw problems.
+ * doc/posix-functions/bind.texi: Update mingw problems.
+ * doc/posix-functions/close.texi: Update mingw problems.
+ * doc/posix-functions/connect.texi: Update mingw problems.
+ * doc/posix-functions/getpeername.texi: Update mingw problems.
+ * doc/posix-functions/getsockname.texi: Update mingw problems.
+ * doc/posix-functions/getsockopt.texi: Update mingw problems.
+ * doc/posix-functions/ioctl.texi: Update mingw problems.
+ * doc/posix-functions/listen.texi: Update mingw problems.
+ * doc/posix-functions/recv.texi: Update mingw problems.
+ * doc/posix-functions/recvfrom.texi: Update mingw problems.
+ * doc/posix-functions/select.texi: Update mingw problems.
+ * doc/posix-functions/send.texi: Update mingw problems.
+ * doc/posix-functions/sendto.texi: Update mingw problems.
+ * doc/posix-functions/setsockopt.texi: Update mingw problems.
+ * doc/posix-functions/socket.texi: Update mingw problems.
+
+2008-09-29 Paolo Bonzini <bonzini@gnu.org>
+ Bruno Haible <bruno@clisp.org>
+
+ * lib/sys_select.in.h: Include sys/time.h.
+ * m4/sys_select.h.m4: Test that struct timeval is fully defined.
+ * modules/sys_select: Depend on sys_time.
+ * tests/test-sys_select.c: Test that sys/select.h defines struct
+ timeval fully.
+
+2008-09-29 Bruno Haible <bruno@clisp.org>
+
+ * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
+ * lib/sys_select.in.h: Likewise.
+
+2008-09-29 Bruno Haible <bruno@clisp.org>
+
+ * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
+
+2008-09-29 Bruno Haible <bruno@clisp.org>
+
+ * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
+ Set LIBSOCKET instead of augmenting LIBS.
+ * modules/sockets (Link): New section.
+ * modules/sockets-tests (test_sockets_LDADD): New variable.
+ * modules/sys_select-tests (test_sys_select_LDADD): New variable.
+ * modules/poll-tests (test_poll_LDADD): New variable.
+ * NEWS: Document the change.
+
+2008-09-29 Bruno Haible <bruno@clisp.org>
+
+ * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
+ * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
+ ARPA_INET_H directly.
+ * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
+
+2008-09-28 Bruno Haible <bruno@clisp.org>
+
+ * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
+ from gl_HEADER_SYS_SOCKET.
+ (gl_HEADER_SYS_SOCKET): Invoke it.
+ * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
+
+2008-09-28 Bruno Haible <bruno@clisp.org>
+
+ * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
+ * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
+ Needed on OSF/1 4.0.
+
+2008-09-28 Bruno Haible <bruno@clisp.org>
+
+ Override open more carefully.
+ * lib/open.c (orig_open): New function.
+ (rpl_open): Use orig_open instead of open.
+ * lib/fcntl.in.h: Add special invocation convention.
+ * m4/open.m4 (gl_PREREQ_OPEN): New macro.
+ (gl_FUNC_OPEN): Invoke it.
+
+ Override freopen more carefully.
+ * lib/freopen.c (orig_freopen): New function.
+ (rpl_freopen): Use orig_freopen instead of freopen.
+ * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
+ (gl_FUNC_FREOPEN): Invoke it.
+
+ Override fopen more carefully.
+ * lib/fopen.c (orig_fopen): New function.
+ (rpl_fopen): Use orig_fopen instead of fopen.
+ * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
+ (gl_FUNC_FOPEN): Invoke it.
+ Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
+
+2008-09-28 Bruno Haible <bruno@clisp.org>
+
+ * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
+ SIGPIPE.
+
+2008-09-28 Bruno Haible <bruno@clisp.org>
+
+ * tests/test-sigaction.c (handler, main): Disable the check whether
+ SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
+ glibc systems with LinuxThreads.
+
+2008-09-28 Bruno Haible <bruno@clisp.org>
+
+ * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
+
+ * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
+ with AIX xlc.
+ * lib/fcntl.in.h (open): Likewise.
+ Reported by Rainer Tammer <tammer@tammer.net>.
+
+2008-09-28 Bruno Haible <bruno@clisp.org>
+
+ * modules/posix_spawnp-tests: New file.
+ * tests/test-posix_spawn.c: New file.
+ * tests/test-posix_spawn.in.sh: New file.
+
+ New module 'posix_spawnp'.
+ * modules/posix_spawnp: New file.
+ * lib/spawnp.c: New file, from GNU libc with modifications.
+ * doc/posix-functions/posix_spawnp.texi: Mention the new module.
+
+ New module 'posix_spawn'.
+ * modules/posix_spawn: New file.
+ * lib/spawn.c: New file, from GNU libc with modifications.
+ * doc/posix-functions/posix_spawn.texi: Mention the new module.
+
+ New module 'posix_spawnattr_destroy'.
+ * modules/posix_spawnattr_destroy: New file.
+ * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
+ * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
+ module.
+
+ New module 'posix_spawnattr_setsigmask'.
+ * modules/posix_spawnattr_setsigmask: New file.
+ * lib/spawnattr_setsigmask.c: New file, from GNU libc with
+ modifications.
+ * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
+ new module.
+
+ New module 'posix_spawnattr_getsigmask'.
+ * modules/posix_spawnattr_getsigmask: New file.
+ * lib/spawnattr_getsigmask.c: New file, from GNU libc with
+ modifications.
+ * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
+ new module.
+
+ New module 'posix_spawnattr_setsigdefault'.
+ * modules/posix_spawnattr_setsigdefault: New file.
+ * lib/spawnattr_setdefault.c: New file, from GNU libc with
+ modifications.
+ * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
+ new module.
+
+ New module 'posix_spawnattr_getsigdefault'.
+ * modules/posix_spawnattr_getsigdefault: New file.
+ * lib/spawnattr_getdefault.c: New file, from GNU libc with
+ modifications.
+ * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
+ new module.
+
+ New module 'posix_spawnattr_setschedpolicy'.
+ * modules/posix_spawnattr_setschedpolicy: New file.
+ * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
+ modifications.
+ * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
+ new module.
+
+ New module 'posix_spawnattr_getschedpolicy'.
+ * modules/posix_spawnattr_getschedpolicy: New file.
+ * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
+ modifications.
+ * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
+ new module.
+
+ New module 'posix_spawnattr_setschedparam'.
+ * modules/posix_spawnattr_setschedparam: New file.
+ * lib/spawnattr_setschedparam.c: New file, from GNU libc with
+ modifications.
+ * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
+ new module.
+
+ New module 'posix_spawnattr_getschedparam'.
+ * modules/posix_spawnattr_getschedparam: New file.
+ * lib/spawnattr_getschedparam.c: New file, from GNU libc with
+ modifications.
+ * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
+ new module.
+
+ New module 'posix_spawnattr_setpgroup'.
+ * modules/posix_spawnattr_setpgroup: New file.
+ * lib/spawnattr_setpgroup.c: New file, from GNU libc with
+ modifications.
+ * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
+ module.
+
+ New module 'posix_spawnattr_getpgroup'.
+ * modules/posix_spawnattr_getpgroup: New file.
+ * lib/spawnattr_getpgroup.c: New file, from GNU libc with
+ modifications.
+ * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
+ module.
+
+ New module 'posix_spawnattr_setflags'.
+ * modules/posix_spawnattr_setflags: New file.
+ * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
+ * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
+ module.
+
+ New module 'posix_spawnattr_getflags'.
+ * modules/posix_spawnattr_getflags: New file.
+ * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
+ * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
+ module.
+
+ New module 'posix_spawnattr_init'.
+ * modules/posix_spawnattr_init: New file.
+ * lib/spawnattr_init.c: New file, from GNU libc with modifications.
+ * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
+ module.
+
+ New module 'posix_spawn_file_actions_destroy'.
+ * modules/posix_spawn_file_actions_destroy: New file.
+ * lib/spawn_faction_destroy.c: New file, from GNU libc with
+ modifications.
+ * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
+ the new module.
+
+ New module 'posix_spawn_file_actions_addopen'.
+ * modules/posix_spawn_file_actions_addopen: New file.
+ * lib/spawn_faction_addopen.c: New file, from GNU libc with
+ modifications.
+ * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
+ the new module.
+
+ New module 'posix_spawn_file_actions_adddup2'.
+ * modules/posix_spawn_file_actions_adddup2: New file.
+ * lib/spawn_faction_adddup2.c: New file, from GNU libc with
+ modifications.
+ * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
+ the new module.
+
+ New module 'posix_spawn_file_actions_addclose'.
+ * modules/posix_spawn_file_actions_addclose: New file.
+ * lib/spawn_faction_addclose.c: New file, from GNU libc with
+ modifications.
+ * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
+ the new module.
+
+ New module 'posix_spawn_file_actions_init'.
+ * modules/posix_spawn_file_actions_init: New file.
+ * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
+ * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
+ new module.
+
+ New module 'posix_spawn-internal'.
+ * modules/posix_spawn-internal: New file.
+ * lib/spawn_int.h: New file, from GNU libc with modifications.
+ * lib/spawni.c: New file, from GNU libc with modifications.
+ * m4/posix_spawn.m4: New file.
+
+ New module 'spawn'.
+ * modules/spawn: New file.
+ * lib/spawn.in.h: New file, from GNU libc with modifications.
+ * m4/spawn_h.m4: New file.
+ * doc/posix-headers/spawn.texi: Mention the new module.
+
+2008-09-28 Bruno Haible <bruno@clisp.org>
+
+ * modules/sched-tests: New file.
+ * tests/test-sched.c: New file.
+
+ New module 'sched'.
+ * modules/sched: New file.
+ * lib/sched.in.h: New file.
+ * m4/sched_h.m4: New file.
+ * doc/posix-headers/sched.texi: Mention the new module.
+
+2008-09-27 Eric Blake <ebb9@byu.net>
+
+ Fix previous patch, and tweak references to $0.
+ * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
+ (func_version, func_gnulib_dir): Don't call this program
+ gnulib-tool.
+ (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
+ with using $0 in function.
+ * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
+ (func_fatal_error): Reuse the name the user invoked us with.
+
+2008-09-27 Bruno Haible <bruno@clisp.org>
+
+ * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
+ (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
+ (gl_ICONV_H): Not here.
+ * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
+ instead of assigning ICONV_H directly.
+
+ * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
+ * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
+ WCHAR_H directly.
+
+2008-09-27 Bruno Haible <bruno@clisp.org>
+
+ * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
+ * modules/arpa_inet (Depends-on): Add link-warning.
+ (Makefile.am): Insert the definition of GL_LINK-WARNING.
+ * modules/unistd (Makefile.am): Likewise.
+
+2008-09-26 Bruno Haible <bruno@clisp.org>
+
+ * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
+ variables.
+ (func_version): Essentially copied from gnulib-tool.
+ (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
+ func_readlink): Copied from gnulib-tool.
+
+2008-09-26 Bruno Haible <bruno@clisp.org>
+
+ * gnulib-tool (func_version): Change directory to $gnulib_dir before
+ invoking git-version-gen.
+
+2008-09-26 Bruno Haible <bruno@clisp.org>
+
+ * posix-modules: Update to directory names changed on 2008-01-19.
+ Remove commas in output before splitting into words. No more need to
+ avoid 'ftruncate' since 2007-02-19.
+
+2008-09-26 Bruno Haible <bruno@clisp.org>
+
+ * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
+
+2008-09-26 Bruno Haible <bruno@clisp.org>
+
+ * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
+ * modules/fwriteerror (Depends-on): Add errno.
+
+2008-09-26 Bruno Haible <bruno@clisp.org>
+
+ * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
+ * tests/test-vc-list-files-cvs.sh: Likewise.
+
+2008-09-26 Bruno Haible <bruno@clisp.org>
+
+ * doc/posix-headers/sys_resource.texi: Reorder items.
+
+2008-09-26 Jim Meyering <meyering@redhat.com>
+
+ fts: tweak inode comparison function
+ * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
+ inode numbers, as documented.
+
+ fts: sort dirent entries on inode number before traversing
+ This avoids a quadratic, seek-related performance penalty when
+ operating on a directory containing many entries (measurable at 10k;
+ 3.5 hours at 2 million entries with a cold cache) on certain types
+ of file systems, including ext3 and ext4, but not tmpfs.
+ * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
+ (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
+ (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
+ (fs_handles_readdir_ordered_dirents_efficiently): New function.
+ (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
+ (fts_build): Set the stat.st_ino member from D_INO.
+ If it is likely to be useful, sort dirent entries on inode number.
+
+ * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
+ and the struct statfs.f_type member.
+ * modules/fts (Depends-on): Add d-ino.
+
+2008-09-26 Bruno Haible <bruno@clisp.org>
+
+ * modules/sigpipe-die (Depends-on): Add sigpipe.
+
+ * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
+ putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
+ and GNULIB_STDIO_H_SIGPIPE are set.
+ * lib/stdio-write.c: New file.
+ * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
+ GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
+ GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
+ REPLACE_STDIO_WRITE_FUNCS.
+ (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
+ GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
+ GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
+ GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
+ * modules/stdio (Files): Add lib/stdio-write.c.
+ (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
+ GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
+ GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
+ GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
+ * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
+ REPLACE_FPRINTF_POSIX.
+ * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
+ REPLACE_PRINTF_POSIX.
+ * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
+ REPLACE_VFPRINTF_POSIX.
+ * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
+ REPLACE_VPRINTF_POSIX.
+ * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
+ SIGPIPE issue.
+ * doc/posix-functions/fputc.texi: Likewise.
+ * doc/posix-functions/fputs.texi: Likewise.
+ * doc/posix-functions/fwrite.texi: Likewise.
+ * doc/posix-functions/printf.texi: Likewise.
+ * doc/posix-functions/putc.texi: Likewise.
+ * doc/posix-functions/putchar.texi: Likewise.
+ * doc/posix-functions/puts.texi: Likewise.
+ * doc/posix-functions/vfprintf.texi: Likewise.
+ * doc/posix-functions/vprintf.texi: Likewise.
+
+ * modules/safe-write (Depends-on): Add write.
+
+ * modules/sigpipe-tests: New file.
+ * tests/test-sigpipe.c: New file.
+ * tests/test-sigpipe.sh: New file.
+
+ * modules/write: New file.
+ * lib/unistd.in.h: Include <sys/types.h>.
+ (write): New declaration.
+ * lib/write.c: New file.
+ * m4/write.m4: New file.
+ * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
+ GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
+ * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
+ GNULIB_WRITE, REPLACE_WRITE.
+ * doc/posix-functions/write.texi: Mention the write, sigpipe modules
+ and the SIGPIPE issue.
+
+ * lib/signal.in.h (SIGPIPE): Define to a replacement value.
+ (raise): New declaration.
+ * lib/sigprocmask.c (SIGPIPE_handler): New variable.
+ (ext_signal): New function.
+ (rpl_raise): New function.
+ * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
+ GNULIB_SIGNAL_H_SIGPIPE.
+ * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
+ * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
+
+ * modules/sigpipe: New file.
+ * m4/sigpipe.m4: New file.
+
+2008-09-25 Derek Price <derek@ximbiot.com>
+ Bruno Haible <bruno@clisp.org>
+
+ * gnulib-tool (func_import): Report all license incompatibilities, not
+ just the first one.
+
+2008-09-25 Bruno Haible <bruno@clisp.org>
+
+ * gnulib-tool (func_import): When computing the edits, consider not
+ only the Makefile.ams that exist but also those that will be generated.
+
+2008-09-25 Simon Josefsson <simon@josefsson.org>
+
+ * modules/sys_select-tests (Depends-on): Remove sys_select itself,
+ fixes gnulib-tool --test warning about duplicate dependency.
+
+2008-09-25 Bruno Haible <bruno@clisp.org>
+
+ * gnulib-tool: Don't ask the user to perform edits in the generated
+ Makefile.ams.
+ (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
+ apply to the Makefile.am being generated.
+ (func_emit_tests_Makefile_am): Execute edits that apply to the
+ Makefile.am being generated.
+ (func_import): Setup list of Makefile.am edits before emitting the
+ Makefile.ams, not at the end.
+ (func_create_testdir): Update.
+ Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
+
+2008-09-25 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
+
+ * gnulib-tool (func_import): Store the --tests-base option in the
+ comment in gnulib-cache.m4.
+
+2008-09-24 Paolo Bonzini <bonzini@gnu.org>
+
+ * NEWS: Document increased portability that sys_select now provides.
+
+ * lib/sys_select.in.h: Install select wrapper.
+ * lib/sys_socket.in.h: Use more descriptive name when there is no
+ select wrapper.
+ * lib/winsock-select.c: New.
+ * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
+ Require gl_HEADER_SYS_SOCKET.
+ * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
+ * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
+ * tests/test-sys_select.c: Add functional tests.
+
+2008-09-24 Eric Blake <ebb9@byu.net>
+
+ open, fopen: close fd leak in last patch
+ * lib/open.c (rpl_open): Close fd before returning error.
+ * lib/fopen.c (rpl_fopen): Close fd before returning error.
+ * doc/posix-functions/open.texi (open): Document that Irix also
+ has the bug.
+ * doc/posix-functions/fopen.texi (fopen): Likewise.
+ Reported by Paolo Bonzini.
+
+2008-09-24 Bruno Haible <bruno@clisp.org>
+
+ Ensure that a filename ending in a slash cannot be used to access a
+ non-directory.
+ * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
+ to check whether it's really a directory.
+ * lib/fopen.c: Include fcntl.h, unistd.h.
+ (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
+ and fdopen().
+ * modules/fopen (Depends-on): Add unistd.
+ * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
+ * tests/test-fopen.c (main): Likewise.
+ * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
+ * doc/posix-functions/fopen.texi: Likewise.
+ Reported by Eric Blake.
+
+2008-09-23 Eric Blake <ebb9@byu.net>
+
+ c-stack: avoid compiler optimizations when provoking overflow
+ * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
+ recursion harder to optimize, to ensure a stack overflow occurs.
+ * tests/test-c-stack.c (recurse): Likewise.
+ Borrowed from libsigsegv.
+
+ c-stack: work around Irix sigaltstack bug
+ * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
+ whether sigaltstack uses wrong end of stack_t (copied in part from
+ libsigsegv).
+ * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
+ Irix bug, without requiring an over-allocation.
+ * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
+ bug.
+
+ fopen: document mingw bug on directories
+ * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
+ not allowing a stream visiting a directory, even though reading
+ from such a stream is not portable.
+
+2008-09-23 Paolo Bonzini <bonzini@gnu.org>
+
+ * lib/poll.c: Rewrite.
+ * modules/poll: Depend on alloca.
+
+2008-09-23 Paolo Bonzini <bonzini@gnu.org>
+
+ * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
+ instead define prototypes for a full set of wrappers. Ensure
+ that Cygwin does not use the compatibility code, which is only
+ for MinGW.
+ * lib/winsock.c: New.
+ * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
+ * modules/sys_socket: Add lib/winsock.c.
+
+ * modules/poll-tests: Add errno and perror.
+ * tests/test-poll.c: Use ioctl, not ioctlsocket.
+
+2008-09-23 Paolo Bonzini <bonzini@gnu.org>
+
+ * tests/test-poll.c: Downgrade minimum needed Winsock version.
+
+2008-09-23 Bruno Haible <bruno@clisp.org>
+
+ * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
+ * doc/glibc-functions/*: Likewise.
+
+2008-09-23 Simon Josefsson <simon@josefsson.org>
+
+ * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
+ success.
+
+2008-09-22 Eric Blake <ebb9@byu.net>
+ Bruno Haible <bruno@clisp.org>
+
+ vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
+ * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
+ supply %A but mishandle pseudo-NaN.
+ Reported by Simon Josefsson.
+
+2008-09-21 Bruno Haible <bruno@clisp.org>
+
+ * tests/test-lock.c (main): Tweak skip message.
+ * tests/test-tls.c (main): Likewise.
+
+2008-09-21 Bruno Haible <bruno@clisp.org>
+
+ * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
+ whether 'struct sigaction' has sa_sigaction here...
+ (gl_PREREQ_SIG_HANDLER_H): ... not here.
+ (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
+
+2008-09-21 Bruno Haible <bruno@clisp.org>
+
+ * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
+ section.
+ (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
+ strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
+ the new section.
+ (Support for obsolete systems lacking POSIX:2001): New section.
+ (String handling <string.h>): Move strdup to the new section.
+ Suggested by Simon Josefsson and Paolo Bonzini.
+
+2008-09-21 Bruno Haible <bruno@clisp.org>
+
+ * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
+ exponents in %e and %g results on 'long double'. Needed for mingw's
+ improved *printf functions.
+ * tests/test-vasprintf-posix.c (test_function): Likewise.
+ * tests/test-snprintf-posix.h (test_function): Likewise.
+ * tests/test-sprintf-posix.h (test_function): Likewise.
+ Reported by Eric Blake.
+
+2008-09-21 Bruno Haible <bruno@clisp.org>
+
+ * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
+ * tests/test-sprintf-posix.h (test_function): Likewise.
+
+2008-09-21 Bruno Haible <bruno@clisp.org>
+
+ * modules/getpass (Depends-on): Add strdup-posix.
+
+ New module 'strdup-posix'.
+ * modules/strdup-posix: New file.
+ * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
+ * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
+ * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
+ REPLACE_STRDUP.
+ * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
+ * doc/posix-functions/strdup.texi: Mention module strdup-posix.
+ * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
+ strdup-posix.
+
+ * modules/strdup (Depends-on): Remove malloc-posix.
+
+2008-09-20 Bruno Haible <bruno@clisp.org>
+
+ * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
+ Wildenhues.
+
+2008-09-20 Bruno Haible <bruno@clisp.org>
+
+ Ensure that wint_t gets defined on IRIX 5.3.
+ * lib/wchar.in.h (wint_t): Define if not defined by the system.
+ * lib/wctype.in.h (wint_t): Likewise.
+ (__wctype_wint_t): Remove type.
+ (isw*): Use wint_t instead of __wctype_wint_t.
+ * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
+ * modules/wchar (Files): Add m4/wint_t.m4.
+ (Makefile.am): Substitute HAVE_WINT_T.
+ * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
+ * tests/test-wctype.c: Check that wint_t is defined.
+ * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
+ * doc/posix-headers/wctype.texi: Likewise.
+ Reported by Tom G. Christensen <tgc@jupiterrise.com>.
+
+2008-09-18 Bruno Haible <bruno@clisp.org>
+
+ * gnulib-tool (func_exit): Update comment.
+
+2008-09-18 Simon Josefsson <simon@josefsson.org>
+
+ * modules/getaddrinfo (Depends-on): Remove strdup, this module
+ assumes strdup exists and does not depend on strdup to return
+ ENOMEM on out of memory conditions.
+
+2008-09-18 Bruno Haible <bruno@clisp.org>
+
+ * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
+ NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
+ digits for the exponent.
+
+2008-09-18 Jim Meyering <meyering@redhat.com>
+ Bruno Haible <bruno@clisp.org>
+
+ * lib/vasnprintf.c (decimal_point_char): Define also if
+ NEED_PRINTF_INFINITE_LONG_DOUBLE.
+
+2008-09-16 Bruno Haible <bruno@clisp.org>
+ and Eric Blake <ebb9@byu.net>
+
+ vasnprintf: support Irix 5.3
+ * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
+ that mishandle long double infinity.
+ Reported by Tom G. Christensen.
+
+2008-09-16 Bruno Haible <bruno@clisp.org>
+
+ * doc/glibc-functions/scandir.texi: Mention the function is missing on
+ Solaris 9.
+ * doc/glibc-functions/alphasort.texi: Likewise.
+ Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
+
+2008-09-16 Jim Meyering <meyering@redhat.com>
+
+ posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
+ * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
+ a umask modification leak out of a subshell. Otherwise, the
+ opensolaris /bin/sh would be accepted and thus cause unwarranted
+ failures in the coreutils test suite.
+
+2008-09-16 Paolo Bonzini <bonzini@gnu.org>
+
+ * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
+ to succeed.
+
+2008-09-16 Jim Meyering <meyering@redhat.com>
+
+ avoid spurious test failure when library is built without ACL support
+ * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
+ * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
+ * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
+ * tests/test-copy-acl.sh: Likewise.
+
+2008-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
+
+ * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
+ based on character occurrence counts.
+
+2008-09-15 Eric Blake <ebb9@byu.net>
+
+ tests: avoid some compiler warnings
+ * tests/test-memchr.c (main): Pass NULL indirectly.
+ * tests/test-closein.c (main): Avoid unused variable.
+
+2008-09-15 Bruno Haible <bruno@clisp.org>
+
+ * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
+ are missing on OpenBSD 4.0 individually.
+ Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
+
+2008-09-15 Bruno Haible <bruno@clisp.org>
+
+ * doc/posix-headers/errno.texi: Mention the Cygwin problem.
+ * doc/posix-functions/strerror.texi: Mention also Cygwin.
+ * doc/posix-functions/perror.texi: Likewise.
+ * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
+ is missing.
+ Reported by Eric Blake.
+
+ * lib/errno.in.h: Use replacement values >= 2000.
+ Reported by Eric Blake.
+
+2008-09-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
+
+ * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
+ (EARLY_ABORT): Return true when the edit_count has grown too beyond the
+ limit.
+ (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
+ compareseq was aborted.
+
+2008-09-14 Bruno Haible <bruno@clisp.org>
+
+ * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
+ yvec_edit_count.
+ (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
+ (fstrcmp_bounded): Simplify result computation accordingly.
+
+2008-09-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
+
+ * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
+ (fstrcmp): Define in terms of fstrcmp_bounded.
+ * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
+ lower_bound argument.
+ Return quickly if the result is certainly < lower_bound.
+ * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
+
+2008-09-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
+
+ * lib/diffseq.h (EARLY_ABORT): New macro.
+ (compareseq): Change return type to bool. Return true when EARLY_ABORT
+ evaluates to true.
+
+2008-09-14 Bruno Haible <bruno@clisp.org>
+
+ * modules/perror-tests: New file.
+ * tests/test-perror.sh: New file.
+ * tests/test-perror.c: New file.
+
+ New module 'perror'.
+ * lib/stdio.in.h (perror): New declaration.
+ * lib/perror.c: New file.
+ * m4/perror.m4: New file.
+ * modules/perror: New file.
+ * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
+ * doc/posix-functions/perror.texi: Mention the perror module.
+ * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
+ REPLACE_PERROR.
+ * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
+ REPLACE_PERROR.
+
+2008-09-14 Bruno Haible <bruno@clisp.org>
+
+ * modules/stdio (Makefile.am): Reorder to match the order in
+ lib/stdio.in.h.
+ * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
+
+2008-09-13 Bruno Haible <bruno@clisp.org>
+
+ * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
+
+2008-09-13 Bruno Haible <bruno@clisp.org>
+
+ Extend strerror to cover the added errno values.
+ * lib/strerror.c: Include errno.h and winsock2.h if it exists.
+ (rpl_strerror): Provide error messages for the added errno values and
+ for the WSA* values.
+ * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
+ (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
+ strerror.
+ (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
+ * modules/strerror (Depends-on): Add errno.
+ * doc/posix-functions/strerror.texi: Document the change.
+ * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
+ and EOVERFLOW.
+
+2008-09-13 Bruno Haible <bruno@clisp.org>
+
+ * modules/EOVERFLOW: Remove file.
+ * m4/eoverflow.m4: Remove file.
+ * modules/EOVERFLOW-tests: Remove file.
+ * tests/test-EOVERFLOW.c: Remove file.
+ * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
+ * modules/ftell (Depends-on): Likewise.
+ * modules/getdelim (Depends-on): Likewise.
+ * modules/getugroups (Depends-on): Likewise.
+ * modules/poll (Depends-on): Likewise.
+ * modules/snprintf (Depends-on): Likewise.
+ * modules/sprintf-posix (Depends-on): Likewise.
+ * modules/vasnprintf (Depends-on): Likewise.
+ * modules/vasprintf (Depends-on): Likewise.
+ * modules/vfprintf-posix (Depends-on): Likewise.
+ * modules/vsnprintf (Depends-on): Likewise.
+ * modules/vsprintf-posix (Depends-on): Likewise.
+ * modules/xvasprintf (Depends-on): Likewise.
+ * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
+ * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
+ * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
+ * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
+ * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
+ * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
+ * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
+ * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
+ * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
+ * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
+ * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
+ * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
+ * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
+ * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
+ * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
+ * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
+ * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
+ * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
+ * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
+ * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
+ * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
+ * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
+ * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
+ * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
+ * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
+ * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
+ * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
+ * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
+ * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
+ * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
+ * MODULES.html.sh: Remove EOVERFLOW.
+ * NEWS: Mention the change.
+
+2008-09-13 Bruno Haible <bruno@clisp.org>
+
+ * modules/errno-tests: New file.
+ * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
+
+ * lib/errno.in.h: New file.
+ * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
+ * modules/errno: New file.
+ * doc/posix-headers/errno.texi: Update documentation.
+ * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
+
+2008-09-13 Bruno Haible <bruno@clisp.org>
+
+ * tests/test-poll.c: Use #if for native Windows, rather than testing
+ __MSVCRT__.
+
+2008-09-13 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
+ Bruno Haible <bruno@clisp.org>
+
+ * lib/glob.c: Don't include <pwd.h> on native Windows.
+ (WINDOWS32): New macro.
+ (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
+
+2008-09-13 Bruno Haible <bruno@clisp.org>
+
+ * lib/glthread/cond.h [USE_SOLARIS_THREADS]
+ (ETIMEDOUT): Remove macro.
+ (glthread_cond_timedwait_multithreaded): New declaration.
+ (glthread_cond_timedwait): Use it.
+ * lib/glthread/cond.c [USE_SOLARIS_THREADS]
+ (glthread_cond_timedwait_multithreaded): New function.
+
+2008-09-12 Paolo Bonzini <bonzini@gnu.org>
+
+ * modules/poll-tests: Do not check for io.h.
+ * tests/test-poll.c: Check for __MSVCRT__ instead.
+
+2008-09-12 Paolo Bonzini <bonzini@gnu.org>
+
+ * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
+ * modules/poll-tests: Add inet_pton, stdbool, sockets.
+ * tests/test-poll.c: Use them. Use _pipe on Windows.
+
+2008-09-12 Paolo Bonzini <bonzini@gnu.org>
+
+ * modules/poll-tests: New.
+ * tests/test-poll.c: New.
+
+2008-09-12 Eric Blake <ebb9@byu.net>
+
+ frexp: test for NetBSD failure on -0.0
+ * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
+ not all, bugs from NetBSD 3.0 have been fixed.
+ * doc/posix-functions/frexp.texi (frexp): Document bug.
+ Reported by Thomas Klausner.
+
+ signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
+ * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
+ literal -0.0.
+ Reported by Jonathan C. Patschke <jp@centtech.com>.
+
+2008-09-11 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
+
+ * lib/glthread/cond.h: Use dummy implementation also if
+ USE_WIN32_THREADS.
+
+2008-09-11 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
+
+ * modules/fnmatch-posix (License): Change to LGPLv2+.
+ * modules/fnmatch-gnu (License): Likewise.
+
+2008-09-11 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
+
+ * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
+
+2008-09-11 Jim Meyering <meyering@redhat.com>
+
+ * users.txt: Add gtk-vnc.
+
+2008-09-08 Simon Josefsson <simon@josefsson.org>
+
+ * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
+ rotate amounts.
+
+ * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
+ required for 16-bit and 8-bit rotates.
+ * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
+ rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
+ UINT8_MAX instead of hard-coded constants.
+ Suggested by Paul Eggert.
+
+2008-09-07 Bruno Haible <bruno@clisp.org>
+
+ * tests/test-striconveh.c (main): Check behaviour when converting from
+ UTF-7.
+
+ Make striconveh work better with stateful encodings.
+ * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
+ that iconv does not increment the inptr when returning -1/EINVAL.
+
+2008-09-07 Bruno Haible <bruno@clisp.org>
+
+ * build-aux/config.rpath: Update according to libtool-2.2.6.
+ * build-aux/config.libpath: Likewise.
+
+2008-09-06 Bruno Haible <bruno@clisp.org>
+
+ * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
+ * lib/freadptr.c (freadptr): Likewise.
+ * lib/freadseek.c (freadptrinc): Likewise.
+ Reported by Simon Josefsson.
+
+2008-09-06 Bruno Haible <bruno@clisp.org>
+
+ * modules/freadptr (License): Change to LGPLv2+.
+ * modules/freadseek (License): Likewise.
+ Suggested by Eric Blake.
+
+ * modules/memchr2 (License): Change to LGPLv2+.
+ Approved by Eric Blake.
+
+2008-09-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
+ Bruno Haible <bruno@clisp.org>
+
+ Make gnulib-tool work with native 'sed' on AIX.
+ * gnulib-tool (sed_noop): New variable.
+ (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
+ func_add_or_update, func_create_testdir): Use it to initialize sed
+ script variables.
+ Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
+
+2008-09-04 Albert Chin <bug-gnulib@mlists.thewrittenword.com>
+ Bruno Haible <bruno@clisp.org>
+
+ * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
+ also works after #include directives.
+
+2008-09-04 Ondřej Vašík <ovasik@redhat.com>
+
+ getdate.y: reject an out-of-range timezone value
+ * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
+ the range [-24...+24]. When specified with only one or two digits,
+ * tests/test-getdate.c: Tests for the fix.
+ * doc/getdate.texi: Document this change.
+
+2008-09-03 Bruno Haible <bruno@clisp.org>
+
+ * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
+
+2008-09-02 Simon Josefsson <simon@josefsson.org>
+
+ * lib/bitrotate.h (rotl64, rotr64): Add. Suggested by Bruce Korb
+ <bruce.korb@gmail.com> with ideas from Ben Pfaff
+ <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
+ Blake <ebb9@byu.net>.
+
+ * tests/test-bitrotate.c: Add more test vectors.
+
+2008-09-02 Eric Blake <ebb9@byu.net>
+
+ vasnprintf-posix: handle large precision via %.*d
+ * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
+ when handling it ourselves.
+ * tests/test-vasnprintf-posix.c (test_function): Add test.
+ * tests/test-snprintf-posix.h (test_function): Likewise.
+ * tests/test-sprintf-posix.h (test_function): Likewise.
+ * tests/test-vasprintf-posix.c (test_function): Likewise.
+ Reported by Alain Guibert.
+
+2008-09-01 Eric Blake <ebb9@byu.net>
+
+ c-stack: make configure-time check more robust
+ * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
+ successful sigaction call.
+ Reported by Tom G. Christensen.
+
+2008-09-01 Bruno Haible <bruno@clisp.org>
+
+ New module 'findprog-lgpl'.
+ * modules/findprog-lgpl: New file.
+ * lib/findprog-lgpl.c: New file.
+ * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
+ also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
+ to decide whether to use strdup or xstrdup, concatenated_filename or
+ xconcatenated_filename.
+
+2008-09-01 Bruno Haible <bruno@clisp.org>
+
+ Split module 'concat-filename' into 'concat-filename' (LGPL) and
+ 'xconcat-filename' (GPL).
+ * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
+ (License): Change to LGPLv2+.
+ * modules/xconcat-filename: New file.
+ * lib/concat-filename.h (concatenated_filename): Change specification.
+ (xconcatenated_filename): New declaration.
+ * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
+ (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
+ memory situations.
+ * lib/xconcat-filename.c: New file.
+ * NEWS: Mention the change.
+ * lib/findprog.c: Include concat-filename.h, not filename.h.
+ (find_in_path): Use xconcatenated_filename instead of
+ concatenated_filename.
+ * lib/javacomp.c: Include concat-filename.h, not filename.h.
+ (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
+ is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
+ is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
+ is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
+ instead of concatenated_filename.
+ * lib/javaexec.c: Include concat-filename.h, not filename.h.
+ (execute_java_class): Use xconcatenated_filename instead of
+ concatenated_filename.
+ * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
+ * modules/javacomp (Depends-on): Likewise.
+ * modules/javaexec (Depends-on): Likewise.
+
+2008-09-01 Bruno Haible <bruno@clisp.org>
+
+ Split module 'filename' into 'filename' and 'concat-filename'.
+ * modules/filename: Keep only lib/filename.h.
+ (License): Change to LGPLv2+.
+ * modules/concat-filename: New file, extracted from modules/filename.
+ * lib/filename.h (concatenated_filename): Remove declaration.
+ * lib/concat-filename.h: New file, extracted from lib/filename.h.
+ * lib/concat-filename.c: Include concat-filename.h.
+ * NEWS: Mention the change.
+
+2008-09-01 Simon Josefsson <simon@josefsson.org>
+
+ * lib/bitrotate.h (rotl8, rotr8): Add.
+
+ * modules/bitrotate (configure.ac): Need
+ AC_REQUIRE([AC_C_INLINE]).
+ (Description): Mention stdint.h. Reported by Bruno Haible
+ <bruno@clisp.org>.
+
+ * lib/bitrotate.h (rotr16, rotl16): Fix mask value. Reported by
+ Paolo Bonzini <bonzini@gnu.org>.
+
+2008-08-31 Bruno Haible <bruno@clisp.org>
+
+ Assume Solaris specific bi-arch conventions on Solaris systems.
+ * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
+ mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
+ * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
+ work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
+ like acl_libdirstem.
+ (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
+ acl_libdirstem.
+ * NEWS: Mention the change.
+ Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
+
+2008-08-31 Jim Meyering <meyering@redhat.com>
+
+ * lib/strftime.h: Add comments describing the two added arguments.
+
+ remove duplicate #include directives
+ * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
+ * lib/putenv.c: Remove duplicate #include <stdlib.h>.
+
+2008-08-31 Bruno Haible <bruno@clisp.org>
+
+ New module 'sigpipe-die'.
+ * modules/sigpipe-die: New file.
+ * lib/sigpipe-die.h: New file.
+ * lib/sigpipe-die.c: New file.
+ * MODULES.html.sh (Signal handling): Add sigpipe-die.
+
+2008-08-31 Bruno Haible <bruno@clisp.org>
+
+ Don't override previously installed signal handlers.
+ * lib/fatal-signal.c (saved_sigactions): New variable.
+ (uninstall_handlers): Reset the signal to the saved handler, not
+ to SIG_DFL (except when ignored).
+ (install_handlers): Save the previous handlers.
+
+2008-08-30 Bruno Haible <bruno@clisp.org>
+
+ * gnulib-tool (func_reset_sigpipe): New function.
+ (func_get_automake_snippet, func_modules_transitive_closure,
+ func_import): Invoke it before a join command that reads from stdin,
+ to avoid "echo: write error: Broken pipe" error messages on stderr.
+ Reported by Sam Steingold <sds@gnu.org>.
+
+2008-08-30 Bruno Haible <bruno@clisp.org>
+
+ * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
+ Code copied from m4/open.m4.
+ * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
+ access and the filename ends in a slash. Code copied from lib/open.c.
+ * doc/posix-functions/fopen.texi: Document bug with trailing slash.
+ * tests/test-fopen.c (main): Check against bug with trailing slash.
+
+2008-08-29 Bruno Haible <bruno@clisp.org>
+
+ Avoid some "gcc -pedantic" warnings.
+ * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
+ * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
+ * lib/dirent.in.h: Likewise.
+ * lib/fcntl.in.h: Likewise.
+ * lib/float.in.h: Likewise.
+ * lib/iconv.in.h: Likewise.
+ * lib/inttypes.in.h: Likewise.
+ * lib/locale.in.h: Likewise.
+ * lib/math.in.h: Likewise.
+ * lib/netinet_in.in.h: Likewise.
+ * lib/search.in.h: Likewise.
+ * lib/signal.in.h: Likewise.
+ * lib/stdarg.in.h: Likewise.
+ * lib/stdint.in.h: Likewise.
+ * lib/stdio.in.h: Likewise.
+ * lib/stdlib.in.h: Likewise.
+ * lib/string.in.h: Likewise.
+ * lib/strings.in.h: Likewise.
+ * lib/sys_select.in.h: Likewise.
+ * lib/sys_socket.in.h: Likewise.
+ * lib/sys_stat.in.h: Likewise.
+ * lib/sys_time.in.h: Likewise.
+ * lib/sysexits.in.h: Likewise.
+ * lib/time.in.h: Likewise.
+ * lib/unistd.in.h: Likewise.
+ * lib/wchar.in.h: Likewise.
+ * lib/wctype.in.h: Likewise.
+ * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
+ * modules/fchdir (Makefile.am): Likewise.
+ * modules/fcntl (Makefile.am): Likewise.
+ * modules/float (Makefile.am): Likewise.
+ * modules/iconv_open (Makefile.am): Likewise.
+ * modules/inttypes (Makefile.am): Likewise.
+ * modules/locale (Makefile.am): Likewise.
+ * modules/math (Makefile.am): Likewise.
+ * modules/netinet_in (Makefile.am): Likewise.
+ * modules/search (Makefile.am): Likewise.
+ * modules/signal (Makefile.am): Likewise.
+ * modules/stdarg (Makefile.am): Likewise.
+ * modules/stdint (Makefile.am): Likewise.
+ * modules/stdio (Makefile.am): Likewise.
+ * modules/stdlib (Makefile.am): Likewise.
+ * modules/string (Makefile.am): Likewise.
+ * modules/strings (Makefile.am): Likewise.
+ * modules/sys_select (Makefile.am): Likewise.
+ * modules/sys_socket (Makefile.am): Likewise.
+ * modules/sys_stat (Makefile.am): Likewise.
+ * modules/sys_time (Makefile.am): Likewise.
+ * modules/sysexits (Makefile.am): Likewise.
+ * modules/time (Makefile.am): Likewise.
+ * modules/unistd (Makefile.am): Likewise.
+ * modules/wchar (Makefile.am): Likewise.
+ * modules/wctype (Makefile.am): Likewise.
+ Reported by Reuben Thomas <rrt@sc3d.org>.
+
+2008-08-29 Bruno Haible <bruno@clisp.org>
+
+ * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
+ any more.
+
+2008-08-29 Simon Josefsson <simon@josefsson.org>
+
+ * MODULES.html.sh (Misc): Add bitrotate.
+
+ * modules/bitrotate: New file.
+
+ * lib/bitrotate.h: New file.
+
+ * modules/bitrotate-tests: New file.
+
+ * tests/test-bitrotate.c: New file.
+
+ * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
+ on the bitrotate module.
+
+ * lib/arctwo.c: Use new bitrotate module.
+
+2008-08-29 Jim Meyering <meyering@redhat.com>
+
+ bootstrap: merge changes from coreutils
+ * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
+ of copied files. Remove a kludge, now that this is fixed.
+ * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
+ * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
+ * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
+
+2008-08-29 Bruno Haible <bruno@clisp.org>
+
+ * MODULES.html.sh: Remove --cvs-urls option.
+
+2008-08-28 Jose E. Marchesi <jemarch@gnu.org> (tiny change)
+
+ maint.mk: adjust to file name change
+ * top/maint.mk: s/Makefile.cfg/cfg.mk/.
+
+2008-08-28 Jim Meyering <meyering@redhat.com>
+
+ * modules/getndelim2 (License): Relicense to LGPLv2+.
+ Approved by Richard Stallman for the version of 1995, and by
+ Paul Eggert, Bruno Haible, Eric Blake for their contributions.
+
+2008-08-27 Paolo Bonzini <bonzini@gnu.org>
+
+ * lib/getdelim.c (flockfile, funlockfile): Make all of them
+ dummy if one is not available. Do not touch them if
+ USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
+ (getc_maybe_unlocked): New.
+ * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
+
+2008-08-26 Eric Blake <ebb9@byu.net>
+
+ doc/INSTALL: resync from autoconf
+ * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
+ (INSTALL_PRELUDE): Delete; this is done more efficiently by
+ moving...
+ * install.texi [!autoconf]: ...here. Resync from autoconf.
+ * INSTALL: Regenerate.
+ * INSTALL.ISO: New file.
+ * INSTALL.UTF-8: Likewise.
+
+2008-08-26 Jim Meyering <meyering@redhat.com>
+
+ GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
+ * top/GNUmakefile (_is-dist-target, _is-install-target): Make
+ these definitions conditional, so that they may be overridden, too.
+
+2008-08-26 Bruno Haible <bruno@clisp.org>
+
+ Generate INSTALL file variants with prettier quotes.
+ * doc/Makefile (INSTALL_PRELUDE): New macro.
+ (INSTALL): Use it.
+ (INSTALL.ISO, INSTALL.UTF-8): New rules.
+
+2008-08-26 Bruno Haible <bruno@clisp.org>
+
+ Run makeinfo in an English locale.
+ * doc/Makefile (MAKEINFO): New variable.
+
+2008-08-26 Bruno Haible <bruno@clisp.org>
+
+ * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
+ Suggested by Eric Blake.
+
+2008-08-25 Bruno Haible <bruno@clisp.org>
+
+ * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
+
+2008-08-25 Eric Blake <ebb9@byu.net>
+
+ c-stack: test that stack overflow can be caught
+ * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
+ that platform allows handling stack overflow; at least OS/2 EMX
+ has sigaltstack, but crashes before transferring control to
+ handler on stack overflow.
+ * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
+ check for HAVE_STACK_OVERFLOW_HANDLING.
+ Reported by Elbert Pol.
+
+2008-08-25 Bruno Haible <bruno@clisp.org>
+
+ * doc/posix-functions/strftime.texi: Fix description of strftime
+ module.
+
+2008-08-24 Bruno Haible <bruno@clisp.org>
+
+ * tests/uniwidth/test-uc_width2.c: New file.
+ * tests/uniwidth/test-uc_width2.sh: New file.
+ * modules/uniwidth/width-tests (Files): Add the new files.
+ (TESTS): Add uniwidth/test-uc_width2.sh.
+ (TESTS_ENVIRONMENT): New variable.
+ (check_PROGRAMS): Add test-uc_width2.
+ (test_uc_width2_SOURCES): New variable.
+
+ Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
+ * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
+ not 0x00AB.
+ Reported by Alexander V. Lukyanov <lav@netis.ru>.
+
+2008-08-22 Eric Blake <ebb9@byu.net>
+
+ test-lock, test-tls: mention why a test is skipped
+ * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
+ skipped.
+ * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
+
+ count-one-bits: relax license
+ * modules/count-one-bits (License): Relicense to LGPLv2+.
+ Suggested by Ludovic Courtès, approved by Ben Pfaff.
+
+2008-08-22 Andreas Schwab <schwab@suse.de>
+
+ * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
+ Remove spurious space in assignment.
+
+2008-08-21 Simon Josefsson <simon@josefsson.org>
+
+ * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC. Reported by
+ Paul Eggert <eggert@CS.UCLA.EDU>.
+
+2008-08-20 Paolo Bonzini <bonzini@gnu.org>
+
+ * modules/gettext: Add m4/threadlib.m4.
+
+2008-08-19 Eric Blake <ebb9@byu.net>
+
+ test-c-stack: fix compilation failure on FreeBSD 5.0
+ * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
+ headers before <sys/resource.h>.
+ * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
+ the bug.
+ Reported by Nelson H. F. Beebe.
+
+ strverscmp: migrate from "strverscmp.h" to <string.h>
+ * modules/string (Makefile.am): Add new hooks.
+ * modules/strverscmp (Files): Remove strverscmp.h.
+ (Depends-on): Add string.
+ (configure.ac): Add indicator.
+ (Include): Mention new header.
+ * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
+ defaults.
+ * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
+ results.
+ * lib/strverscmp.h: Delete.
+ * lib/string.in.h (strverscmp): Provide declaration, when needed.
+ * tests/test-strverscmp.c (includes): Adjust client.
+ * lib/check-version.c (includes): Likewise.
+ * NEWS: Document the change.
+
+ strverscmp: add unit test
+ * modules/strverscmp-tests: New file.
+ * tests/test-strverscmp.c: Likewise.
+
+2008-08-19 Simon Josefsson <simon@josefsson.org>
+
+ * lib/gc-gnulib.c: Indentation cleanup. Add some comments
+ regarding Windows crypto stuff, from Mono.
+
+2008-08-19 Adam Strzelecki <ono@java.pl> (tiny change)
+
+ * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT. Try to use Intel CSP
+ if present, for intel RND. Return error on failures.
+
+2008-08-18 Ben Pfaff <blp@gnu.org>
+
+ gitlog-to-changelog: give better diagnostic for failed pipe-open
+ * build-aux/gitlog-to-changelog: Improve error message: suggest
+ that the version of Git may be too old.
+
+2008-08-18 Simon Josefsson <simon@josefsson.org>
+
+ * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity. Use
+ ISO 8601 format. Suggested by Greg Troxel <gdt@ir.bbn.com>.
+
+2008-08-18 Bruno Haible <bruno@clisp.org>
+
+ * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
+ pthread_in_use().
+
+2008-08-18 Bruno Haible <bruno@clisp.org>
+
+ * lib/glthread/threadlib.c: Include <pthread.h>.
+
+2008-08-18 Bruno Haible <bruno@clisp.org>
+
+ * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
+ glthread_recursive_lock_* macros.
+ * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
+ Fix syntax error.
+