glibc/conform
Joseph Myers a473381208 Only declare __sigpause in installed signal.h when necessary.
This patch makes the installed signal.h declare __sigpause only when
necessary (when a macro definition of sigpause makes use of
__sigpause), rather than unconditionally.  This fixes false positives
in the linknamespace tests by making it visible to those tests that no
use of ISO C functionality will actually bring in the definition of
__sigpause and so bring in the other symbols defined in the same
object.  There is no bug filed in Bugzilla because this is fixing
false positives rather than any user-visible bug.

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

	* signal/signal.h (__sigpause): Only declare if [__USE_XOPEN &&
	!__GNUC__].
	* include/signal.h (__sigpause): Move declaration above call to
	libc_hidden_proto.
	* conform/Makefile (test-xfail-ISO/signal.h/linknamespace): Remove
	variable.
	(test-xfail-ISO99/signal.h/linknamespace): Likewise.
	(test-xfail-ISO11/signal.h/linknamespace): Likewise.
2014-11-14 18:35:42 +00:00
..
data conformtest: clean up POSIX expections for sys/utsname.h, sys/wait.h. 2014-10-14 17:00:11 +00:00
GlibcConform.pm Add tests for namespace for static linking. 2014-11-12 22:45:25 +00:00
Makefile Only declare __sigpause in installed signal.h when necessary. 2014-11-14 18:35:42 +00:00
check-header-lists.sh conformtest: split up running of tests from makefile. 2014-03-07 03:23:34 +00:00
conformtest.pl Add tests for namespace for static linking. 2014-11-12 22:45:25 +00:00
linknamespace.pl Add tests for namespace for static linking. 2014-11-12 22:45:25 +00:00
list-header-symbols.pl Add tests for namespace for static linking. 2014-11-12 22:45:25 +00:00