memchr: detect broken x86_64 and alpha implementations
authorEric Blake <ebb9@byu.net>
Mon, 8 Jun 2009 12:29:17 +0000 (06:29 -0600)
committerEric Blake <ebb9@byu.net>
Sat, 13 Jun 2009 03:52:09 +0000 (21:52 -0600)
commit7cf183c33ef0c792b5c93dbb4ac5b7858ee03986
treee951cacd8fe8daa0896d2aea79b070a95b7369e3
parentf4b65cf4d3c0db3a822ace20e00bb8971234fbbf
memchr: detect broken x86_64 and alpha implementations

* 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: Eric Blake <ebb9@byu.net>
ChangeLog
doc/posix-functions/memchr.texi
lib/string.in.h
m4/memchr.m4
m4/string_h.m4
modules/getpagesize
modules/memchr
modules/memchr-tests
modules/string