+2009-01-19 Simon Josefsson <simon@josefsson.org>
+
+ * modules/getdate-tests (Depends-on): Add progname.
+ * tests/test-getdate.c: Use progname module, to avoid link errors
+ on non-glibc systems.
+
+2009-01-18 Simon Josefsson <simon@josefsson.org>
+
+ * modules/filenamecat-tests (Depends-on): Add progname.
+ * modules/fstrcmp-tests (Depends-on): Likewise.
+
+ * tests/test-filenamecat.c: Use progname module, to avoid link
+ errors on non-glibc systems.
+ * tests/test-fstrcmp.c: Likewise.
+
+2009-01-19 Daniel P. Berrange <berrange@redhat.com>
+
+ gettimeofday: avoid warning: nested extern declaration of 'localtime'
+ * lib/gettimeofday.c: Move extern declaration out of function.
+
+2009-01-18 Bruno Haible <bruno@clisp.org>
+
+ * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
+ * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
+ (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
+
+2009-01-18 Bruno Haible <bruno@clisp.org>
+
+ * lib/strftime.c (MEMPCPY): Remove unused macro.
+ * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
+
+2009-01-18 Martin Lambers <marlam@marlam.de>
+
+ New module 'link'.
+ * lib/unistd.in.h (link): New declaration.
+ * lib/link.c: New file.
+ * m4/link.m4: New file.
+ * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
+ HAVE_LINK.
+ * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
+ * modules/link: New file.
+ * doc/posix-functions/link.texi: Mention the new module.
+
+2009-01-18 Bruno Haible <bruno@clisp.org>
+
+ * tests/test-avltree_list.c (main): Call set_program_name.
+ * tests/test-avltree_oset.c (main): Likewise.
+ * tests/test-obstack-printf.c: Include progname.h.
+ (main): Call set_program_name.
+ * tests/test-quotearg.c: Include progname.h.
+ (main): Call set_program_name.
+ * tests/test-xmemdup0.c: Include progname.h.
+ (main): Call set_program_name.
+
+2009-01-18 Bruno Haible <bruno@clisp.org>
+
+ New module 'alphasort'.
+ * lib/dirent.in.h (alphasort): New declaration.
+ * lib/alphasort.c: New file, from glibc with modifications.
+ * m4/alphasort.m4: New file.
+ * modules/alphasort: New file.
+ * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
+ HAVE_ALPHASORT.
+ * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
+ HAVE_ALPHASORT.
+ * doc/posix-functions/alphasort.texi: Mention the new module and the
+ portability problems.
+
+2009-01-18 Bruno Haible <bruno@clisp.org>
+
+ New module 'scandir'.
+ * lib/dirent.in.h (scandir): New declaration.
+ * lib/scandir.c: New file, from glibc with modifications.
+ * m4/scandir.m4: New file.
+ * modules/scandir: New file.
+ * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
+ HAVE_SCANDIR.
+ * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
+ HAVE_SCANDIR.
+ * doc/posix-functions/scandir.texi: Mention the new module and the
+ portability problems.
+
+2009-01-17 Bruno Haible <bruno@clisp.org>
+
+ * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
+ Update documentation.
+ (func_remove_suffix): Escape all dots in the suffix. Update
+ documentation.
+ (func_filter_filelist): Update documentation.
+ Reported by Ralf Wildenhues.
+
+2009-01-17 Bruno Haible <bruno@clisp.org>
+
+ * modules/dprintf-posix-tests: New file.
+ * tests/test-dprintf-posix.sh: New file.
+ * tests/test-dprintf-posix.c: New file.
+
+ New modules 'dprintf', 'dprintf-posix'.
+ * lib/stdio.in.h (dprintf): New declaration.
+ * lib/dprintf.c: New file.
+ * m4/dprintf.m4: New file.
+ * m4/dprintf-posix.m4: New file.
+ * modules/dprintf: New file.
+ * modules/dprintf-posix: New file.
+ * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
+ HAVE_DPRINTF, REPLACE_DPRINTF.
+ * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
+ HAVE_DPRINTF, REPLACE_DPRINTF.
+ * doc/posix-functions/dprintf.texi: Mention the new modules.
+
+2009-01-17 Bruno Haible <bruno@clisp.org>
+
+ * modules/vdprintf-posix-tests: New file.
+ * tests/test-vdprintf-posix.sh: New file.
+ * tests/test-vdprintf-posix.c: New file.
+
+ New modules 'vdprintf', 'vdprintf-posix'.
+ * lib/stdio.in.h (vdprintf): New declaration.
+ * lib/vdprintf.c: New file.
+ * m4/vdprintf.m4: New file.
+ * m4/vdprintf-posix.m4: New file.
+ * modules/vdprintf: New file.
+ * modules/vdprintf-posix: New file.
+ * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
+ HAVE_VDPRINTF, REPLACE_VDPRINTF.
+ * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
+ HAVE_VDPRINTF, REPLACE_VDPRINTF.
+ * doc/posix-functions/vdprintf.texi: Mention the new modules.
+
+2009-01-17 Bruno Haible <bruno@clisp.org>
+
+ Fix replacement of fopen on mingw.
+ * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
+ mingw.
+
+2009-01-17 Bruno Haible <bruno@clisp.org>
+
+ Fix compilation error on HP-UX 11.00, present since 2008-09-24.
+ * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
+
+2009-01-17 Bruno Haible <bruno@clisp.org>
+
+ Avoid test-fflush2.sh failure on mingw.
+ * tests/test-fflush2.c: Include binary-io.h.
+ (main): Put standard input into binary mode.
+ * modules/fflush-tests (Depends-on): Add binary-io.
+
+2009-01-17 Bruno Haible <bruno@clisp.org>
+
+ * lib/wchar.in.h: In another particular situation, include only the
+ system's <wchar.h> file.
+ (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
+ Reported by Albert Chin-A-Young <china@thewrittenword.com>
+ and Thomas Guyot-Sionnest <dermoth@aei.ca>.
+
+2009-01-17 Bruno Haible <bruno@clisp.org>
+
+ Support for stripping executables in --enable-relocatable.
+ * build-aux/install-reloc: Expect one more argument, or an environment
+ variable RELOC_STRIP_PROG. If set, strip the destination program and
+ its wrapper.
+ * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
+ RELOC_STRIP_PROG.
+ * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
+ to set RELOCATABLE_STRIP.
+ * NEWS: Mention the new Makefile requirement.
+
+2009-01-17 Bruno Haible <bruno@clisp.org>
+
+ * build-aux/install-reloc: Remove debugging information left over by
+ C compiler on MacOS X.
+
+2009-01-17 Bruno Haible <bruno@clisp.org>
+
+ Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
+ * lib/progreloc.c (find_executable): Fix type of pointer passed to
+ _NSGetExecutablePath.
+
+2009-01-16 Jim Meyering <meyering@redhat.com>
+
+ strerror: avoid warnings about discarding "const"
+ * lib/strerror.c (rpl_strerror): Instead of returning a const
+ string from each and every "case", use a variable, and add a single
+ cast after the switch.
+
+2009-01-16 Albert Chin-A-Young <china@thewrittenword.com>
+
+ * lib/arpa_inet.in.h: Add extern "C" block for C++.
+
+2009-01-16 Bruno Haible <bruno@clisp.org>
+
+ * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
+ array initializer syntax that also works in C++ mode.
+ Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
+
+2009-01-16 Jim Meyering <meyering@redhat.com>
+
+ poll: suppress a warning
+ * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
+ to ignore "...unsigned expression < 0 is always false" warnings.
+
+2009-01-16 Daniel P. Berrange <berrange@redhat.com>
+
+ poll: remove declarations of unused variables
+ * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
+ sockbuf and optlen.
+
+2009-01-15 Bruno Haible <bruno@clisp.org>
+
+ Make fflush-after-ungetc POSIX compliant on BSD systems.
+ * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
+ (clear_ungetc_buffer): Implement also for other systems.
+ (rpl_fflush): On glibc systems, invoke
+ clear_ungetc_buffer_preserving_position. Otherwise, invoke
+ clear_ungetc_buffer after fetching the stream's position, not before.
+
+2009-01-15 Bruno Haible <bruno@clisp.org>
+
+ Make fflush-after-ungetc POSIX compliant on glibc systems.
+ * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
+ after ungetc.
+ * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
+ (rpl_fflush): On glibc systems, simply call the system's fflush
+ function after clearing the ungetc buffer.
+ * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
+ Instead, lseek only to the end of file, then use the system's fseeko
+ for the rest. On glibc systems, reset the EOF indicator bit.
+
+2009-01-15 Jim Meyering <meyering@redhat.com>
+
+ openmp.m4: revert quote-adding change, for portability to older autoconf
+ * m4/openmp.m4: Remove the quotes added on 2009-01-14.
+ This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
+ Simon Josefsson noticed the problem when using autoconf-2.61.
+
+2009-01-15 Bruno Haible <bruno@clisp.org>
+
+ * tests/test-fflush2.sh: Invoke test-fflush2 twice.
+ * tests/test-fflush2.c (ASSERT): Always fail.
+ (main): Add two tests for fflush() after ungetc(), taking into account
+ the Austin Group's clarification.
+ Suggested by Eric Blake.
+
+2009-01-15 Albert Chin-A-Young <china@thewrittenword.com>
+
+ mktime.m4: remove K&R-style function prototypes
+ * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
+ for the Sun C++ compiler.
+
2009-01-14 Bruno Haible <bruno@clisp.org>
* lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined