Joseph Myers 4242d9683f Correct ttyslot header declaration conditions (bug 20051).
UNIX98 and XPG4 have ttyslot in <stdlib.h>.  glibc, however, has it in
<unistd.h>, for __USE_MISC || (__USE_XOPEN_EXTENDED && !__USE_UNIX98),
but no supported standard has it in <unistd.h>.

This patch adds a properly conditioned declaration to <stdlib.h> (only
enabled for the relevant standards, not for __USE_MISC or __USE_GNU).
The <unistd.h> declaration is restricted to __USE_MISC.  Some relevant
XFAILs are removed.

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

	[BZ #20051]
	* posix/unistd.h [__USE_XOPEN_EXTENDED && !__USE_UNIX98]
	(ttyslot): Do not declare.
	* stdlib/stdlib.h [__USE_XOPEN_EXTENDED && !__USE_XOPEN2K]
	(ttyslot): New prototype.
	* conform/Makefile (test-xfail-XPG4/unistd.h/conform): Remove
	variable.
	(test-xfail-UNIX98/stdlib.h/conform): Likewise.
2016-05-17 15:47:20 +00:00
..
2016-04-14 08:54:57 +02:00
2016-03-07 00:21:37 -03:00
2012-09-28 10:15:05 -06:00
2013-06-06 02:15:33 +02:00
2016-03-07 00:21:37 -03:00
2016-03-07 00:21:37 -03:00
2016-03-07 00:21:37 -03:00
2016-03-07 00:21:37 -03:00
2016-03-07 00:21:37 -03:00
2016-03-07 00:21:37 -03:00
2016-03-07 00:21:37 -03:00
2016-03-07 00:21:37 -03:00
2016-03-07 00:21:37 -03:00
2016-04-14 08:54:57 +02:00
2016-04-14 08:54:57 +02:00
2016-04-14 08:54:57 +02:00