glibc/conform
Joseph Myers 45dcd79f6e Fix swscanf vswscanf namespace (bug 18542).
swscanf (added in C90 Amendment 1, present in UNIX98) calls vswscanf
(added in C99, not in C90 Amendment 1 or UNIX98).  This patch fixes
this by using __vswscanf instead and making vswscanf into a weak
alias.

(I intend to add conform/ test support for C90 Amendment 1 - and
various other standard versions supported by glibc but not yet by
conform/ tests - at some point, once the results for currently tested
standards are cleaner.)

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

	[BZ #18542]
	* libio/iovswscanf.c (__vswscanf): Use libc_hidden_def.
	(vswscanf): Use ldbl_weak_alias instead of ldbl_strong_alias
	* include/wchar.h (__vswscanf): Declare.  Use libc_hidden_proto.
	* libio/swscanf.c (__swscanf): Call __vswscanf instead of
	vswscanf.
	* conform/Makefile (test-xfail-UNIX98/wchar.h/linknamespace):
	Remove variable.
2015-06-17 20:15:22 +00:00
..
data Fix netdb.h addrinfo namespace (bug 18529). 2015-06-12 22:35:07 +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
GlibcConform.pm conformtest: use proper _POSIX_C_SOURCE value for POSIX. 2015-05-20 23:14:53 +00:00
linknamespace.pl linknamespace: whitelist re_syntax_options. 2015-05-21 16:24:24 +00:00
list-header-symbols.pl Fix linknamespace expectations for in6addr_any, in6addr_loopback. 2015-06-14 14:32:07 +00:00
Makefile Fix swscanf vswscanf namespace (bug 18542). 2015-06-17 20:15:22 +00:00