+2010-08-31 Eric Blake <eblake@redhat.com>
+ and Jim Meyering <meyering@redhat.com>
+
+ hash: factor, and guard against misbehaving hasher function
+ * lib/hash.c (safe_hasher): New function, to encapsulate the checking
+ of table->hasher's return value. Also protect against a hash value
+ so large that adding it to table->bucket results in a NULL pointer.
+ (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
+ Use it in place of open-coded check-and-abort.
+
+2010-08-30 Bruno Haible <bruno@clisp.org>
+
+ hash: silence spurious clang warning
+ * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
+ Reported by Eric Blake.
+
+2010-08-30 Eric Blake <eblake@redhat.com>
+
+ strstr, memmem, strcasestr: avoid leaked shell message
+ * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
+ FreeBSD.
+ * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
+ * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
+
+ tests: silence clang warning
+ * tests/test-malloca.c (do_allocation): Avoid dead store.
+
+2010-08-29 Bruno Haible <bruno@clisp.org>
+
+ gettext: Fix recent mistake.
+ * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
+
+2010-08-29 Bruno Haible <bruno@clisp.org>
+
+ selinux-h: Offer a --without-selinux option.
+ * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
+ --without-selinux was specified, skip all tests and define
+ HAVE_SELINUX_SELINUX_H to 0.
+ (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
+ set LIB_SELINUX to empty.
+ * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
+ gl_LIBSELINUX. If --without-selinux was specified, replace
+ selinux/context.h.
+ Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
+
+2010-08-29 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
+ Bruno Haible <bruno@clisp.org>
+
+ Make the module 'realloc-gnu' work again on AIX and OSF/1.
+ * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
+ of HAVE_REALLOC.
+ * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
+ GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
+ (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
+ * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
+
+2010-08-29 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
+ Bruno Haible <bruno@clisp.org>
+
+ Make the module 'calloc-gnu' work again on AIX and OSF/1.
+ * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
+ HAVE_CALLOC.
+ * lib/xmalloc.c: Update accordingly.
+ * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
+ GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
+ * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
+
+2010-08-29 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
+ Bruno Haible <bruno@clisp.org>
+
+ Make the module 'malloc-gnu' work again on AIX and OSF/1.
+ * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
+ HAVE_MALLOC.
+ * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
+ GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
+ * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
+
+2010-08-29 Bruno Haible <bruno@clisp.org>
+
+ Update modules list.
+ * MODULES.html.sh (Memory management functions <stdlib.h>): Add
+ malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
+ (String handling <string.h>): Add astrxfrm.
+ (File system functions): Add readlinkat.
+
+2010-08-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
+
+ Tests for module 'realloc-gnu'.
+ * modules/realloc-gnu-tests: New file.
+ * tests/test-realloc-gnu.c: New file.
+
+ Tests for module 'calloc-gnu'.
+ * modules/calloc-gnu-tests: New file.
+ * tests/test-calloc-gnu.c: New file.
+
+ Tests for module 'malloc-gnu'.
+ * modules/malloc-gnu-tests: New file.
+ * tests/test-malloc-gnu.c: New file.
+
+2010-08-28 Bruno Haible <bruno@clisp.org>
+
+ Rename module 'realloc' -> 'realloc-gnu'.
+ * modules/realloc-gnu: New file, copied from modules/realloc.
+ * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
+ obsolete.
+ * modules/mgetgroups (Depends-on): Update.
+ * doc/posix-functions/realloc.texi: Update.
+ * NEWS: Mention the change.
+
+ Rename module 'calloc' -> 'calloc-gnu'.
+ * modules/calloc-gnu: New file, copied from modules/calloc.
+ * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
+ obsolete.
+ * doc/posix-functions/calloc.texi: Update.
+ * NEWS: Mention the change.
+
+ Rename module 'malloc' -> 'malloc-gnu'.
+ * modules/malloc-gnu: New file, copied from modules/malloc.
+ * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
+ obsolete.
+ * modules/argp (Depends-on): Update.
+ * modules/regex (Depends-on): Update.
+ * doc/posix-functions/malloc.texi: Update.
+ * NEWS: Mention the change.
+
+2010-08-28 Eric Blake <eblake@redhat.com>
+
+ pread, pwrite: add missing dependency
+ * modules/pread (Depends-on): Add extensions.
+ * modules/pwrite (Depends-on): Likewise.
+
+2010-08-28 Bruno Haible <bruno@clisp.org>
+
+ unistr/u*-strchr: Fix tests dependencies.
+ * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
+ * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
+ Reported by Ian Beckwith <ianb@erislabs.net>.
+
+2010-08-28 Bruno Haible <bruno@clisp.org>
+
+ read-file: Don't occupy too much unused memory.
+ * lib/read-file.c (fread_file): Shrink the buffer at the end.
+
+2010-08-28 Giuseppe Scrivano <gscrivano@gnu.org>
+ Eric Blake <eblake@redhat.com>
+ Bruno Haible <bruno@clisp.org>
+
+ read-file: Avoid memory reallocations with regular files.
+ * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
+ (fread_file): With regular files, use the remaining length as the
+ initial buffer size. Check against overflow.
+ * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
+ sys_stat.
+
+2010-08-28 Bruno Haible <bruno@clisp.org>
+
+ ftello: Relax license.
+ * modules/ftello (License): Relax to LGPLv2+.
+ Reported by Eric Blake.
+
+2010-08-28 Bruno Haible <bruno@clisp.org>
+
+ Avoid relocwrapper link errors due to gnulib replacement functions.
+ * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
+ function.
+ Reported by Ben Pfaff <blp@cs.stanford.edu>.
+
+2010-08-28 Bruno Haible <bruno@clisp.org>
+
+ Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
+ * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
+ defined.
+ * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
+ Suggested by Eric Blake.
+
2010-08-28 Bruno Haible <bruno@clisp.org>
sys_socket, netdb: Ensure socklen_t gets defined.