Fix sigpause namespace (bug 21554)
Commit Message
The sigpause function is declared for __USE_XOPEN. As it's new in
XPG4.2 it should be declared only for __USE_XOPEN_EXTENDED. This
patch fixes the declaration accordingly.
Tested for x86_64. The XFAIL removal depends on my other patches
pending review,
<https://sourceware.org/ml/libc-alpha/2017-06/msg00186.html> and
<https://sourceware.org/ml/libc-alpha/2017-06/msg00191.html>.
2017-06-06 Joseph Myers <joseph@codesourcery.com>
[BZ #21554]
* signal/signal.h (sigpause):: Declare if [__USE_XOPEN_EXTENDED],
not [__USE_XOPEN].
Comments
On Jun 06 2017, Joseph Myers <joseph@codesourcery.com> wrote:
> [BZ #21554]
> * signal/signal.h (sigpause):: Declare if [__USE_XOPEN_EXTENDED],
> not [__USE_XOPEN].
Ok.
Andreas.
@@ -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-XPG4/sys/wait.h/conform = yes
test-xfail-XPG42/signal.h/conform = yes
test-xfail-XPG42/sys/wait.h/conform = yes
@@ -142,7 +142,7 @@ extern void psiginfo (const siginfo_t *__pinfo, const char *__s);
This function is a cancellation point and therefore not marked with
__THROW. */
-#ifdef __USE_XOPEN
+#ifdef __USE_XOPEN_EXTENDED
# ifdef __GNUC__
extern int sigpause (int __sig) __asm__ ("__xpg_sigpause");
# else