memmem: rearrange memmem and expand memmem-simple modules
[gnulib.git] / ChangeLog
index fc04230..4d83a57 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,115 @@
+2010-12-15  Pádraig Brady <P@draigBrady.com>
+
+       memmem, memmem-simple: reorganize and expand empty needle check
+       * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
+       functional checks to memmem-simple so that one has a fully functional
+       memmem by using just this module.
+       Restrict the performance only check to the memmem module.
+       Also expand the empty needle check to ensure the correct
+       pointer is returned, not just a non NULL pointer.
+       * doc/glibc-functions/memmem.texi: Rearrange the portability
+       documentation to correlate with the rearranged checks.
+       Clarify exactly how the memmem and memmem-simple modules
+       relate to each other.
+
+2010-12-15  Pádraig Brady <P@draigBrady.com>
+            Bruno Haible  <bruno@clisp.org>
+
+       Improve cross-compilation guesses for uClibc.
+       * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
+       that uClibc does not have the glibc bug.
+       * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
+       * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
+
+2010-12-14  Eric Blake  <eblake@redhat.com>
+
+       configmake: provide fallbacks for oldest supported autotools
+       * m4/configmake.m4: New file.
+       * modules/configmake (Files): Ship it.
+       (configure.ac): Use it to guarantee fallbacks.
+
+2010-12-13  Pádraig Brady <P@draigBrady.com>
+
+       read-file: Improve handling of large files
+       * lib/read-file.c (fread_file): Minimize realloc()s
+       for regular files, and better manage sizes around SIZE_MAX.
+
+2010-12-13  Eric Blake  <eblake@redhat.com>
+
+       cloexec, fcntl: relax license
+       * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
+       consent from all contributors.
+       * modules/fcntl (License): Likewise.
+
+2010-12-10  Bruno Haible  <bruno@clisp.org>
+
+       Tests for module 'pipe-posix'.
+       * modules/pipe-posix-tests: New file.
+       * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
+
+2010-12-10  Bruno Haible  <bruno@clisp.org>
+
+       pipe-posix: Make it work in C++ mode.
+       * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
+       (pipe): Use common idiom, not a macro definition.
+       * lib/pipe.c: New file.
+       * m4/pipe.m4: New file.
+       * modules/pipe-posix (Description): Enhance.
+       (Files): Add lib/pipe.c, m4/pipe.m4.
+       (configure.ac): Invoke gl_FUNC_PIPE.
+       * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
+       * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
+       * tests/test-unistd-c++.cc: Check the signature of pipe.
+
+2010-12-10  Bruno Haible  <bruno@clisp.org>
+
+       Rename module 'pipe' to 'spawn-pipe'.
+       * modules/spawn-pipe: New file, renamed from modules/pipe.
+       (Files, configure.ac, Makefile.am): Update.
+       (Include): Mention "spawn-pipe.h" instead of "pipe.h".
+       * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
+       * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
+       * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
+       "spawn-pipe.h" instead of "pipe.h".
+       * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
+       to gl_SPAWN_PIPE.
+       * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
+       (Files, Makefile.am): Update.
+       * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
+       Update.
+       * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
+       Include "spawn-pipe.h" instead of "pipe.h".
+       * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
+       * lib/javacomp.c: Likewise.
+       * lib/javaversion.c: Likewise.
+       * lib/pipe-filter-gi.c: Likewise.
+       * lib/pipe-filter-ii.c: Likewise.
+       * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
+       * modules/javacomp (Depends-on): Likewise.
+       * modules/javaversion (Depends-on): Likewise.
+       * modules/pipe-filter-gi (Depends-on): Likewise.
+       * modules/pipe-filter-ii (Depends-on): Likewise.
+       * MODULES.html.sh (Executing programs): Update.
+       * NEWS: Mention the change.
+
+2010-12-10  Eric Blake  <eblake@redhat.com>
+
+       pipe-posix: new module
+       * modules/pipe-posix: New file.
+       * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
+       (gl_UNISTD_H): Check for declaration.
+       * modules/unistd (Makefile.am): Substitute it.
+       * lib/unistd.in.h (pipe): Provide it for mingw.
+       * doc/posix-functions/pipe.texi (pipe): Update documentation.
+       * MODULES.html.sh (File descriptor based Input/Output): Likewise.
+
+2010-12-07  Bruno Haible  <bruno@clisp.org>
+
+       unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
+       * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
+       u8_strcmp_gnu.
+       * modules/unistr/u8-strcmp (configure.ac): Bump version number.
+
 2010-12-06  Bruno Haible  <bruno@clisp.org>
 
        Update internal documentation.