1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-28 00:21:52 +03:00

Do not declare grantpt, ptsname, unlockpt in stdlib.h for XPG3 (bug 20094).

stdlib.h declares grantpt, ptsname, unlockpt for __USE_XOPEN.  This
patch corrects the condition to __USE_XOPEN_EXTENDED (these functions
are new in XPG4).

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

	[BZ #20094]
	* stdlib/stdlib.h (grantpt): Declare if [__USE_XOPEN_EXTENDED],
	not [__USE_XOPEN].
	(unlockpt): Likewise.
	(ptsname): Likewise.
	* conform/Makefile (test-xfail-XPG3/stdlib.h/conform): Remove
	variable.
This commit is contained in:
Joseph Myers
2016-05-17 15:51:55 +00:00
parent 9ff81856db
commit 0014680d6a
3 changed files with 9 additions and 2 deletions

View File

@ -876,7 +876,7 @@ extern void setkey (const char *__key) __THROW __nonnull ((1));
extern int posix_openpt (int __oflag) __wur;
#endif
#ifdef __USE_XOPEN
#ifdef __USE_XOPEN_EXTENDED
/* The next four functions all take a master pseudo-tty fd and
perform an operation on the associated slave: */