glibc/conform
Joseph Myers eb1fae6a45 Fix getpass fflush_unlocked namespace (bug 18540).
The getpass function (XPG3 / XPG4 / UNIX98) calls fflush_unlocked (not
in any of those standards).  This patch fixes this by making
fflush_unlocked into a weak alias for __fflush_unlocked and calling
__fflush_unlocked from getpass.

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

	[BZ #18540]
	* libio/iofflush.c [!_IO_MTSAFE_IO] (__fflush_unlocked): Define as
	strong alias of _IO_fflush.  Use libc_hidden_def.
	* libio/iofflush_u.c (fflush_unlocked): Rename to
	__fflush_unlocked and define as weak alias of __fflush_unlocked.
	Use libc_hidden_weak.
	* include/stdio.h (__fflush_unlocked): Declare.  Use
	libc_hidden_proto.
	* misc/getpass.c (getpass): Call __fflush_unlocked instead of
	fflush_unlocked.
	* conform/Makefile (test-xfail-UNIX98/unistd.h/linknamespace):
	Remove variable.
2015-06-17 20:14:18 +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 getpass fflush_unlocked namespace (bug 18540). 2015-06-17 20:14:18 +00:00