]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Fix XPG4 bsd_signal namespace (bug 21552).
authorJoseph Myers <joseph@codesourcery.com>
Mon, 12 Jun 2017 17:39:47 +0000 (17:39 +0000)
committerJoseph Myers <joseph@codesourcery.com>
Mon, 12 Jun 2017 17:39:47 +0000 (17:39 +0000)
bsd_signal was added in XPG4.2, so should be declared for
__USE_XOPEN_EXTENDED, instead of the present __USE_XOPEN condition.
This patch fixes the condition accordingly.

Tested for x86_64.

[BZ #21552]
* signal/signal.h (bsd_signal): Declare if [__USE_XOPEN_EXTENDED],
not [__USE_XOPEN].
* conform/Makefile (test-xfail-XPG4/signal.h/conform): Remove.

ChangeLog
conform/Makefile
signal/signal.h

index a066151215de957629f7c7cafb5aaa18ffac527f..f36fa0ee0f4c2f66a3c0faf0794c49e171a90456 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2017-06-12  Joseph Myers  <joseph@codesourcery.com>
 
+       [BZ #21552]
+       * signal/signal.h (bsd_signal): Declare if [__USE_XOPEN_EXTENDED],
+       not [__USE_XOPEN].
+       * conform/Makefile (test-xfail-XPG4/signal.h/conform): Remove.
+
        [BZ #21550]
        * signal/signal.h (sigwait): Only declare if [__USE_POSIX199506].
 
index 68f2e552985341129671f160b4526667449f9a20..9ec41c7244ad10f87f6073e6731c981efa2d4d45 100644 (file)
@@ -161,7 +161,6 @@ test-xfail-XOPEN2K/ndbm.h/conform = yes
 test-xfail-XOPEN2K8/ndbm.h/conform = yes
 
 # Unsorted expected failures.
-test-xfail-XPG4/signal.h/conform = yes
 test-xfail-XPG42/signal.h/conform = yes
 test-xfail-XPG42/sys/wait.h/conform = yes
 test-xfail-XPG42/ucontext.h/conform = yes
index 5ff94e0d25487954c99cde491a0af3ba59aa475a..23cd8efb14c1e4c1aa2cbe0d4d80bf698cc0b9bd 100644 (file)
@@ -94,7 +94,7 @@ extern __sighandler_t __REDIRECT_NTH (signal,
 # endif
 #endif
 
-#if defined __USE_XOPEN && !defined __USE_XOPEN2K8
+#if defined __USE_XOPEN_EXTENDED && !defined __USE_XOPEN2K8
 /* The X/Open definition of `signal' conflicts with the BSD version.
    So they defined another function `bsd_signal'.  */
 extern __sighandler_t bsd_signal (int __sig, __sighandler_t __handler)