This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/20051] ttyslot in wrong header under wrong conditions
- From: "cvs-commit at gcc dot gnu.org" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Tue, 17 May 2016 15:48:23 +0000
- Subject: [Bug libc/20051] ttyslot in wrong header under wrong conditions
- Auto-submitted: auto-generated
- References: <bug-20051-131 at http dot sourceware dot org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=20051
--- Comment #1 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> ---
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".
The branch, master has been updated
via 4242d9683fef6e618b80ec939adc37ff25cd2d79 (commit)
from b3a810d0d3d5c6ce7ddfb61321cd7971808ca703 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=4242d9683fef6e618b80ec939adc37ff25cd2d79
commit 4242d9683fef6e618b80ec939adc37ff25cd2d79
Author: Joseph Myers <joseph@codesourcery.com>
Date: Tue May 17 15:47:20 2016 +0000
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.
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 11 +++++++++++
conform/Makefile | 2 --
posix/unistd.h | 3 +--
stdlib/stdlib.h | 6 ++++++
4 files changed, 18 insertions(+), 4 deletions(-)
--
You are receiving this mail because:
You are on the CC list for the bug.