glibc/conform
Joseph Myers f014e87eff Fix fnmatch strnlen namespace (bug 18470).
fnmatch brings in references to strnlen, which isn't in all the
standards that contain fnmatch (not added until the 2008 edition of
POSIX), resulting in linknamespace test failures.  (This is contrary
to glibc conventions, rather than a standards conformance issue,
because of the str* reservation.)  This patch fixes this in the usual
way, using __strnlen instead of strnlen.

Tested for x86_64 and x86 (testsuite, and that installed stripped
shared libraries are unchanged by the patch).

	[BZ #18470]
	* posix/fnmatch.c (fnmatch) [_LIBC]: Call __strnlen instead of
	strnlen.
	* conform/Makefile (test-xfail-XPG3/fnmatch.h/linknamespace):
	Remove variable.
	(test-xfail-XPG4/fnmatch.h/linknamespace): Likewise.
	(test-xfail-POSIX/fnmatch.h/linknamespace): Likewise.
	(test-xfail-POSIX/glob.h/linknamespace): Likewise.
	(test-xfail-POSIX/wordexp.h/linknamespace): Likewise.
	(test-xfail-UNIX98/fnmatch.h/linknamespace): Likewise.
	(test-xfail-UNIX98/glob.h/linknamespace): Likewise.
	(test-xfail-UNIX98/wordexp.h/linknamespace): Likewise.
	(test-xfail-XOPEN2K/fnmatch.h/linknamespace): Likewise.
	(test-xfail-XOPEN2K/glob.h/linknamespace): Likewise.
	(test-xfail-XOPEN2K/wordexp.h/linknamespace): Likewise.
2015-06-03 13:58:58 +00:00
..
data struct stat is not posix conform 2015-05-26 22:27:24 +05:30
GlibcConform.pm conformtest: use proper _POSIX_C_SOURCE value for POSIX. 2015-05-20 23:14:53 +00:00
Makefile Fix fnmatch strnlen namespace (bug 18470). 2015-06-03 13:58:58 +00:00
check-header-lists.sh Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
conformtest.pl Add tests for namespace for static linking. 2014-11-12 22:45:25 +00:00
linknamespace.pl linknamespace: whitelist re_syntax_options. 2015-05-21 16:24:24 +00:00
list-header-symbols.pl Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00