1. 15 Jun, 2011 1 commit
  2. 25 Apr, 2011 1 commit
    • Bruno Haible's avatar
      strnlen: Avoid memchr related link error on old obsolete platforms. · e3a7a9fd
      Bruno Haible authored
      * modules/memchr-obsolete: New file.
      * m4/memchr-obsolete.m4: New file.
      * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
      gl_FUNC_MEMCHR_OBSOLETE is not also defined.
      * modules/memchr (Depends-on): Add memchr-obsolete.
      * modules/strnlen (Depends-on): Likewise.
      * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
      e3a7a9fd
  3. 06 Nov, 2009 1 commit
  4. 16 Jun, 2009 1 commit
  5. 13 Jun, 2009 1 commit
    • Eric Blake's avatar
      memchr: detect broken x86_64 and alpha implementations · 7cf183c3
      Eric Blake authored
      * modules/memchr-tests (Depends-on): Move mmap detection...
      * modules/memchr (Depends-on): ...here.
      (configure.ac): Set indicator.
      * lib/string.in.h (memchr): Declare replacement.
      * modules/string (Makefile.am): Trigger replacement.
      * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
      * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
      bugs.
      * doc/posix-functions/memchr.texi (memchr): Document the bug.
      * modules/getpagesize (License): Relax license.
      Signed-off-by: 's avatarEric Blake <ebb9@byu.net>
      7cf183c3
  6. 08 Jun, 2009 1 commit
  7. 02 Nov, 2008 1 commit
  8. 28 Apr, 2008 1 commit
    • Eric Blake's avatar
      Remove intprops dependency. · 8b8527c5
      Eric Blake authored
      * modules/memchr (Depends-on): Remove intprops.
      * modules/memrchr (Depends-on): Likewise.
      * modules/memchr2 (Depends-on): Likewise.
      * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
      * lib/memrchr.c (__memrchr): Likewise.
      * lib/memrchr2.c (memchr2): Likewise.
      Reported by Simon Josefsson.
      Signed-off-by: 's avatarEric Blake <ebb9@byu.net>
      8b8527c5
  9. 26 Apr, 2008 1 commit
  10. 20 Dec, 2007 1 commit
    • Eric Blake's avatar
      Fix memmem to avoid O(n^2) worst-case complexity. · fc068cf4
      Eric Blake authored
      * lib/memmem.c (knuth_morris_pratt): New function.
      (memmem): Use it if first few naive iterations fail.
      * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
      * modules/memcmp (License): Set to LGPLv2+, not LGPL.
      * modules/memchr (License): Likewise.
      * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
      malloca.
      * tests/test-memmem.c: Rewrite, borrowing ideas from
      test-mbsstr1.c; the old version wouldn't even compile!
      * modules/memmem-tests: New file.
      * lib/string.in.h (rpl_memmem): Add declaration.
      * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
      * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
      REPLACE_MEMMEM.
      Signed-off-by: 's avatarEric Blake <ebb9@byu.net>
      fc068cf4
  11. 13 Oct, 2006 1 commit
  12. 12 Oct, 2006 1 commit
  13. 22 Sep, 2004 1 commit
  14. 20 Jan, 2003 1 commit
  15. 13 Jan, 2003 1 commit
  16. 31 Dec, 2002 1 commit