still avoid unused-parameter warnings, but do it cleanly
[gnulib.git] / ChangeLog
index 0feaefc..3d87cd3 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,668 @@
+2009-02-05  Jim Meyering  <meyering@redhat.com>
+
+       still avoid unused-parameter warnings, but do it cleanly
+       * lib/fsusage.c (UNUSED_PARAM): Remove definition.
+       (get_fs_usage): Cast to void instead.
+       * lib/mountlist.c (UNUSED_PARAM): Remove definition.
+       (dev_from_mount_options, read_file_system_list): Cast to void.
+       Prompted by Bruno Haible.
+
+2009-02-04  Jim Meyering  <meyering@redhat.com>
+
+       fsusage.c: correct copyright year
+       * lib/fsusage.c: Reflect year in which the change is pushed into
+
+       avoid misc. warnings
+       * lib/fsusage.c (UNUSED_PARAM): Define.
+       (get_fs_usage): Mark parameter "disk" as unused.
+       * lib/getugroups.c (getgrent): Use "void" in prototype.
+       * lib/mountlist.c: Mark unused parameters.
+       (read_file_system_list): Declare a local with "const".
+       * lib/nanosleep.c (getnow): Declare static.
+       * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
+
+       dirfd: set errno upon failure
+       * lib/dirfd.c: Include <errno.h>.
+       Set errno to ENOTSUP when returning -1.
+       * modules/dirfd (Depends-on): Add errno.
+       Suggested by John Kodis <kodis@comcast.net>.
+
+2009-02-01  Bruno Haible  <bruno@clisp.org>
+
+       Don't assume sizeof (long) >= sizeof (void *).
+       * lib/memcmp.c: Include stdint.h.
+       (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
+       srcp2 to 'const byte *'.
+       (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
+       types to uintptr_t.
+       (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
+       * modules/memcmp (Depends-on): Add stdint.
+       Reported by Ozkan Sezer <sezeroz@gmail.com>.
+
+2009-01-30  Eric Blake  <ebb9@byu.net>
+
+       fix more require-before-expand issues
+       * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
+       expand, AC_PROG_AWK.
+       * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
+
+2009-01-28  Eric Blake  <ebb9@byu.net>
+
+       version-etc: use consistent URL formatting
+       * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
+       Improve formatting.  Use fputs for string without %.
+
+2009-01-28  Jim Meyering  <meyering@redhat.com>
+
+       00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
+       * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
+       "underquoted definition of NAME" from autoconf-2.59.
+
+2009-01-28  Bruno Haible  <bruno@clisp.org>
+
+       * doc/gnulib.texi: Add "Obsolete modules" to index.
+
+2009-01-28  Jim Meyering  <meyering@redhat.com>
+
+       useless-if-before-free: recognize more variants
+       * build-aux/useless-if-before-free: Also recognize e.g.,
+       if (NULL != p) free (p);
+
+2009-01-27  Mark McLoughlin  <markmc@redhat.com>
+
+       test-getaddrinfo: skip (don't fail) this test when there's no network
+       * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
+       on the presumption that it means you lack network access.
+
+2009-01-26  Jim Meyering  <meyering@redhat.com>
+
+       fflush: avoid warnings on modern systems
+       * lib/fflush.c (rpl_fflush): Move declarations of locals,
+       pos and result, into scopes where they're used.
+
+2009-01-26  Eric Blake  <ebb9@byu.net>
+
+       Silence warning reintroduced by recent extensions patch.
+       * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
+       (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
+       autoconf.
+
+       Backport improved autoconf semantics of AC_DEFUN_ONCE.
+       * m4/00gnulib.m4: New file.
+       * gnulib-tool (func_get_filelist): Always use it.
+       * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
+       Reported by Bruno Haible, with suggestions from Paolo Bonzini.
+
+2009-01-25  Bruno Haible  <bruno@clisp.org>
+
+       Make test-quotearg work on MacOS X and AIX.
+       * tests/test-quotearg.sh: New file.
+       * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
+       * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
+       * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
+       include <libintl.h>.
+       (fake_locale): Remove variable.
+       (gettext, dgettext, dcgettext): Remove functions.
+       (main): Instead of setting a fake locale, set a real locale. Call
+       textdomain and bindtextdomain.
+       * modules/quotearg-tests (Files): Add the new files.
+       (Depends-on): Add gettext, setenv, unsetenv.
+       (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
+       (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
+       Augment TESTS_ENVIRONMENT.
+
+2009-01-25  Bruno Haible  <bruno@clisp.org>
+
+       * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
+       fr_FR.ISO8859-1 locale on MacOS X.
+       * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
+       ja_JP.eucJP locale on MacOS X.
+       * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
+       zh_CN.GB18030 locale on MacOS X.
+
+2009-01-25  Bruno Haible  <bruno@clisp.org>
+
+       Avoid link errors on MacOS X 10.3.
+       * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
+       * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
+
+2009-01-25  Bruno Haible  <bruno@clisp.org>
+
+       * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
+       * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
+       * modules/pipe (Files): Remove m4/posix_spawn.m4.
+       (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
+       posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
+       posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
+       posix_spawnattr_init, posix_spawnattr_setsigmask,
+       posix_spawnattr_setflags, posix_spawnattr_destroy.
+
+       * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
+       * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
+       * modules/execute (Files): Remove m4/posix_spawn.m4.
+       (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
+       posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
+       posix_spawnattr_init, posix_spawnattr_setsigmask,
+       posix_spawnattr_setflags, posix_spawnattr_destroy.
+
+2009-01-25  Bruno Haible  <bruno@clisp.org>
+
+       * lib/glthread/threadlib.c: Include <stdlib.h>.
+
+2009-01-25  Bruno Haible  <bruno@clisp.org>
+
+       * lib/glthread/threadlib.c (dummy): New declaration.
+
+2009-01-25  Bruno Haible  <bruno@clisp.org>
+
+       * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
+       multibyte characters also for the GB18030 encoding. Don't crash when
+       the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
+
+2009-01-25  Bruno Haible  <bruno@clisp.org>
+
+       Avoid redefining 'struct random_data' on OSF/1 5.1.
+       * lib/stdlib.in.h: Include <random.h> if it exists.
+       * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
+       HAVE_RANDOM_H. Include <random.h> when testing whether
+       'struct random_data' exists.
+       * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
+
+2009-01-25  Bruno Haible  <bruno@clisp.org>
+
+       Don't install charset.alias on MacOS X >= 10.3.
+       * lib/localcharset.c (DARWIN7): New macro.
+       (get_charset_aliases): Hardcode the result for Darwin7.
+       * modules/localcharset (install-exec-local): Don't install
+       charset.alias on MacOS X >= 10.3, if the file does not yet exist.
+
+2009-01-25  Bruno Haible  <bruno@clisp.org>
+
+       Don't install charset.alias on mingw and Cygwin.
+       * modules/localcharset (install-exec-local): Don't install
+       charset.alias on mingw and Cygwin, if the file does not yet exist.
+       The result for these platforms is hardcoded in localcharset.c.
+
+2009-01-25  Bruno Haible  <bruno@clisp.org>
+
+       Make it possible again to use AC_GNU_SOURCE together with gnulib.
+       * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
+       before requiring AC_USE_SYSTEM_EXTENSIONS.
+
+2009-01-25  Jim Meyering  <meyering@redhat.com>
+
+       c-strtod: avoid warnings
+       * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
+       "assignment discards qualifiers from pointer target type" warnings.
+
+2009-01-24  Bruno Haible  <bruno@clisp.org>
+
+       Add support for non-UTF-8 locales on MacOS X.
+       * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
+       canonical encodings. For Darwin 7 and newer, don't map traditional
+       encodings to UTF-8.
+       Reported by Vincent Lefevre <vincent@vinc17.org>
+       at <http://savannah.gnu.org/bugs/?25235>.
+
+2009-01-24  Bruno Haible  <bruno@clisp.org>
+
+       * doc/gnulib.texi (Obsolete modules): New section.
+       Reported by Mike Frysinger <vapier@gentoo.org>.
+
+2009-01-24  Bruno Haible  <bruno@clisp.org>
+
+       * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
+       (%.dvi): New rule.
+
+2009-01-24  Bruno Haible  <bruno@clisp.org>
+
+       * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
+       Reported by Eric Blake.
+
+2009-01-24  Bruno Haible  <bruno@clisp.org>
+
+       * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
+       set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
+       Reported by Gary V. Vaughan <gary@gnu.org>.
+
+2009-01-24  Bruno Haible  <bruno@clisp.org>
+
+       * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
+
+2009-01-23  Bruno Haible  <bruno@clisp.org>
+
+       Make c-strtod, c-strtold usable in libraries.
+       * lib/c-strtod.c: Include string.h instead of xalloc.h.
+       (C_STRTOD): Call strdup instead of xstrdup.
+       * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
+       * modules/c-strtold (Depends-on): Likewise.
+       * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
+       * NEWS: Mention the change.
+       Reported by Michael Gold <mgold@ncf.ca>.
+
+2009-01-23  Jim Meyering  <meyering@redhat.com>
+
+       c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
+       * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
+       ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
+
+2009-01-23  Simon Josefsson  <simon@josefsson.org>
+
+       * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
+       GNU CoreUtils.
+       * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
+       * modules/version-etc (Description): Update.
+
+2009-01-22  Bruno Haible  <bruno@clisp.org>
+
+       Cache the C locale object.
+       * lib/c-strtod.c (c_locale_cache): New variable.
+       (c_locale): New function.
+       (C_STRTOD): Use it, and don't call freelocale.
+       * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
+       Suggested by Paolo Bonzini.
+
+2009-01-21  Bruno Haible  <bruno@clisp.org>
+
+       * lib/getloadavg.c (getloadavg): Check c_strtod result against error
+       conditions other than overflow.
+
+2009-01-21  Bruno Haible  <bruno@clisp.org>
+
+       * lib/c-strtod.c: Include errno.h.
+       (C_STRTOD): Check against NULL return from newlocale. Preserve errno
+       value from STRTOD_L and STRTOD.
+
+2009-01-21  Bruno Haible  <bruno@clisp.org>
+       and Jim Meyering  <meyering@redhat.com>
+
+       nanosleep: skip configure test (fail it) for apple universal builds
+       * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
+       universal builds, assume that nanosleep does not work.
+       * modules/nanosleep (Depends-on): Add multiarch.
+
+       mktime: skip configure test (fail it) for apple universal builds
+       * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
+       universal builds, assume that mktime does not work.
+       * modules/mktime (Depends-on): Add multiarch.
+
+2009-01-21  Eric Blake  <ebb9@byu.net>
+
+       multiarch: avoid expand-before-require warning
+       * modules/multiarch (configure.ac): Require, rather than expand,
+       gl_MULTIARCH.
+       * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
+       (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
+       enforce that all clients require it.  Partial reversion of
+       2008-12-29 patch.
+
+       error: avoid expand-before-require warning
+       * modules/errno (configure.ac): Require, rather than expand,
+       gl_HEADER_ERRNO_H.
+       * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
+       (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
+       enforce that all clients require it.
+
+       gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
+       * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
+       obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
+       and rely solely on gl_USE_SYSTEM_EXTENSIONS.
+
+2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
+
+       Revert:
+       2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
+
+       regex: do not depend on obsolete modules.
+       * modules/regex: Remove memcmp and memmove.
+
+2009-01-20  Bruno Haible  <bruno@clisp.org>
+
+       Make the 'link' module link on Windows NT 4.
+       * lib/link.c (_WIN32_WINNT): Don't define.
+       (CreateHardLinkFuncType): New type.
+       (CreateHardLinkFunc, initialized): New variables.
+       (initialize): New function.
+       (link): Invoke CreateHardLink indirectly through the function pointer.
+
+2009-01-20  Bruno Haible  <bruno@clisp.org>
+
+       Fix compilation failure on mingw.
+       * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
+
+2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
+
+       * doc/c-strtod.texi: Mention a couple of restrictions.
+
+2009-01-20  Jim Meyering  <meyering@redhat.com>
+
+       gettimeofday: move more declarations out of functions
+       * lib/gettimeofday.c: Move extern declarations of tzset and
+       gmtime out of containing functions.  Prompted by Bruno Haible.
+
+2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
+
+       regex: do not depend on obsolete modules.
+       * modules/regex: Remove memcmp and memmove.
+
+2009-01-19  Bruno Haible  <bruno@clisp.org>
+
+       Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
+       * modules/uniconv/u16-conv-from-enc (configure.ac): Require
+       gl_BIGENDIAN, not AC_C_BIGENDIAN.
+       * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
+       * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
+
+2009-01-19  Bruno Haible  <bruno@clisp.org>
+
+       * tests/test-link.c: Include <errno.h>.
+       (main): Exit with code 77 when a hard link cannot be created due to
+       the file system.
+       * tests/test-link.sh: Skip test when a hard link cannot be created due
+       to the file system.
+       Suggested by Eric Blake.
+
+2009-01-19  Martin Lambers  <marlam@marlam.de>
+
+       * modules/link-tests: New file.
+       * tests/test-link.sh: New file.
+       * tests/test-link.c: New file.
+
+2009-01-19  Eric Blake  <ebb9@byu.net>
+
+       doc: mention another function added in cygwin 1.7.0
+       * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
+       Another new function in cygwin 1.7.
+
+2009-01-19  Bruno Haible  <bruno@clisp.org>
+
+       Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
+       * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
+       * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
+       gl_BIGENDIAN, not AC_C_BIGENDIAN.
+       * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
+       * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
+       * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
+       * m4/md4.m4 (gl_MD4): Likewise.
+       * m4/md5.m4 (gl_MD5): Likewise.
+       * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
+       * m4/sha1.m4 (gl_SHA1): Likewise.
+       * m4/sha256.m4 (gl_SHA256): Likewise.
+       * m4/sha512.m4 (gl_SHA512): Likewise.
+
+2009-01-19  Bruno Haible  <bruno@clisp.org>
+
+       * modules/uniname/uniname-tests (Depends-on): Add progname.
+       * tests/uniname/test-uninames.c: Include progname.h.
+       (main): Call set_program_name.
+
+       * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
+       * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
+       (main): Call set_program_name.
+
+       * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
+       * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
+       (main): Call set_program_name.
+
+       * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
+       * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
+       (main): Call set_program_name.
+
+       * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
+       * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
+       (main): Call set_program_name.
+
+       * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
+       * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
+       (main): Call set_program_name.
+
+       * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
+       * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
+       (main): Call set_program_name.
+
+       * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
+       * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
+       (main): Call set_program_name.
+
+       * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
+       * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
+       (main): Call set_program_name.
+
+2009-01-19  Eric Blake  <ebb9@byu.net>
+
+       test-unistd: test previous patch
+       * tests/test-unistd.c: Test *_FILENO macros.
+
+       unistd: guarantee STDIN_FILENO here, for OS/2 EMX
+       * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
+       Guarantee a definition.
+       * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
+       * modules/unistd-safer (Depends-on): Add dependency on unistd.
+       * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
+       * lib/dup-safer.c (STDERR_FILENO): Likewise.
+       * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
+       Likewise.
+       * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
+       * lib/fopen-safer.c (STDERR_FILENO): Likewise.
+       * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
+       Likewise.
+       * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
+       * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
+       (STDERR_FILENO): Likewise.
+       * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
+       (STDERR_FILENO): Likewise.
+       * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
+       (STDERR_FILENO): Likewise.
+       Reported by Elbert Pol.
+
+2009-01-19  Eric Blake  <ebb9@byu.net>
+
+       doc: mention more functions added in cygwin 1.7.0
+       * doc/posix-functions/abort.texi (abort): Update wording related
+       to cygwin.
+       * doc/posix-functions/daylight.texi (daylight): Likewise.
+       * doc/posix-functions/optarg.texi (optarg): Likewise.
+       * doc/posix-functions/optarg.texi (opterr): Likewise.
+       * doc/posix-functions/optarg.texi (optind): Likewise.
+       * doc/posix-functions/optarg.texi (optopt): Likewise.
+       * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
+       worked in 1.5.x, and was withdrawn in 1.7.
+       * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
+       * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
+       cygwin versions.
+       * doc/posix-functions/perror.texi (perror): Likewise.
+       * doc/posix-functions/printf.texi (printf): Likewise.
+       * doc/posix-functions/snprintf.texi (snprintf): Likewise.
+       * doc/posix-functions/sprintf.texi (sprintf): Likewise.
+       * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
+       * doc/posix-functions/vprintf.texi (vprintf): Likewise.
+       * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
+       * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
+       * doc/glibc-functions/obstack_printf.texi (obstack_printf):
+       Likewise.
+       * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
+       Likewise.
+       * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
+       this function.
+       * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
+       * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
+       Likewise.
+       * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
+       * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
+       * doc/posix-functions/confstr.texi (confstr): Likewise.
+       * doc/posix-functions/dprintf.texi (dprintf): Likewise.
+       * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
+       * doc/posix-functions/fgetws.texi (fgetws): Likewise.
+       * doc/posix-functions/fputwc.texi (fputwc): Likewise.
+       * doc/posix-functions/fputws.texi (fputws): Likewise.
+       * doc/posix-functions/fwide.texi (fwide): Likewise.
+       * doc/posix-functions/getwc.texi (getwc): Likewise.
+       * doc/posix-functions/getwchar.texi (getwchar): Likewise.
+       * doc/posix-functions/putwc.texi (putwc): Likewise.
+       * doc/posix-functions/putwchar.texi (putwchar): Likewise.
+       * doc/posix-functions/sigignore.texi (sigignore): Likewise.
+       * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
+       * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
+       * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
+       * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
+       * doc/posix-functions/wcstol.texi (wcstol): Likewise.
+       * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
+       * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
+       * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
+       * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
+
+2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
+
+       ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
+       * lib/ioctl.c: Include <sys/ioctl.h>.
+
+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