mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-29 11:41:21 +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:
@ -1,5 +1,13 @@
|
|||||||
2016-05-17 Joseph Myers <joseph@codesourcery.com>
|
2016-05-17 Joseph Myers <joseph@codesourcery.com>
|
||||||
|
|
||||||
|
[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.
|
||||||
|
|
||||||
[BZ #20076]
|
[BZ #20076]
|
||||||
* io/sys/stat.h (S_IFSOCK): Define for [__USE_XOPEN_EXTENDED]
|
* io/sys/stat.h (S_IFSOCK): Define for [__USE_XOPEN_EXTENDED]
|
||||||
instead of [__USE_UNIX98].
|
instead of [__USE_UNIX98].
|
||||||
|
@ -168,7 +168,6 @@ test-xfail-XPG3/limits.h/conform = yes
|
|||||||
test-xfail-XPG3/pwd.h/conform = yes
|
test-xfail-XPG3/pwd.h/conform = yes
|
||||||
test-xfail-XPG3/search.h/conform = yes
|
test-xfail-XPG3/search.h/conform = yes
|
||||||
test-xfail-XPG3/signal.h/conform = yes
|
test-xfail-XPG3/signal.h/conform = yes
|
||||||
test-xfail-XPG3/stdlib.h/conform = yes
|
|
||||||
test-xfail-XPG3/sys/wait.h/conform = yes
|
test-xfail-XPG3/sys/wait.h/conform = yes
|
||||||
test-xfail-XPG4/arpa/inet.h/conform = yes
|
test-xfail-XPG4/arpa/inet.h/conform = yes
|
||||||
test-xfail-XPG4/netdb.h/conform = yes
|
test-xfail-XPG4/netdb.h/conform = yes
|
||||||
|
@ -876,7 +876,7 @@ extern void setkey (const char *__key) __THROW __nonnull ((1));
|
|||||||
extern int posix_openpt (int __oflag) __wur;
|
extern int posix_openpt (int __oflag) __wur;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef __USE_XOPEN
|
#ifdef __USE_XOPEN_EXTENDED
|
||||||
/* The next four functions all take a master pseudo-tty fd and
|
/* The next four functions all take a master pseudo-tty fd and
|
||||||
perform an operation on the associated slave: */
|
perform an operation on the associated slave: */
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user