* m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
[gnulib.git] / ChangeLog
index d982b09..5c9f922 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
+2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
+
+       * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
+       Vin Shelton.
+
+2007-06-11  Bruno Haible  <bruno@clisp.org>
+
+       * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
+       replacement string.
+       Reported by Eric Blake.
+
+2007-06-10  Bruno Haible  <bruno@clisp.org>
+
+       Prepare vasnprintf code for use with Unicode strings.
+       * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
+       (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
+       TYPE_U32_STRING.
+       (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
+       a_u32_string variants.
+       (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
+       * lib/printf-args.c: Don't include config.h and the specification
+       header if PRINTF_FETCHARGS is already defined.
+       (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
+       (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
+       TYPE_U16_STRING, TYPE_U32_STRING.
+       * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
+       u16_directive, u16_directives, u32_directive, u32_directives): New
+       types.
+       (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
+       New declarations.
+       * lib/printf-parse.c: Don't include config.h and the specification
+       header if PRINTF_PARSE is already defined. Eliminate the set of
+       parameters for WIDE_CHAR_VERSION; the user of this file must provide
+       them now. Include c-ctype.h.
+       (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
+       directive and CHAR_T_ONLY_ASCII.
+       * lib/vasnprintf.c: Don't include config.h and the specification header
+       if VASNPRINTF is already defined.
+       (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
+       (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
+       DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
+       type. Handle the case that TCHAR_T and FCHAR_T are not of the same
+       size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
+       add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
+       code accordingly.
+       (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
+       pad_ourselves also in this case, with the 'c' and 's' directives, and
+       with a different notion of "width".
+       * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
+
+2007-06-10  Bruno Haible  <bruno@clisp.org>
+
+       * modules/unistr/u32-mbsnlen: New file.
+       * lib/unistr/u32-mbsnlen.c: New file.
+
+       * modules/unistr/u16-mbsnlen: New file.
+       * lib/unistr/u16-mbsnlen.c: New file.
+
+       * modules/unistr/u8-mbsnlen: New file.
+       * lib/unistr/u8-mbsnlen.c: New file.
+
+       * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
+       declarations.
+
+2007-06-10  Bruno Haible  <bruno@clisp.org>
+
+       * lib/string_.h (mbsnlen): New declaration.
+       * lib/mbsnlen.c: New file.
+       * m4/mbsnlen.m4: New file.
+       * modules/mbsnlen: New file.
+       * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
+       * modules/string (string.h): Substitute GNULIB_MBSNLEN.
+       * MODULES.html.sh (Internationalization functions): Add mbsnlen.
+
+2007-06-10  Bruno Haible  <bruno@clisp.org>
+
+       * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
+
+2007-06-10  Bruno Haible  <bruno@clisp.org>
+
+       * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
+       * lib/mbuiter.h: Likewise.
+
+2007-06-10  Bruno Haible  <bruno@clisp.org>
+
+       * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
+       declaration.
+
+2007-06-10  Karl Berry  <karl@gnu.org>
+
+       * config/srclist.txt: remove gettext entries, Bruno prefers
+       to update individually.
+
+2007-06-10  Bruno Haible  <bruno@clisp.org>
+
+       * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
+       'maxlen'. Ensure only length + width bytes are allocated, not
+       length + 1 + width.
+
+2007-06-09  Bruno Haible  <bruno@clisp.org>
+
+       * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
+       (CHAR_T): Remove macro.
+       (VASNPRINTF): Update.
+
+2007-06-09  Bruno Haible  <bruno@clisp.org>
+
+       * MODULES.html.sh (Unicode string functions): Add the new modules.
+
+       * modules/uniconv/u32-conv-to-enc: New file.
+       * lib/uniconv/u32-conv-to-enc.c: New file.
+       * modules/uniconv/u32-conv-to-enc-tests: New file.
+       * tests/uniconv/test-u32-conv-to-enc.c: New file.
+
+       * modules/uniconv/u16-conv-to-enc: New file.
+       * lib/uniconv/u16-conv-to-enc.c: New file.
+       * lib/uniconv/u-conv-to-enc.h: New file.
+       * modules/uniconv/u16-conv-to-enc-tests: New file.
+       * tests/uniconv/test-u16-conv-to-enc.c: New file.
+
+       * modules/uniconv/u8-conv-to-enc: New file.
+       * lib/uniconv/u8-conv-to-enc.c: New file.
+       * modules/uniconv/u8-conv-to-enc-tests: New file.
+       * tests/uniconv/test-u8-conv-to-enc.c: New file.
+
+       * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
+       u32_conv_to_encoding): New declarations.
+
+2007-06-09  Bruno Haible  <bruno@clisp.org>
+
+       * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
+
+2007-06-09  Bruno Haible  <bruno@clisp.org>
+
+       Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
+       * modules/malloca: Renamed from modules/allocsa, updated.
+       * lib/malloca.h: Renamed from lib/allocsa.h, updated.
+       * lib/malloca.c: Renamed from lib/allocsa.c, updated.
+       * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
+       * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
+       * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
+       * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
+       * modules/xmalloca: Renamed from modules/xallocsa, updated.
+       * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
+       * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
+       * modules/c-strcasestr (Depends-on): Update.
+       * lib/c-strcasestr.c: Update.
+       * modules/c-strstr (Depends-on): Update.
+       * lib/c-strstr.c: Update.
+       * modules/canonicalize-lgpl (Depends-on): Update.
+       * lib/canonicalize-lgpl.c: Update.
+       * modules/clean-temp (Depends-on): Update.
+       * lib/clean-temp.c: Update.
+       * modules/csharpcomp (Depends-on): Update.
+       * lib/csharpcomp.c: Update.
+       * modules/csharpexec (Depends-on): Update.
+       * lib/csharpexec.c: Update.
+       * modules/javacomp (Depends-on): Update.
+       * lib/javacomp.c: Update.
+       * modules/javaexec (Depends-on): Update.
+       * lib/javaexec.c: Update.
+       * modules/mbscasestr (Depends-on): Update.
+       * lib/mbscasestr.c: Update.
+       * modules/mbsstr (Depends-on): Update.
+       * lib/mbsstr.c: Update.
+       * modules/setenv (Depends-on): Update.
+       * lib/setenv.c: Update.
+       * modules/strcasestr (Depends-on): Update.
+       * lib/strcasestr.c: Update.
+       * modules/striconveha (Depends-on): Update.
+       * lib/striconveha.c: Update.
+       * modules/relocatable-prog-wrapper (Files): Update.
+       * lib/relocwrapper.c: Update.
+       * build-aux/install-reloc: Update.
+       * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
+
+2007-06-08  Bruno Haible  <bruno@clisp.org>
+
+       Port to uClibc.
+       * lib/fbufmode.c (fbufmode): Add special code for uClibc.
+       * lib/fpurge.c (fpurge): Likewise.
+       * lib/freading.c (freading): Likewise.
+       * lib/fseeko.c (rpl_fseeko): Likewise.
+       * lib/fseterr.c (fseterr): Likewise.
+       * lib/fwriting.c (fwriting): Likewise.
+       * tests/test-fflush.c (main): Avoid a failure on uClibc.
+
+2007-06-08  Bruno Haible  <bruno@clisp.org>
+
+       * m4/intlmacosx.m4: New file, extracted from gettext.m4.
+       * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
+       * modules/gettext (Files): Add m4/intlmacosx.m4.
+
+2007-06-07  Bruno Haible  <bruno@clisp.org>
+
+       * modules/localename-tests: New file.
+       * tests/test-localename.c: New file.
+
+       New module 'localename'.
+       * lib/localename.h: New file.
+       * lib/localename.c: New file, from GNU gettext.
+       * m4/localename.m4: New file.
+       * modules/localename: New file.
+
+2007-06-07  Bruno Haible  <bruno@clisp.org>
+
+       Work around the lack of <wchar.h> on some builds of uClibc.
+       * doc/headers/wchar.texi: Update.
+       * lib/wchar_.h: Include <wchar.h> only if it exists.
+       * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
+       * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
+       (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
+       doesn't exist.
+       * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
+       * modules/mbfile (Depends-on): Add wchar.
+       * modules/mbiter (Depends-on): Likewise.
+       * modules/mbuiter (Depends-on): Likewise.
+       Reported by Simon Josefsson.
+
+2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
+
+       Work around problem reported by Steven M. Schweda in
+       <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
+       Tru64 5.1B with the Compaq compiler environment installed declares
+       an 'isblank' function but does not define it in the C library.
+       * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
+       * lib/regex_internal.h (isblank): Likewise.
+       * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
+       * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
+
+2007-06-05  Bruno Haible  <bruno@clisp.org>
+
+       Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
+       ia64.
+       * modules/printf-safe: New file.
+       * modules/fprintf-posix (Depends-on): Add printf-safe.
+       * modules/printf-posix (Depends-on): Likewise.
+       * modules/snprintf-posix (Depends-on): Likewise.
+       * modules/sprintf-posix (Depends-on): Likewise.
+       * modules/vasnprintf-posix (Depends-on): Likewise.
+       * modules/vasprintf-posix (Depends-on): Likewise.
+       * modules/vfprintf-posix (Depends-on): Likewise.
+       * modules/vprintf-posix (Depends-on): Likewise.
+       * modules/vsnprintf-posix (Depends-on): Likewise.
+       * modules/vsprintf-posix (Depends-on): Likewise.
+       * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
+       AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
+       non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
+       "no" on i386, x86_64, ia64.
+       * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
+       (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
+       on i386, x86_64, ia64.
+       * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
+       (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
+       on i386, x86_64, ia64.
+       * tests/test-vasnprintf-posix.c: Include float.h.
+       (LDBL80_WORDS): New macro.
+       (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
+       on i386, x86_64, ia64.
+       * tests/test-vasprintf-posix.c: Include float.h.
+       (LDBL80_WORDS): New macro.
+       (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
+       on i386, x86_64, ia64.
+       * tests/test-snprintf-posix.c: Include float.h.
+       * tests/test-sprintf-posix.c: Likewise.
+       * tests/test-vsnprintf-posix.c: Likewise.
+       * tests/test-vsprintf-posix.c: Likewise.
+
+2007-06-05  Bruno Haible  <bruno@clisp.org>
+
+       Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
+       * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
+       non-IEEE numbers on i386, x86_64, ia64.
+       (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
+       * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
+       * tests/test-isnanl.h: Include float.h.
+       (main): Check also non-IEEE numbers on i386, x86_64, ia64.
+
+2007-06-05  Bruno Haible  <bruno@clisp.org>
+
+       * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
+       also the %a / %A. Handle the %a / %A code before this extra handling.
+
+2007-06-05  Bruno Haible  <bruno@clisp.org>
+
+       * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
+       NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
+
+2007-06-05  Bruno Haible  <bruno@clisp.org>
+
+       * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
+       typo in variable name.
+
+2007-06-05  Eric Blake  <ebb9@byu.net>
+
+       * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
+       Reported by Simon Josefsson.
+
+2007-06-04  Bruno Haible  <bruno@clisp.org>
+
+       Avoid test failures on some PowerPC platforms.
+       * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
+       Define differently for PowerPC.
+       * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
+       Reported by Gary V. Vaughan <gary@gnu.org>.
+
+2007-06-02  Bruno Haible  <bruno@clisp.org>
+
+       Fix test-stdint failure on FreeBSD/ia64.
+       * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
+       PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
+       WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
+       * doc/headers/stdint.texi: Update.
+
+2007-06-01  Bruno Haible  <bruno@clisp.org>
+
+       * tests/test-binary-io.c (main): Pass a third argument to open().
+       Reported by Gary V. Vaughan <gary@gnu.org>.
+
+2007-06-01  Bruno Haible  <bruno@clisp.org>
+
+       * doc/functions/frexpl.texi: Update for mingw.
+
+2007-06-01  Bruno Haible  <bruno@clisp.org>
+
+       * tests/test-lseek.c (main): Disable test of errno for invalid third
+       argument.
+       * doc/functions/lseek.texi: Update.
+       Reported by Gary V. Vaughan <gary@gnu.org>.
+
+2007-05-28  Bruno Haible  <bruno@clisp.org>
+
+       * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
+
+2007-05-31  Eric Blake  <ebb9@byu.net>
+
+       * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
+       cross compiling.
+
+2007-05-30  Eric Blake  <ebb9@byu.net>
+       and Bruno Haible  <bruno@clisp.org>
+
+       Work around mingw test failures exposed by m4-1.4.9b.
+       * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
+       * tests/test-unistd.c: Disable uid_t and git_t tests for the
+       moment.
+
+2007-05-30  Bruno Haible  <bruno@clisp.org>
+
+       * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
+       assuming that they are closed. Needed on HP-UX 11.
+
+2007-05-29  Bruno Haible  <bruno@clisp.org>
+
+       Fix a problem with #include_next.
+       * lib/dirent_.h: Split the double-inclusion guard.
+       * lib/fcntl_.h: Likewise.
+       * lib/float_.h: Likewise.
+       * lib/iconv_.h: Likewise.
+       * lib/inttypes_.h: Likewise.
+       * lib/locale_.h: Likewise.
+       * lib/math_.h: Likewise.
+       * lib/netinet_in_.h: Likewise.
+       * lib/search_.h: Likewise.
+       * lib/signal_.h: Likewise.
+       * lib/stdint_.h: Likewise.
+       * lib/stdio_.h: Likewise.
+       * lib/stdlib_.h: Likewise.
+       * lib/string_.h: Likewise.
+       * lib/sys_select_.h: Likewise.
+       * lib/sys_socket_.h: Likewise.
+       * lib/sys_stat_.h: Likewise.
+       * lib/sys_time_.h: Likewise.
+       * lib/sysexits_.h: Likewise.
+       * lib/time_.h: Likewise.
+       * lib/unistd_.h: Likewise.
+       * lib/wchar_.h: Likewise.
+       * lib/wctype_.h: Likewise.
+
+2007-05-29  Bruno Haible  <bruno@clisp.org>
+
+       * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
+       for the moment.
+
+2007-05-29  Bruno Haible  <bruno@clisp.org>
+
+       * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
+       invocation.
+       Reported by Eric Blake.
+
+2007-05-29  Bruno Haible  <bruno@clisp.org>
+
+       * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
+       compiling case.
+
+2007-05-29  Eric Blake  <ebb9@byu.net>
+           Bruno Haible  <bruno@clisp.org>
+
+       * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
+       cross compiles.
+
+2007-05-28  Eric Blake  <ebb9@byu.net>
+
+       * modules/closein-tests (test_closein_LDADD): Support test on
+       cygwin with libtool.
+
+2007-05-28  Bruno Haible  <bruno@clisp.org>
+
+       * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
+       * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
+       * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
+       * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
+       * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
+       * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
+       * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
+       * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
+       * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
+
+2007-05-28  Eric Blake  <ebb9@byu.net>
+
+       Unconditionally include <config.h> in unit tests.
+       * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
+       * tests/test-allocsa.c, tests/test-arcfour.c,
+       tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
+       tests/test-array_list.c, tests/test-array_oset.c,
+       tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
+       test-avltreehash_list.c, test-base64.c, test-binary-io.c,
+       test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
+       test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
+       test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
+       test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
+       test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
+       test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
+       test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
+       test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
+       test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
+       test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
+       test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
+       test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
+       test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
+       test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
+       test-md5.c, test-memmem.c, test-printf-posix.c,
+       test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
+       test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
+       test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
+       test-strcasestr.c, test-striconv.c, test-striconveh.c,
+       test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
+       test-vasnprintf-posix2.c, test-vasnprintf.c,
+       test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
+       test-vfprintf-posix.c, test-vprintf-posix.c,
+       test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
+       test-xvasprintf.c: Likewise.
+
+2007-05-28  Bruno Haible  <bruno@clisp.org>
+
+       * gnulib-tool (func_import): Remember the --with-tests command-line
+       option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
+       Reported by Eric Blake.
+
+2007-05-28  Bruno Haible  <bruno@clisp.org>
+
+       * modules/ftell-tests: New file.
+       * tests/test-ftell.c: New file, based on tests/test-ftello.c.
+       * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
+
+       * lib/ftell.c: New file.
+       * modules/ftell: New file.
+       * m4/ftell.m4: New file.
+       * doc/functions/ftell.texi: Update.
+       * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
+       REPLACE_FTELL.
+       * lib/stdio_.h (rpl_ftell): New declaration.
+       * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
+       REPLACE_FTELL.
+
+2007-05-28  Eric Blake  <ebb9@byu.net>
+
+       * lib/allocsa.h (safe_alloca): Avoid compiler warning.
+
+2007-05-28  Bruno Haible  <bruno@clisp.org>
+
+       * modules/fseek-tests: New file.
+       * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
+       * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
+
+       * lib/fseek.c: New file.
+       * modules/fseek: New file.
+       * m4/fseek.m4: New file.
+       * doc/functions/fseek.texi: Update.
+       * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
+       REPLACE_FSEEK.
+       * lib/stdio_.h (rpl_fseek): New declaration.
+       * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
+       REPLACE_FSEEK.
+
+2007-05-28  Bruno Haible  <bruno@clisp.org>
+
+       * lib/stdio_.h (fflush): More comments.
+
+2007-05-28  Bruno Haible  <bruno@clisp.org>
+
+       * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
+       runtime test.
+
+2007-05-28  Eric Blake  <ebb9@byu.net>
+
+       Improve lseek module.
+       * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
+       * lib/unistd_.h (lseek): Scale back link warning message.
+       * tests/test-lseek.c: Beef up test.
+       * tests/test-lseek.sh: Exercise more facets of lseek.
+       Reported by Bruno Haible.
+
+2007-05-28  Bruno Haible  <bruno@clisp.org>
+
+       * tests/test-unistd.c: Test all the types that <unistd.h> is expected
+       to define.
+
+2007-05-27  Bruno Haible  <bruno@clisp.org>
+
+       * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
+
+2007-05-27  Bruno Haible  <bruno@clisp.org>
+
+       * modules/openmp: New file.
+       * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
+       Noah Misch.
+
+2007-05-26  Bruno Haible  <bruno@clisp.org>
+
+       * modules/chdir-long (Depends-on): Add fchdir.
+       * modules/chdir-safer (Depends-on): Likewise.
+       * modules/fts (Depends-on): Likewise.
+       * modules/fts-lgpl (Depends-on): Likewise.
+       * modules/openat (Depends-on): Likewise.
+       * modules/savewd (Depends-on): Likewise.
+
+2007-05-24  Eric Blake  <ebb9@byu.net>
+
+       Fix lseek on mingw.
+       * modules/lseek: New module.
+       * m4/lseek.m4: New file.
+       * lib/lseek.c: New file.
+       * modules/lseek-tests: New file.
+       * tests/test-lseek.c: New file.
+       * tests/test-lseek.sh: New file.
+       * MODULES.html.sh: Document lseek module.
+       * modules/fflush (Depends-on): Add lseek, fseeko.
+       * modules/fseeko (Depends-on): Likewise.
+       * modules/ftello (Depends-on): Likewise.
+       * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
+       broken.
+       * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
+       broken.
+       * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
+       * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
+       * lib/ftello.c (rpl_ftello): Likewise.
+       * tests/test-fseeko.c (main): Test this.
+       * tests/test-fseeko.sh: Likewise.
+       * tests/test-ftello.c (main): Likewise.
+       * tests/test-ftello.sh: Likewise.
+       * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
+       implies replacing fseek.
+       * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
+       HAVE_FTELLO.
+       * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
+       * modules/unistd (Makefile.am): Likewise.
+       * lib/unistd_.h (lseek): Declare a replacement.
+       * doc/functions/lseek.texi (lseek): Document this fix.
+       * doc/functions/fseek.texi (fseek): Likewise.
+       * doc/functions/ftell.texi (ftell): Likewise.
+
+2007-05-24  Bruno Haible  <bruno@clisp.org>
+
+       * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
+       in the printed representation of a NaN.
+       * 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.
+
+2007-05-23  Eric Blake  <ebb9@byu.net>
+
+       Fix fseeko/ftello on cygwin 1.5.24.
+       * doc/functions/fseeko.texi (fseeko): Document the fix.
+       * doc/functions/ftello.texi (ftello): Document the fix.
+       * doc/functions/stdin.texi (stdin): Document the cygwin bug.
+       * doc/functions/stdout.text (stdout): New file.
+       * doc/functions/stderr.text (stderr): New file.
+       * doc/gnulib.texi (Function Substitutes): Use new files.
+       * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
+       prior to 1.7.0.
+       * tests/test-ftello.c (main): Likewise for ftello.
+       * tests/test-fseeko.sh: New file.
+       * tests/test-ftello.sh: New file.
+       * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
+       with seekable stdin.
+       * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
+       * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
+       (gl_REPLACE_FSEEKO): New macro.
+       * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
+       * modules/fseeko (Files): Distribute fseeko.c.
+       * modules/ftello (Files): Distribute ftello.c.
+       * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
+       mode.
+       * lib/ftello.c (rpl_ftello): New file.
+       * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
+       fseeko, ftello.
+       (gl_STDIN_LARGE_OFFSET): New macro.
+       * modules/stdio (Makefile.am): Perform the replacement.
+       * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
+
+2007-05-23  Bruno Haible  <bruno@clisp.org>
+
+       * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
+       GNULIB_POSIXCHECK is defined.
+
+2007-05-21  Bruno Haible  <bruno@clisp.org>
+
+       * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
+       Check also the output for NaN arguments. When cross-compiling, guess
+       no on IRIX.
+       * lib/vasnprintf.c: Update comments.
+       * tests/test-vasnprintf-posix.c (strisnan): New function.
+       (test_function): Use it.
+       * tests/test-vasprintf-posix.c (strisnan): New function.
+       (test_function): Use it.
+       * tests/test-snprintf-posix.h (strisnan): New function.
+       (test_function): Use it.
+       * tests/test-sprintf-posix.h (strisnan): New function.
+       (test_function): Use it.
+       Reported by Eric Blake.
+
+2007-05-20  Bruno Haible  <bruno@clisp.org>
+
+       * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
+       numbers that fails on BeOS.
+       * doc/functions/frexpl.texi: Update.
+
+2007-05-20  Jim Meyering  <jim@meyering.net>
+
+       * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
+       forced upon us by glibc-2.6.
+
+2007-05-20  Bruno Haible  <bruno@clisp.org>
+
+       Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
+       * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
+       (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
+       * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
+       NEED_PRINTF_INFINITE.
+       (is_infinitel): New function.
+       (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
+       * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
+       gl_PREREQ_VASNPRINTF_INFINITE.
+       (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
+       * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
+       gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
+       gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
+       gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
+       gl_PREREQ_VASNPRINTF_INFINITE.
+       * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
+       * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
+       * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
+       * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
+       * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
+       * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
+       * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
+       * doc/functions/fprintf.texi: Update.
+       * doc/functions/printf.texi: Update.
+       * doc/functions/snprintf.texi: Update.
+       * doc/functions/sprintf.texi: Update.
+       * doc/functions/vfprintf.texi: Update.
+       * doc/functions/vprintf.texi: Update.
+       * doc/functions/vsnprintf.texi: Update.
+       * doc/functions/vsprintf.texi: Update.
+
+2007-05-20  Bruno Haible  <bruno@clisp.org>
+
+       * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
+       was not found in libc.
+       * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
+
+2007-05-20  Bruno Haible  <bruno@clisp.org>
+
+       * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
+       printed as "-nan" instead of "nan".
+       * tests/test-vasprintf-posix.c (test_function): Likewise.
+       * tests/test-snprintf-posix.h (test_function): Likewise.
+       * tests/test-sprintf-posix.h (test_function): Likewise.
+       Needed for HP-UX 11.
+
+2007-05-20  Jim Meyering  <jim@meyering.net>
+
+       Fix buggy test for the fchownat-deref bug.
+       * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
+       symlink required for the run-test.  Without it, this test would
+       always declare that fchownat doesn't work, and client code would
+       unnecessarily use the replacement function with fixed libc.
+       (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
+       Reported by Greg Schafer.
+
+2007-05-19  Bruno Haible  <bruno@clisp.org>
+
+       * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
+       (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
+       * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
+       Needed for IRIX 6.5 and Solaris 2.5.1.
+
+2007-05-19  Bruno Haible  <bruno@clisp.org>
+
+       * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
+       (test_function): Skip tests involving -0.0 on platforms where
+       -0.0 = 0.0.
+       * tests/test-vasprintf-posix.c (have_minus_zero): New function.
+       (test_function): Skip tests involving -0.0 on platforms where
+       -0.0 = 0.0.
+       * tests/test-snprintf-posix.h (have_minus_zero): New function.
+       (test_function): Skip tests involving -0.0 on platforms where
+       -0.0 = 0.0.
+       * tests/test-sprintf-posix.h (have_minus_zero): New function.
+       (test_function): Skip tests involving -0.0 on platforms where
+       -0.0 = 0.0.
+       * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
+       tests.
+       * tests/test-printf-posix.h (test_function): Likewise.
+       * tests/test-printf-posix.output: Remove all -0.0 related results.
+       Needed for IRIX 6.5.
+
+2007-05-19  Bruno Haible  <bruno@clisp.org>
+
+       * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
+       printed as "nan0x7fffffff" instead of "nan".
+       * tests/test-vasprintf-posix.c (test_function): Likewise.
+       * tests/test-snprintf-posix.h (test_function): Likewise.
+       * tests/test-sprintf-posix.h (test_function): Likewise.
+       * tests/test-fprintf-posix.h (NaN): Remove macro.
+       (test_function): Remove all NaN related tests.
+       * tests/test-printf-posix.h (NaN): Remove macro.
+       (test_function): Remove all NaN related tests.
+       * tests/test-printf-posix.output: Remove all NaN related results.
+       Needed for IRIX 6.5.
+
+2007-05-19  Bruno Haible  <bruno@clisp.org>
+
+       * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
+       * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
+
+2007-05-19  Bruno Haible  <bruno@clisp.org>
+
+       * lib/float_.h: New file.
+       * m4/float_h.m4: New file.
+       * modules/float: New file.
+       * modules/isnanl (Dependencies): Add float.
+       * modules/isnanl-nolibm (Dependencies): Likewise.
+       * modules/mathl (Dependencies): Likewise.
+       * modules/printf-frexpl (Dependencies): Likewise.
+       * modules/signbit (Dependencies): Likewise.
+       * modules/vasnprintf (Dependencies): Likewise.
+       * doc/headers/float.texi: Update.
+
+2007-05-19  Jim Meyering  <jim@meyering.net>
+
+       * lib/utimens.c (gl_futimens): Rename from futimens,
+       now that glibc-2.6 declares futimens.
+       * lib/utimens.h: Likewise.
+
+2007-05-19  Bruno Haible  <bruno@clisp.org>
+
+       Avoid test failures on mingw.
+       * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
+       * tests/test-printf-posix.sh: Likewise.
+       * tests/test-vfprintf-posix.sh: Likewise.
+       * tests/test-vprintf-posix.sh: Likewise.
+
+2007-05-19  Bruno Haible  <bruno@clisp.org>
+
+       Fix *printf result for NaN, Inf, -0.0 on mingw.
+       * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
+       * lib/vasnprintf.c: Include math.h and isnan.h.
+       (is_infinite_or_zero): New function.
+       (VASNPRINTF): Fix also the handling of infinite or zero 'double'
+       values in the %f, %F, %e, %E, %g, %G directives.
+       * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
+       * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
+       gl_PRINTF_INFINITE and test its result. Invoke
+       gl_PREREQ_VASNPRINTF_INFINITE.
+       * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
+       * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
+       * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
+       * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
+       * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
+       * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
+       * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
+       * doc/functions/fprintf.texi: Update.
+       * doc/functions/printf.texi: Update.
+       * doc/functions/snprintf.texi: Update.
+       * doc/functions/sprintf.texi: Update.
+       * doc/functions/vfprintf.texi: Update.
+       * doc/functions/vprintf.texi: Update.
+       * doc/functions/vsnprintf.texi: Update.
+       * doc/functions/vsprintf.texi: Update.
+
+2007-05-19  Bruno Haible  <bruno@clisp.org>
+
+       * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
+       (scale10_round_decimal_long_double): Inline scale10_round_long_double.
+       Instead of multiplying with 10^k, set extra_zeroes to k.
+       (scale10_round_long_double): Remove function.
+
+2007-05-18  Bruno Haible  <bruno@clisp.org>
+
+       * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
+       introduced on 2007-05-06.
+
+2007-05-18  Bruno Haible  <bruno@clisp.org>
+
+       * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
+       %g directives.
+       * tests/test-vasprintf-posix.c (test_function): Likewise.
+       * tests/test-snprintf-posix.h (test_function): Likewise.
+       * tests/test-sprintf-posix.h (test_function): Likewise.
+
+2007-05-18  Bruno Haible  <bruno@clisp.org>
+
+       * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
+       (strmatch): New function.
+       (test_function): Test the %f directive on numbers of various exponents.
+       * tests/test-vasprintf-posix.c (SIZEOF): New macro.
+       (strmatch): New function.
+       (test_function): Test the %f directive on numbers of various exponents.
+       * tests/test-snprintf-posix.h (strmatch): New function.
+       (test_function): Test the %f directive on numbers of various exponents.
+       * tests/test-sprintf-posix.h (strmatch): New function.
+       (test_function): Test the %f directive on numbers of various exponents.
+       * tests/test-snprintf-posix.c (SIZEOF): New macro.
+       * tests/test-sprintf-posix.c (SIZEOF): New macro.
+       * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
+       * tests/test-vsprintf-posix.c (SIZEOF): New macro.
+
+2007-05-18  Bruno Haible  <bruno@clisp.org>
+
+       Add support for 'long double' number output.
+       * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
+       * lib/vasnprintf.c: Include math.h and float+.h.
+       (mp_limb_t): New type.
+       (GMP_LIMB_BITS): New macro.
+       (mp_twolimb_t): New type.
+       (GMP_TWOLIMB_BITS): New macro.
+       (mpn_t): New type.
+       (multiply, divide, convert_to_decimal, decode_long_double,
+       scale10_round_long_double, scale10_round_decimal_long_double,
+       floorlog10l): New functions.
+       (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
+       for the %f, %F, %e, %E, %g, %G directives.
+       * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
+       * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
+       gl_PRINTF_LONG_DOUBLE and test its result. Invoke
+       gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
+       * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
+       * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
+       * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
+       * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
+       * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
+       * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
+       * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
+       * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
+       * modules/snprintf-posix (Depends-on): Likewise.
+       * modules/sprintf-posix (Depends-on): Likewise.
+       * modules/vasnprintf-posix (Depends-on): Likewise.
+       * modules/vasprintf-posix (Depends-on): Likewise.
+       * modules/vfprintf-posix (Depends-on): Likewise.
+       * modules/vsnprintf-posix (Depends-on): Likewise.
+       * modules/vsprintf-posix (Depends-on): Likewise.
+       * modules/vasnprintf (Files): Add lib/float+.h.
+       * doc/functions/fprintf.texi: Update.
+       * doc/functions/printf.texi: Update.
+       * doc/functions/snprintf.texi: Update.
+       * doc/functions/sprintf.texi: Update.
+       * doc/functions/vfprintf.texi: Update.
+       * doc/functions/vprintf.texi: Update.
+       * doc/functions/vsnprintf.texi: Update.
+       * doc/functions/vsprintf.texi: Update.
+
+2007-05-18  Bruno Haible  <bruno@clisp.org>
+
+       * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
+
+2007-05-18  Bruno Haible  <bruno@clisp.org>
+
+       * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
+       for printing 64-bit integers. Needed for mingw.
+
+2007-05-18  Bruno Haible  <bruno@clisp.org>
+
+       * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
+       gl_FUNC_FREXPL_WORKS.
+       * modules/printf-frexpl (Files): Add m4/frexpl.m4.
+
+2007-05-18  Bruno Haible  <bruno@clisp.org>
+
+       * modules/frexpl-nolibm-tests: New file.
+
+       * modules/frexpl-nolibm: New file.
+       * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
+
+2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
+
+       * lib/dirent_.h: Prefer #include_next <foo.h> to #include
+       @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
+       GCC 4.2, which otherwise issues a lot of warnings.
+       * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
+       * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
+       Likewise.
+       * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
+       * modules/iconv_open (iconv.h): Likewise.
+       * modules/locale (locale.h): Likewise.
+       * modules/netinet_in (netinet/in.h): Likewise.
+       * modules/sys_select (sys_select.h): Likewise.
+       * modules/sys_socket (sys/socket.h): Likewise.
+       * modules/sys_stat (sys/stat.h): Likewise.
+       * modules/sysexits (sysexits.h): Likewise.
+       * modules/unistd (unistd.h): Likewise.
+
+2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
+
+       * modules/closein-tests (Makefile.am): Distribute
+       `test-closein.sh'.
+
+2007-05-17  Bruno Haible  <bruno@clisp.org>
+
+       * tests/test-printf-posix.output: Renamed from
+       tests/test-fprintf-posix.out.
+       * modules/fprintf-posix-tests: Update.
+       * modules/printf-posix-tests: Update.
+       * modules/vfprintf-posix-tests: Update.
+       * modules/vprintf-posix-tests: Update.
+       * tests/test-fprintf-posix.sh: Update.
+       * tests/test-printf-posix.sh: Update.
+       * tests/test-vfprintf-posix.sh: Update.
+       * tests/test-vprintf-posix.sh: Update.
+       Reported by Ralf Wildenhues.
+
+2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
+
+       * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
+       @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
+       GCC 4.2, which otherwise issues a lot of warnings.
+       * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
+       * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
+       * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
+       * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
+       it should no longer be needed.
+       * lib/string_.h: Likewise.
+       * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
+       * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
+       * modules/inttypes (inttypes.h): Likewise.
+       * modules/math (math.h): Likewise.
+       * modules/search (search.h): Likewise.
+       * modules/signal (signal.h): Likewise.
+       * modules/stdint (stdint.h): Likewise.
+       * modules/stdio (stdio.h): Likewise.
+       * modules/stdlib (stdlib.h): Likewise.
+       * modules/string (string.h): Likewise.
+       * modules/sys_time (sys/time.h): Likewise.
+       * modules/time (time.h): Likewise.
+       * modules/wchar (wchar.h): Likewise.
+       * modules/wctype (wtype.h): Likewise.
+
+2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
+
+       * doc/gnulib-tool.texi (CVS Issues): Fix typo.
+
+2007-05-13  Bruno Haible  <bruno@clisp.org>
+
+       * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
+       * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
+       * strsep.m4 (gl_FUNC_STRSEP): Likewise.
+       * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
+       (gl_PREREQ_STRTOK_R): Don't require it here.
+
+2007-05-13  Bruno Haible  <bruno@clisp.org>
+
+       * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
+       when used in C++ mode.
+
+2007-05-12  Bruno Haible  <bruno@clisp.org>
+
+       * lib/linebuffer.h: Tweak doc.
+       * lib/linebuffer.c: Likewise.
+
+2007-05-12  James Youngman  <jay@gnu.org>
+
+       * lib/linebuffer.c (readlinebuffer_delim): New function,
+       like readlinebuffer, but use a caller-specified delimiter.
+       (readlinebuffer): Just call readlinebuffer_delim with '\n'
+       as the delimiter.
+       * lib/linebuffer.h (readlinebuffer_delim): Declare it.
+
+2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
+
+       * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
+       * modules/openat (Files): Remove openat-die.c.
+       (Depends-on): Add openat-die.
+       * modules/openat-die: New module.
+
+2007-05-06  Bruno Haible  <bruno@clisp.org>
+
+       * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
+       Update with info about Cygwin.
+       * doc/functions/fprintf.texi: Update.
+       * doc/functions/printf.texi: Update.
+       * doc/functions/snprintf.texi: Update.
+       * doc/functions/sprintf.texi: Update.
+       * doc/functions/vfprintf.texi: Update.
+       * doc/functions/vprintf.texi: Update.
+       * doc/functions/vsnprintf.texi: Update.
+       * doc/functions/vsprintf.texi: Update.
+       Reported by Eric Blake.
+
+2007-05-06  Bruno Haible  <bruno@clisp.org>
+
+       * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
+       padding ourselves for the floating-point directives.
+       * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
+       * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
+       * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
+       gl_PRINTF_FLAG_ZERO and test its result. Invoke
+       gl_PREREQ_VASNPRINTF_FLAG_ZERO.
+       * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
+       * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
+       * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
+       * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
+       * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
+       * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
+       * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
+       * tests/test-snprintf-posix.h (test_function): Also check the width
+       and some flags in the %f directive.
+       * tests/test-sprintf-posix.h (test_function): Likewise.
+       * tests/test-vasnprintf-posix.c (test_function): Likewise.
+       * tests/test-vasprintf-posix.c (test_function): Likewise.
+       * doc/functions/fprintf.texi: Update.
+       * doc/functions/printf.texi: Update.
+       * doc/functions/snprintf.texi: Update.
+       * doc/functions/sprintf.texi: Update.
+       * doc/functions/vfprintf.texi: Update.
+       * doc/functions/vprintf.texi: Update.
+       * doc/functions/vsnprintf.texi: Update.
+       * doc/functions/vsprintf.texi: Update.
+
+2007-05-06  Bruno Haible  <bruno@clisp.org>
+
+       * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
+       pass the ' flag character to sprintf or snprintf.
+       * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
+       * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
+       * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
+       gl_PRINTF_FLAG_GROUPING and test its result. Invoke
+       gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
+       * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
+       * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
+       * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
+       * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
+       * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
+       * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
+       * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
+       * tests/test-snprintf-posix.h (test_function): Also check the grouping
+       flag.
+       * tests/test-sprintf-posix.h (test_function): Likewise.
+       * tests/test-vasnprintf-posix.c (test_function): Likewise.
+       * tests/test-vasprintf-posix.c (test_function): Likewise.
+       * doc/functions/fprintf.texi: Update.
+       * doc/functions/printf.texi: Update.
+       * doc/functions/snprintf.texi: Update.
+       * doc/functions/sprintf.texi: Update.
+       * doc/functions/vfprintf.texi: Update.
+       * doc/functions/vprintf.texi: Update.
+       * doc/functions/vsnprintf.texi: Update.
+       * doc/functions/vsprintf.texi: Update.
+
+2007-05-01  Bruno Haible  <bruno@clisp.org>
+
+       * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
+
+2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
+
+       * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
+       comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
+
+2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
+
+       * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
+       readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
+       <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
+
+2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
+
+       * lib/argp-help.c (struct hol_entry): New member `ord'.
+       (HOL_ENTRY_PTRCMP): Use ord for comparison
+       (hol_sort): Initialize ord.
+
+2007-05-01  Bruno Haible  <bruno@clisp.org>
+
+       * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
+       Reported by Eric Blake.
+       * doc/gnulib.texi (Function Substitutes): Update.
+
+2007-05-01  Bruno Haible  <bruno@clisp.org>
+
+       * doc/functions.texi: Remove file, now redundant through
+       doc/functions/*.texi.
+
+2007-05-01  Bruno Haible  <bruno@clisp.org>
+
+       * modules/argp (Depends-on): Add sleep.
+
+2007-05-01  Bruno Haible  <bruno@clisp.org>
+
+       * modules/sleep-tests: New file.
+       * tests/test-sleep.c: New file.
+
+       * modules/sleep: New file.
+       * lib/sleep.c: New file.
+       * m4/sleep.m4: New file.
+       * lib/unistd_.h (sleep): New declaration.
+       * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
+       HAVE_SLEEP.
+       * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
+       * doc/functions/sleep.texi: Document the sleep module.
+
+2007-05-01  Bruno Haible  <bruno@clisp.org>
+
+       * lib/sigprocmask.h: Remove file.
+       * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
+       * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
+       * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
+       HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
+       * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
+       gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
+       (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
+       HAVE_SIGSET_T as a shell variable.
+       * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
+       HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
+       * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
+       (Depends-on): Add signal. Remove verify.
+       (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
+       (Include): Mention <signal.h> instead of sigprocmask.h.
+       * NEWS: Mention the change.
+       * lib/fatal-signal.c: Don't include sigprocmask.h.
+
+2007-05-01  Bruno Haible  <bruno@clisp.org>
+
+       * modules/signal: New file.
+       * lib/signal_.h: New file.
+       * m4/signal_h.m4: New file.
+
+2007-05-01  Bruno Haible  <bruno@clisp.org>
+
+       * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
+       * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
+       * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
+       HAVE_WCTYPE_CTMP_BUG into wctype.h.
+
+2007-05-01  Bruno Haible  <bruno@clisp.org>
+
+       * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
+       configure time.
+       * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
+       HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
+       * modules/sys_stat (Makefile.am): Substitute their values into
+       sys/stat.h.
+
+2007-05-01  Bruno Haible  <bruno@clisp.org>
+
+       * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
+       * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
+       * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
+
+2007-05-01  Bruno Haible  <bruno@clisp.org>
+
+       * doc/header/assert.texi: Undo last change: don't mention the gnulib
+       'assert' module here.
+
+2007-05-01  Bruno Haible  <bruno@clisp.org>
+
+       * doc/functions/*.texi: New files.
+       * doc/functions/google-ranking.txt: New file.
+       * doc/gnulib.texi (Function Substitutes): New chapter.
+       (ctime, inet_ntoa): Remove sections.
+       * doc/ctime.texi: Remove file.
+       * doc/inet_ntoa.texi: Remove file.
+       * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
+       dependencies.
+       (%.info): New rule, specifying a --reference-limit.
+
+2007-05-01  Bruno Haible  <bruno@clisp.org>
+
+       * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
+
+2007-05-01  Bruno Haible  <bruno@clisp.org>
+
+       * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
+       the portability of 'mkdir' to mingw systems.
+
+2007-05-01  Bruno Haible  <bruno@clisp.org>
+
+       * doc/headers/google-ranking.txt: New file.
+
+2007-04-30  Eric Blake  <ebb9@byu.net>
+
+       Prefer fseeko to fseek.
+       * modules/getpass (Depends-on): Add fseeko.
+       * lib/getpass.c (getpass): Use fseeko, not fseek.
+
+2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
+
+       * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
+       assumes the sorting is stable, while most qsort implementations
+       are not.  Use argument addresses to ensure they never compare as
+       equal.
+
+       * tests/test-argp-2.sh (usage-indent test): Fix output
+       (func_compare): Restore diff options
+       * tests/test-argp.c: Restore #include "progname.h"
+
+2007-04-29  Bruno Haible  <bruno@clisp.org>
+
+       * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
+       * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
+       gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
+       * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
+       * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
+       (configure.ac): Define CHECK_SNPRINTF_POSIX.
+       (TESTS, check_PROGRAMS): Add test-snprintf.
+       * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
+       (configure.ac): Define CHECK_VSNPRINTF_POSIX.
+       (TESTS, check_PROGRAMS): Add test-vsnprintf.
+       * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
+       assertions that fail on HP-UX, OSF/1, or IRIX.
+       * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
+
+2007-04-29  Bruno Haible  <bruno@clisp.org>
+
+       * MODULES.html.sh (posix_functions): Remove 'contents'.
+
+2007-04-29  Karl Berry  <karl@gnu.org>
+
+       * config/srclist.txt (gendocs_template_min): new entry.
+
+2007-04-29  Bruno Haible  <bruno@clisp.org>
+
+       Work around fpurge bug on BSD systems.
+       * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
+       * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
+       * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
+       fpurge to rpl_fpurge if the system already has this function.
+       * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
+       the case where the system already has this function. Correct invariants
+       on BSD systems.
+       * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
+       BSD systems.
+
+2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
+
+       * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
+       proposed by Sven Verdoolaege.
+
+       * tests/test-argp.c: Fix option ordering.  Test deeply clustered
+       options.
+       * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
+       (usage and help tests): Update
+
+2007-04-29  Bruno Haible  <bruno@clisp.org>
+
+       * tests/test-fflush.c (main): Use a file of size 17, not 10.
+       Print more information in case of failure. Disable a test on BeOS.
+
+2007-04-29  Bruno Haible  <bruno@clisp.org>
+
+       * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
+       This helps debugging on systems on which no gdb is available.
+
+2007-04-29  Bruno Haible  <bruno@clisp.org>
+
+       * lib/freading.h: Improve comments.
+       * lib/fwriting.h: Likewise.
+       * tests/test-freading.c (main): Don't check freading immediately after
+       repositioning. Needed for glibc.
+
+2007-04-29  Bruno Haible  <bruno@clisp.org>
+
+       * lib/freading.c (freading): Trivial simplification.
+
+2007-04-28  Bruno Haible  <bruno@clisp.org>
+
+       * tests/test-fwriting.c (main): Also test the interaction between
+       fflush and fwriting.
+       * modules/fwriting-tests (Depends-on): Add fflush.
+
+       * tests/test-freading.c (main): Also test the interaction between
+       fflush and freading.
+       * modules/freading-tests (Depends-on): Add fflush.
+
+2007-04-28  Bruno Haible  <bruno@clisp.org>
+
+       * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
+       fseeko and ftello.
+       Suggested by Eric Blake.
+
+2007-04-28  Jim Meyering  <jim@meyering.net>
+
+       Avoid false-negative in gl_STDINT_H's C99 conformance test.
+       * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
+       to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
+
+2007-04-27  Eric Blake  <ebb9@byu.net>
+
+       * doc/headers/assert.texi (assert.h): Document assert module use.
+
+2007-04-27  Bruno Haible  <bruno@clisp.org>
+
+       * doc/headers/*.texi: New files.
+       * doc/gnulib.texi (Header File Substitutes): New chapter.
+       * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
+       dependencies.
+       (standards.info ,standards.html, standards.dvi): Update dependencies.
+       (mostlyclean, clean): New targets.
+
+2007-04-27  Bruno Haible  <bruno@clisp.org>
+
+       * lib/sysexits_.h: Renamed from lib/sysexit_.h.
+       * modules/sysexits (Files, Makefile.am): Update.
+
+       * lib/sys_socket_.h: Renamed from lib/socket_.h.
+       * modules/sys_socket (Files, Makefile.am): Update.
+
+       * lib/sys_stat_.h: Renamed from lib/stat_.h.
+       * modules/sys_stat (Files, Makefile.am): Update.
+
+2007-04-27  Eric Blake  <ebb9@byu.net>
+
+       * lib/freading.h: Improve comments.
+       * lib/fwriting.h: Likewise.
+       * lib/fflush.c: Likewise.
+
+       Fix closein for mingw.
+       * modules/closein-tests: Add tests for closein.
+       * tests/test-closein.c: New file.
+       * tests/test-closein.sh: Likewise.
+       * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
+       * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
+
+2007-04-27  Bruno Haible  <bruno@clisp.org>
+
+       * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
+       version is < 6.
+       * lib/math_.h [__DECC]: Likewise.
+       * lib/stdio_.h [__DECC]: Likewise.
+       * lib/stdlib_.h [__DECC]: Likewise.
+       * lib/string_.h [__DECC]: Likewise.
+       * lib/time_.h [__DECC]: Likewise.
+       * lib/wchar_.h [__DECC]: Likewise.
+       * lib/wctype_.h [__DECC]: Likewise.
+
+2007-04-27  Bruno Haible  <bruno@clisp.org>
+
+       * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
+
+2007-04-27  Bruno Haible  <bruno@clisp.org>
+
+       * lib/fflush.c: Add comments.
+       * modules/fpurge-tests (Depends-on): Add fflush.
+       * modules/freadable-tests (Depends-on): Likewise.
+       * modules/fwritable-tests (Depends-on): Likewise.
+
+2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
+
+       * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
+       SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
+       Report by Bruno Haible <bruno@clisp.org>.
+
+2007-04-26  Eric Blake  <ebb9@byu.net>
+
+       Fix fflush on mingw.
+       * modules/fflush (Depends-on): Add freading.
+       * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
+       but unread data.
+
+2007-04-26  Eric Blake  <ebb9@byu.net>
+       and Bruno Haible  <bruno@clisp.org>
+
+       Implement freading and fwriting.
+       * lib/freading.c: New file.
+       * lib/freading.h: Likewise.
+       * m4/freading.m4: Likewise.
+       * modules/freading: Likewise.
+       * modules/freading-tests: Likewise.
+       * tests/test-freading.c: Likewise.
+       * lib/fwriting.c: New file.
+       * lib/fwriting.h: Likewise.
+       * m4/fwriting.m4: Likewise.
+       * modules/fwriting: Likewise.
+       * modules/fwriting-tests: Likewise.
+       * tests/test-fwriting.c: Likewise.
+       * MODULES.html.sh (File stream based Input/Output): Mention them.
+
+2007-04-26  Bruno Haible  <bruno@clisp.org>
+
+       * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
+       'long' when we assume it.
+       Suggested by Eric Blake.
+
+2007-04-26  Bruno Haible  <bruno@clisp.org>
+
+       Ensure fseeko, ftello are declared on glibc systems.
+       * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
+       * modules/fseeko (configure.ac-early): Likewise.
+       * modules/ftello (configure.ac-early): Likewise.
+       * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
+       AC_FUNC_FSEEKO for this.
+       * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
+       (gl_CHECK_FSEEKO): Remove macro.
+
+2007-04-26  Bruno Haible  <bruno@clisp.org>
+
+       * tests/test-fflush.c (main): Also check the ftell result after
+       fflush and fseek/fseeko.
+       * lib/fflush.c (rpl_fflush): For BSD implementations, update the
+       file descriptor position cache in the stream.
+       * lib/fseeko.c (rpl_fseeko): Likewise.
+
+2007-04-26  Bruno Haible  <bruno@clisp.org>
+
+       * modules/fflush-tests (Depends-on): Add fseeko.
+
+2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
+           Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
+
+       * lib/argz_.h: ensure error_t definition is obtained in same
+       mechanism system argz.h would have.
+       * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
+       argz facilities are known bad.  Err on the side of caution if
+       cross-compiling.
+
+2007-04-25  Eric Blake  <ebb9@byu.net>
+
+       * lib/fpurge.c (includes): Use stdlib.h for free.
+       * tests/test-fflush.c (main): Also test fflush-fseeko.
+
+2007-04-25  Bruno Haible  <bruno@clisp.org>
+
+       Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
+       * lib/fseeko.c: New file.
+       * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
+       (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
+       * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
+       gl_FUNC_FSEEKO.
+       (gl_FUNC_FSEEKO): Invoke it.
+       * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
+       gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
+       * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
+
+2007-04-25  Bruno Haible  <bruno@clisp.org>
+
+       * modules/fflush (Depends-on): Add ftello.
+
+2007-04-25  Bruno Haible  <bruno@clisp.org>
+
+       * modules/ftello-tests: New file.
+       * tests/test-ftello.c: New file.
+
+       * modules/ftello: New file.
+       * m4/ftello.m4: New file.
+       * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
+       HAVE_FTELLO.
+       * lib/stdio_.h (ftello): New declaration.
+       * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
+       HAVE_FTELLO.
+
+2007-04-25  Bruno Haible  <bruno@clisp.org>
+
+       * modules/fseeko-tests: New file.
+       * tests/test-fseeko.c: New file.
+
+       * modules/fseeko: New file.
+       * m4/fseeko.m4: New file.
+       * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
+       HAVE_FSEEKO.
+       * lib/stdio_.h (fseeko): New declaration.
+       * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
+       HAVE_FSEEKO.
+
+2007-04-25  Bruno Haible  <bruno@clisp.org>
+
+       * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
+
+2007-04-25  Bruno Haible  <bruno@clisp.org>
+
+       * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
+       * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
+       * tests/test-unistd.c: Likewise.
+       * tests/test-fcntl.c: Likewise.
+
+2007-04-23  Eric Blake  <ebb9@byu.net>
+
+       * lib/fflush.c: Fix missing include.
+       Reported by Bruno Haible.
+
+2007-04-23  Bruno Haible  <bruno@clisp.org>
+
+       * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
+       Reported by Eric Blake.
+
+2007-04-23  Bruno Haible  <bruno@clisp.org>
+
+       * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
+
+2007-04-23  Bruno Haible  <bruno@clisp.org>
+
+       * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
+
+2007-04-23  Bruno Haible  <bruno@clisp.org>
+
+       * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
+       Needed on HP-UX 11.
+
+2007-04-16  Eric Blake  <ebb9@byu.net>
+
+       Make fflush rely on fpurge.
+       * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
+       open coding all variants.
+       * modules/fflush (Depends-on): Add fpurge and unistd.
+       * modules/fflush-tests (Depends-on): Unistd is no longer extra.
+       * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
+
+       Fix --with-tests compilation on cygwin.
+       * modules/argmatch-tests (Makefile.am): List gnulib library first
+       in LDADD.
+       * modules/argp-tests (Makefile.am): Likewise.
+       * modules/array-list-tests (Makefile.am): Likewise.
+       * modules/array-oset-tests (Makefile.am): Likewise.
+       * modules/avltree-list-tests (Makefile.am): Likewise.
+       * modules/avltree-oset-tests (Makefile.am): Likewise.
+       * modules/avltreehash-list-tests (Makefile.am): Likewise.
+       * modules/carray-list-tests (Makefile.am): Likewise.
+       * modules/dirname-tests (Makefile.am): Likewise.
+       * modules/frexp-tests (Makefile.am): Likewise.
+       * modules/isnanl-tests (Makefile.am): Likewise.
+       * modules/linked-list-tests (Makefile.am): Likewise.
+       * modules/linkedhash-list-tests (Makefile.am): Likewise.
+       * modules/lock-tests (Makefile.am): Likewise.
+       * modules/rbtree-list-tests (Makefile.am): Likewise.
+       * modules/rbtree-oset-tests (Makefile.am): Likewise.
+       * modules/rbtreehash-list-tests (Makefile.am): Likewise.
+       * modules/tls-tests (Makefile.am): Likewise.
+       * modules/tsearch-tests (Makefile.am): Likewise.
+       * modules/xvasprintf-tests (Makefile.am): Likewise.
+
+       Fix fpurge for cygwin.
+       * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
+       value.
+       * modules/fpurge-tests (Depends-on): Clean up trash.
+
+2007-04-16  Simon Josefsson  <simon@josefsson.org>
+
+       * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
+
+       * m4/autobuild.m4: Re-indent.
+
+2007-04-13  Bruno Haible  <bruno@clisp.org>
+
+       * modules/fpurge-tests: New file.
+       * tests/test-fpurge.c: New file.
+
+       * modules/fpurge: New file.
+       * lib/fpurge.h: New file.
+       * lib/fpurge.c: New file.
+       * m4/fpurge.m4: New file.
+
+2007-04-13  Bruno Haible  <bruno@clisp.org>
+
+       * modules/fbufmode-tests: New file.
+       * tests/test-fbufmode.c: New file.
+
+       * modules/fbufmode: New file.
+       * lib/fbufmode.h: New file.
+       * lib/fbufmode.c: New file.
+       * m4/fbufmode.m4: New file.
+
+2007-04-13  Bruno Haible  <bruno@clisp.org>
+
+       * modules/fwritable-tests: New file.
+       * tests/test-fwritable.c: New file.
+
+       * modules/fwritable: New file.
+       * lib/fwritable.h: New file.
+       * lib/fwritable.c: New file.
+       * m4/fwritable.m4: New file.
+
+2007-04-13  Bruno Haible  <bruno@clisp.org>
+
+       * modules/freadable-tests: New file.
+       * tests/test-freadable.c: New file.
+
+       * modules/freadable: New file.
+       * lib/freadable.h: New file.
+       * lib/freadable.c: New file.
+       * m4/freadable.m4: New file.
+
+2007-04-13  Bruno Haible  <bruno@clisp.org>
+
+       * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
+       MOSTLYCLEANFILES.
+
+2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
+
+       * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
+       gzip bootstrap.conf to avoid dragging in i18n machinery.
+       (gnulib_tool_option): Use it.
+
+2007-04-13  Bruno Haible  <bruno@clisp.org>
+
+       * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
+       %F directives.
+       * tests/test-vasprintf-posix.c (test_function): Likewise.
+       * tests/test-snprintf-posix.h (test_function): Likewise.
+       * tests/test-sprintf-posix.h (test_function): Likewise.
+       * tests/test-fprintf-posix.h (test_function): Likewise.
+       * tests/test-printf-posix.h (test_function): Likewise.
+       * tests/test-fprintf-posix.out: Likewise.
+
+2007-04-13  Bruno Haible  <bruno@clisp.org>
+
+       * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
+       * modules/tls-tests (configure.ac): Likewise.
+       Reported by Arto C. Nirkko <anirkko@insel.ch>.
+
+2007-04-13  Bruno Haible  <bruno@clisp.org>
+
+       * lib/tls.c (glthread_tls_get): Fix return type.
+       Patch by Arto C. Nirkko <anirkko@insel.ch>.
+
+2007-04-12  Eric Blake  <ebb9@byu.net>
+
+       * modules/gettime (Depends-on): Remove gettime.
+       Reported by Dmitry V. Levin.
+
+2007-04-12  Bruno Haible  <bruno@clisp.org>
+
+       * modules/fflush (Include): Mention <stdio.h>.
+       * modules/strtoimax (Include): Mention <inttypes.h>.
+       * modules/strtoumax (Include): Likewise.
+
+2007-04-12  Eric Blake  <ebb9@byu.net>
+
+       * .cvsignore: New file.
+       * .gitignore: Likewise.
+
+2007-04-12  Bruno Haible  <bruno@clisp.org>
+
+       * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
+       not before, since $(LDADD) often contains libgnu.a.
+       * modules/striconv-tests (test_striconv_LDADD): Likewise.
+       * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
+       * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
+       Needed on Cygwin.
+
+2007-04-12  Eric Blake  <ebb9@byu.net>
+
+       Work around glibc's failure to flush stdin on fclose.
+       * lib/closein.c (close_stdin): Flush stdin before closing.
+
+       Work around glibc's failure to reset seekable stdin on exit.
+       * modules/closein: New module.
+       * lib/closein.c: New file.
+       * lib/closein.h: Likewise.
+       * m4/closein.m4: Likewise.
+       * MODULES.html.sh (File stream based Input/Output): Document it.
+
+2007-04-12  Simon Josefsson  <simon@josefsson.org>
+
+       * gnulib-tool: Rename generated 'autobuild' script to
+       'do-autobuild' in --create-megatestdir output.
+
+       * doc/gnulib.texi (Build robot for gnulib): Fix.
+
 2007-04-12  Simon Josefsson  <simon@josefsson.org>
 
        * modules/sysexits (Depends-on): Add absolute-header.
        * m4/locale_h.m4: New file.
 
 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
-            Bruno Haible  <bruno@clisp.org>
+           Bruno Haible  <bruno@clisp.org>
 
        * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
        be determined, test for availability of the copysignf, copysign,