]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Fix sys/ucontext.h namespace from signal.h etc. inclusion (bug 21457).
authorJoseph Myers <joseph@codesourcery.com>
Tue, 23 May 2017 11:49:48 +0000 (11:49 +0000)
committerJoseph Myers <joseph@codesourcery.com>
Tue, 23 May 2017 11:49:48 +0000 (11:49 +0000)
The various sys/ucontext.h headers include <signal.h> and all the
headers split out of <bits/sigstack.h>.  (Except that the powerpc
version does not include <signal.h>.)

None of the standard versions defining ucontext.h require or permit
such inclusions; rather, they all say that the stack_t and sigset_t
types from signal.h are defined.  This patch fixes the headers to
include just the bits/ headers for those types (and the existing
includes of bits/sigcontext.h).  Since bits/types/sigset_t.h is now
being included instead of bits/types/__sigset_t.h, __sigset_t uses in
the headers are replaced by direct use of the public sigset_t type.
sysdeps/unix/sysv/linux/x86/bits/sigcontext.h was relying on the prior
inclusion of <signal.h> to define types such as __uint32_t, so gets a
bits/types.h include added to provide those types.

Although one could keep some or all of the includes under a __USE_MISC
conditional, that seems unnecessary to me, especially given the lack
of a <signal.h> include in the powerpc version meaning that portable
programs already cannot rely on such an include.

Tested for x86_64 and x86, and with build-many-glibcs.py.  As with
other such fixes, more namespace issues remain so this does not permit
any XFAILs to be removed or bugs to be closed.

[BZ #21457]
* sysdeps/arm/sys/ucontext.h: Do not include <signal.h>,
<bits/sigstack.h>, <bits/types/struct_sigstack.h> or
<bits/ss_flags.h>.  Include <bits/types/sigset_t.h> instead of
<bits/types/__sigset_t.h>.
(ucontext_t): Use sigset_t instead of __sigset_t.
* sysdeps/generic/sys/ucontext.h: Do not include <signal.h>,
<bits/sigstack.h>, <bits/types/struct_sigstack.h> or
<bits/ss_flags.h>.  Include <bits/types/sigset_t.h> instead of
<bits/types/__sigset_t.h>.
(ucontext_t): Use sigset_t instead of __sigset_t.
* sysdeps/i386/sys/ucontext.h: Do not include <signal.h>,
<bits/sigstack.h>, <bits/types/struct_sigstack.h> or
<bits/ss_flags.h>.  Include <bits/types/sigset_t.h> instead of
<bits/types/__sigset_t.h>.
(ucontext_t): Use sigset_t instead of __sigset_t.
* sysdeps/m68k/sys/ucontext.h: Do not include <signal.h>,
<bits/sigstack.h>, <bits/types/struct_sigstack.h> or
<bits/ss_flags.h>.  Include <bits/types/sigset_t.h> instead of
<bits/types/__sigset_t.h>.
(ucontext_t): Use sigset_t instead of __sigset_t.
* sysdeps/mips/sys/ucontext.h: Do not include <signal.h>,
<bits/sigstack.h>, <bits/types/struct_sigstack.h> or
<bits/ss_flags.h>.  Include <bits/types/sigset_t.h> instead of
<bits/types/__sigset_t.h>.
(ucontext_t): Use sigset_t instead of __sigset_t.
* sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h: Do not include
<signal.h>, <bits/sigstack.h>, <bits/types/struct_sigstack.h> or
<bits/ss_flags.h>.  Include <bits/types/sigset_t.h> instead of
<bits/types/__sigset_t.h>.
(ucontext_t): Use sigset_t instead of __sigset_t.
* sysdeps/unix/sysv/linux/alpha/sys/ucontext.h: Do not include
<signal.h>, <bits/sigstack.h>, <bits/types/struct_sigstack.h> or
<bits/ss_flags.h>.  Include <bits/types/sigset_t.h> instead of
<bits/types/__sigset_t.h>.
(ucontext_t): Use sigset_t instead of __sigset_t.
* sysdeps/unix/sysv/linux/arm/sys/ucontext.h: Do not include
<signal.h>, <bits/sigstack.h>, <bits/types/struct_sigstack.h> or
<bits/ss_flags.h>.  Include <bits/types/sigset_t.h> instead of
<bits/types/__sigset_t.h>.
(ucontext_t): Use sigset_t instead of __sigset_t.
* sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Do not include
<signal.h>, <bits/sigstack.h>, <bits/types/struct_sigstack.h> or
<bits/ss_flags.h>.  Include <bits/types/sigset_t.h> instead of
<bits/types/__sigset_t.h>.
(ucontext_t): Use sigset_t instead of __sigset_t.
* sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Do not include
<signal.h>, <bits/sigstack.h>, <bits/types/struct_sigstack.h> or
<bits/ss_flags.h>.  Include <bits/types/sigset_t.h>.
* sysdeps/unix/sysv/linux/m68k/sys/ucontext.h: Do not include
<signal.h>, <bits/sigstack.h>, <bits/types/struct_sigstack.h> or
<bits/ss_flags.h>.  Include <bits/types/sigset_t.h> instead of
<bits/types/__sigset_t.h>.
(ucontext_t): Use sigset_t instead of __sigset_t.
* sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Do not include
<signal.h>, <bits/sigstack.h>, <bits/types/struct_sigstack.h> or
<bits/ss_flags.h>.  Include <bits/types/sigset_t.h> instead of
<bits/types/__sigset_t.h>.
(ucontext_t): Use sigset_t instead of __sigset_t.
* sysdeps/unix/sysv/linux/nios2/sys/ucontext.h: Do not include
<signal.h>, <bits/sigstack.h>, <bits/types/struct_sigstack.h> or
<bits/ss_flags.h>.  Include <bits/types/sigset_t.h> instead of
<bits/types/__sigset_t.h>.
(ucontext_t): Use sigset_t instead of __sigset_t.
* sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Do not include
<bits/sigstack.h>, <bits/types/struct_sigstack.h> or
<bits/ss_flags.h>.
* sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Do not include
<signal.h>, <bits/sigstack.h>, <bits/types/struct_sigstack.h> or
<bits/ss_flags.h>.  Include <bits/types/sigset_t.h> instead of
<bits/types/__sigset_t.h>.
(ucontext_t): Use sigset_t instead of __sigset_t.
* sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Do not include
<signal.h>, <bits/sigstack.h>, <bits/types/struct_sigstack.h> or
<bits/ss_flags.h>.  Include <bits/types/sigset_t.h> instead of
<bits/types/__sigset_t.h>.
(ucontext_t): Use sigset_t instead of __sigset_t.
* sysdeps/unix/sysv/linux/sparc/sys/ucontext.h: Do not include
<signal.h>, <bits/sigstack.h>, <bits/types/struct_sigstack.h> or
<bits/ss_flags.h>.  Include <bits/types/sigset_t.h> instead of
<bits/types/__sigset_t.h>.
(ucontext_t): Use sigset_t instead of __sigset_t.
* sysdeps/unix/sysv/linux/tile/sys/ucontext.h: Do not include
<signal.h>, <bits/sigstack.h>, <bits/types/struct_sigstack.h> or
<bits/ss_flags.h>.  Include <bits/types/sigset_t.h> instead of
<bits/types/__sigset_t.h>.
(ucontext_t): Use sigset_t instead of __sigset_t.
* sysdeps/unix/sysv/linux/x86/bits/sigcontext.h: Include
<bits/types.h>.
* sysdeps/unix/sysv/linux/x86/sys/ucontext.h: Do not include
<signal.h>, <bits/sigstack.h>, <bits/types/struct_sigstack.h> or
<bits/ss_flags.h>.  Include <bits/types/sigset_t.h> instead of
<bits/types/__sigset_t.h>.
(ucontext_t): Use sigset_t instead of __sigset_t.

21 files changed:
ChangeLog
sysdeps/arm/sys/ucontext.h
sysdeps/generic/sys/ucontext.h
sysdeps/i386/sys/ucontext.h
sysdeps/m68k/sys/ucontext.h
sysdeps/mips/sys/ucontext.h
sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h
sysdeps/unix/sysv/linux/alpha/sys/ucontext.h
sysdeps/unix/sysv/linux/arm/sys/ucontext.h
sysdeps/unix/sysv/linux/hppa/sys/ucontext.h
sysdeps/unix/sysv/linux/ia64/sys/ucontext.h
sysdeps/unix/sysv/linux/m68k/sys/ucontext.h
sysdeps/unix/sysv/linux/mips/sys/ucontext.h
sysdeps/unix/sysv/linux/nios2/sys/ucontext.h
sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h
sysdeps/unix/sysv/linux/s390/sys/ucontext.h
sysdeps/unix/sysv/linux/sh/sys/ucontext.h
sysdeps/unix/sysv/linux/sparc/sys/ucontext.h
sysdeps/unix/sysv/linux/tile/sys/ucontext.h
sysdeps/unix/sysv/linux/x86/bits/sigcontext.h
sysdeps/unix/sysv/linux/x86/sys/ucontext.h

index f432020496dcf1c00a44ffd6c814afde82da0b1d..85722c8f864463232507c29cf8a9f6474700ab98 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,100 @@
+2017-05-23  Joseph Myers  <joseph@codesourcery.com>
+
+       [BZ #21457]
+       * sysdeps/arm/sys/ucontext.h: Do not include <signal.h>,
+       <bits/sigstack.h>, <bits/types/struct_sigstack.h> or
+       <bits/ss_flags.h>.  Include <bits/types/sigset_t.h> instead of
+       <bits/types/__sigset_t.h>.
+       (ucontext_t): Use sigset_t instead of __sigset_t.
+       * sysdeps/generic/sys/ucontext.h: Do not include <signal.h>,
+       <bits/sigstack.h>, <bits/types/struct_sigstack.h> or
+       <bits/ss_flags.h>.  Include <bits/types/sigset_t.h> instead of
+       <bits/types/__sigset_t.h>.
+       (ucontext_t): Use sigset_t instead of __sigset_t.
+       * sysdeps/i386/sys/ucontext.h: Do not include <signal.h>,
+       <bits/sigstack.h>, <bits/types/struct_sigstack.h> or
+       <bits/ss_flags.h>.  Include <bits/types/sigset_t.h> instead of
+       <bits/types/__sigset_t.h>.
+       (ucontext_t): Use sigset_t instead of __sigset_t.
+       * sysdeps/m68k/sys/ucontext.h: Do not include <signal.h>,
+       <bits/sigstack.h>, <bits/types/struct_sigstack.h> or
+       <bits/ss_flags.h>.  Include <bits/types/sigset_t.h> instead of
+       <bits/types/__sigset_t.h>.
+       (ucontext_t): Use sigset_t instead of __sigset_t.
+       * sysdeps/mips/sys/ucontext.h: Do not include <signal.h>,
+       <bits/sigstack.h>, <bits/types/struct_sigstack.h> or
+       <bits/ss_flags.h>.  Include <bits/types/sigset_t.h> instead of
+       <bits/types/__sigset_t.h>.
+       (ucontext_t): Use sigset_t instead of __sigset_t.
+       * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h: Do not include
+       <signal.h>, <bits/sigstack.h>, <bits/types/struct_sigstack.h> or
+       <bits/ss_flags.h>.  Include <bits/types/sigset_t.h> instead of
+       <bits/types/__sigset_t.h>.
+       (ucontext_t): Use sigset_t instead of __sigset_t.
+       * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h: Do not include
+       <signal.h>, <bits/sigstack.h>, <bits/types/struct_sigstack.h> or
+       <bits/ss_flags.h>.  Include <bits/types/sigset_t.h> instead of
+       <bits/types/__sigset_t.h>.
+       (ucontext_t): Use sigset_t instead of __sigset_t.
+       * sysdeps/unix/sysv/linux/arm/sys/ucontext.h: Do not include
+       <signal.h>, <bits/sigstack.h>, <bits/types/struct_sigstack.h> or
+       <bits/ss_flags.h>.  Include <bits/types/sigset_t.h> instead of
+       <bits/types/__sigset_t.h>.
+       (ucontext_t): Use sigset_t instead of __sigset_t.
+       * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Do not include
+       <signal.h>, <bits/sigstack.h>, <bits/types/struct_sigstack.h> or
+       <bits/ss_flags.h>.  Include <bits/types/sigset_t.h> instead of
+       <bits/types/__sigset_t.h>.
+       (ucontext_t): Use sigset_t instead of __sigset_t.
+       * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Do not include
+       <signal.h>, <bits/sigstack.h>, <bits/types/struct_sigstack.h> or
+       <bits/ss_flags.h>.  Include <bits/types/sigset_t.h>.
+       * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h: Do not include
+       <signal.h>, <bits/sigstack.h>, <bits/types/struct_sigstack.h> or
+       <bits/ss_flags.h>.  Include <bits/types/sigset_t.h> instead of
+       <bits/types/__sigset_t.h>.
+       (ucontext_t): Use sigset_t instead of __sigset_t.
+       * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Do not include
+       <signal.h>, <bits/sigstack.h>, <bits/types/struct_sigstack.h> or
+       <bits/ss_flags.h>.  Include <bits/types/sigset_t.h> instead of
+       <bits/types/__sigset_t.h>.
+       (ucontext_t): Use sigset_t instead of __sigset_t.
+       * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h: Do not include
+       <signal.h>, <bits/sigstack.h>, <bits/types/struct_sigstack.h> or
+       <bits/ss_flags.h>.  Include <bits/types/sigset_t.h> instead of
+       <bits/types/__sigset_t.h>.
+       (ucontext_t): Use sigset_t instead of __sigset_t.
+       * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Do not include
+       <bits/sigstack.h>, <bits/types/struct_sigstack.h> or
+       <bits/ss_flags.h>.
+       * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Do not include
+       <signal.h>, <bits/sigstack.h>, <bits/types/struct_sigstack.h> or
+       <bits/ss_flags.h>.  Include <bits/types/sigset_t.h> instead of
+       <bits/types/__sigset_t.h>.
+       (ucontext_t): Use sigset_t instead of __sigset_t.
+       * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Do not include
+       <signal.h>, <bits/sigstack.h>, <bits/types/struct_sigstack.h> or
+       <bits/ss_flags.h>.  Include <bits/types/sigset_t.h> instead of
+       <bits/types/__sigset_t.h>.
+       (ucontext_t): Use sigset_t instead of __sigset_t.
+       * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h: Do not include
+       <signal.h>, <bits/sigstack.h>, <bits/types/struct_sigstack.h> or
+       <bits/ss_flags.h>.  Include <bits/types/sigset_t.h> instead of
+       <bits/types/__sigset_t.h>.
+       (ucontext_t): Use sigset_t instead of __sigset_t.
+       * sysdeps/unix/sysv/linux/tile/sys/ucontext.h: Do not include
+       <signal.h>, <bits/sigstack.h>, <bits/types/struct_sigstack.h> or
+       <bits/ss_flags.h>.  Include <bits/types/sigset_t.h> instead of
+       <bits/types/__sigset_t.h>.
+       (ucontext_t): Use sigset_t instead of __sigset_t.
+       * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h: Include
+       <bits/types.h>.
+       * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: Do not include
+       <signal.h>, <bits/sigstack.h>, <bits/types/struct_sigstack.h> or
+       <bits/ss_flags.h>.  Include <bits/types/sigset_t.h> instead of
+       <bits/types/__sigset_t.h>.
+       (ucontext_t): Use sigset_t instead of __sigset_t.
+
 2017-05-22  Zack Weinberg  <zackw@panix.com>
 
        * sysdeps/unix/sysv/linux/bits/siginfo-consts.h
index bbfeb20bb52bee34b0f49ec61525311b20b395ec..37277f08113e8659b5c34ee53ec2d201c915d2c6 100644 (file)
 #define _SYS_UCONTEXT_H        1
 
 #include <features.h>
-#include <signal.h>
 
-/* We need the signal context definitions even if they are not exposed
-   by <signal.h>.  */
-#include <bits/types/__sigset_t.h>
+#include <bits/types/sigset_t.h>
 #include <bits/sigcontext.h>
-#include <bits/sigstack.h>
-#include <bits/types/struct_sigstack.h>
 #include <bits/types/stack_t.h>
-#include <bits/ss_flags.h>
 
 
 typedef int greg_t;
@@ -97,7 +91,7 @@ typedef struct ucontext
   {
     unsigned long int uc_flags;
     struct ucontext *uc_link;
-    __sigset_t uc_sigmask;
+    sigset_t uc_sigmask;
     stack_t uc_stack;
     mcontext_t uc_mcontext;
     long int uc_filler[5];
index a0602a7ad3815d20fed773f1b73d2cc3cccdd2d0..a64460c9ae278af94cd25f664f23d95e5f22e0a3 100644 (file)
 #define _SYS_UCONTEXT_H        1
 
 #include <features.h>
-#include <signal.h>
 
-/* We need the signal context definitions even if they are not exposed
-   by <signal.h>.  */
-#include <bits/types/__sigset_t.h>
+#include <bits/types/sigset_t.h>
 #include <bits/sigcontext.h>
-#include <bits/sigstack.h>
-#include <bits/types/struct_sigstack.h>
 #include <bits/types/stack_t.h>
-#include <bits/ss_flags.h>
 
 
 typedef struct sigcontext mcontext_t;
@@ -44,7 +38,7 @@ typedef struct ucontext
     struct ucontext *uc_link;
     stack_t uc_stack;
     mcontext_t uc_mcontext;
-    __sigset_t uc_sigmask;
+    sigset_t uc_sigmask;
   } ucontext_t;
 
 #endif /* sys/ucontext.h */
index 92deea92eaed832b5d20f8ca53e05ccf014e8014..a6b936a4c8c11390d40d23ca1b4427863e93a8f1 100644 (file)
 #define _SYS_UCONTEXT_H        1
 
 #include <features.h>
-#include <signal.h>
 
-/* We need the signal context definitions even if they are not exposed
-   by <signal.h>.  */
-#include <bits/types/__sigset_t.h>
+#include <bits/types/sigset_t.h>
 #include <bits/sigcontext.h>
-#include <bits/sigstack.h>
-#include <bits/types/struct_sigstack.h>
 #include <bits/types/stack_t.h>
-#include <bits/ss_flags.h>
 
 
 /* Type for general register.  */
@@ -122,7 +116,7 @@ typedef struct ucontext
   {
     unsigned long int uc_flags;
     struct ucontext *uc_link;
-    __sigset_t uc_sigmask;
+    sigset_t uc_sigmask;
     stack_t uc_stack;
     mcontext_t uc_mcontext;
     long int uc_filler[5];
index 4f185ce63f3c600232edcc52e13a84a9afe959d0..2b70e72fc4965e0489502fde812bed6f1697ee90 100644 (file)
 #define _SYS_UCONTEXT_H        1
 
 #include <features.h>
-#include <signal.h>
 
-/* We need the signal context definitions even if they are not exposed
-   by <signal.h>.  */
-#include <bits/types/__sigset_t.h>
+#include <bits/types/sigset_t.h>
 #include <bits/sigcontext.h>
-#include <bits/sigstack.h>
-#include <bits/types/struct_sigstack.h>
 #include <bits/types/stack_t.h>
-#include <bits/ss_flags.h>
 
 
 /* Type for general register.  */
@@ -112,7 +106,7 @@ typedef struct ucontext
 {
   unsigned long int uc_flags;
   struct ucontext *uc_link;
-  __sigset_t uc_sigmask;
+  sigset_t uc_sigmask;
   stack_t uc_stack;
   mcontext_t uc_mcontext;
   long int uc_filler[201];
index 9c6f8f822143c8f3ec180dbb647cb7c31802ead0..ebc06099acf8686123eec3d6fedc2686c18f9a6e 100644 (file)
 #define _SYS_UCONTEXT_H        1
 
 #include <features.h>
-#include <signal.h>
 
-/* We need the signal context definitions even if they are not exposed
-   by <signal.h>.  */
-#include <bits/types/__sigset_t.h>
+#include <bits/types/sigset_t.h>
 #include <bits/sigcontext.h>
-#include <bits/sigstack.h>
-#include <bits/types/struct_sigstack.h>
 #include <bits/types/stack_t.h>
-#include <bits/ss_flags.h>
 
 #include <sgidefs.h>
 
@@ -162,7 +156,7 @@ typedef struct ucontext
   __uint64_t uc_flags;
 #endif
   struct ucontext *uc_link;
-  __sigset_t uc_sigmask;
+  sigset_t uc_sigmask;
   stack_t uc_stack;
   mcontext_t uc_mcontext;
   int uc_filler[48];
index 597f9eac2f3c3225df61d52df73ba5d6fbd9827f..16c7acf2213a8b3587544745c2aeb013effd2251 100644 (file)
 #define _SYS_UCONTEXT_H        1
 
 #include <features.h>
-#include <signal.h>
 
-/* We need the signal context definitions even if they are not exposed
-   by <signal.h>.  */
-#include <bits/types/__sigset_t.h>
+#include <bits/types/sigset_t.h>
 #include <bits/sigcontext.h>
-#include <bits/sigstack.h>
-#include <bits/types/struct_sigstack.h>
 #include <bits/types/stack_t.h>
-#include <bits/ss_flags.h>
 
 #ifdef __USE_MISC
 # include <sys/procfs.h>
@@ -58,7 +52,7 @@ typedef struct ucontext
     unsigned long uc_flags;
     struct ucontext *uc_link;
     stack_t uc_stack;
-    __sigset_t uc_sigmask;
+    sigset_t uc_sigmask;
     mcontext_t uc_mcontext;
   } ucontext_t;
 
index 4491ff7c810de6c9442fd7d5e070fb77f6597c40..09e24a1f85abc81b282ec96954cbb0d13dc34620 100644 (file)
 #define _SYS_UCONTEXT_H        1
 
 #include <features.h>
-#include <signal.h>
 
-/* We need the signal context definitions even if they are not exposed
-   by <signal.h>.  */
-#include <bits/types/__sigset_t.h>
+#include <bits/types/sigset_t.h>
 #include <bits/sigcontext.h>
-#include <bits/sigstack.h>
-#include <bits/types/struct_sigstack.h>
 #include <bits/types/stack_t.h>
-#include <bits/ss_flags.h>
 
 
 /* Type for general register.  */
@@ -61,7 +55,7 @@ typedef struct ucontext
     unsigned long __uc_osf_sigmask;
     stack_t uc_stack;
     mcontext_t uc_mcontext;
-    __sigset_t uc_sigmask;
+    sigset_t uc_sigmask;
   } ucontext_t;
 
 #endif /* sys/ucontext.h */
index d7c7d9ec47bbdc71dafcc28573c9060fda1d83ce..0ce9b14ba5c6647cba6c8d99d95971d93efaff40 100644 (file)
 #define _SYS_UCONTEXT_H        1
 
 #include <features.h>
-#include <signal.h>
 
-/* We need the signal context definitions even if they are not exposed
-   by <signal.h>.  */
-#include <bits/types/__sigset_t.h>
+#include <bits/types/sigset_t.h>
 #include <bits/sigcontext.h>
-#include <bits/sigstack.h>
-#include <bits/types/struct_sigstack.h>
 #include <bits/types/stack_t.h>
-#include <bits/ss_flags.h>
 
 
 #ifdef __USE_MISC
@@ -113,7 +107,7 @@ typedef struct ucontext
     struct ucontext *uc_link;
     stack_t uc_stack;
     mcontext_t uc_mcontext;
-    __sigset_t uc_sigmask;
+    sigset_t uc_sigmask;
     unsigned long uc_regspace[128] __attribute__((__aligned__(8)));
   } ucontext_t;
 
index 79b99ff6a231e6fe886df0827ff44a193086e1c5..982b4c44c29c614db7e3e3f272097b2393444756 100644 (file)
 #define _SYS_UCONTEXT_H        1
 
 #include <features.h>
-#include <signal.h>
 
-/* We need the signal context definitions even if they are not exposed
-   by <signal.h>.  */
-#include <bits/types/__sigset_t.h>
+#include <bits/types/sigset_t.h>
 #include <bits/sigcontext.h>
-#include <bits/sigstack.h>
-#include <bits/types/struct_sigstack.h>
 #include <bits/types/stack_t.h>
-#include <bits/ss_flags.h>
 
 
 #ifdef __USE_MISC
@@ -67,7 +61,7 @@ typedef struct ucontext
     struct ucontext *uc_link;
     stack_t uc_stack;
     mcontext_t uc_mcontext;
-    __sigset_t uc_sigmask;
+    sigset_t uc_sigmask;
   } ucontext_t;
 
 #endif /* sys/ucontext.h */
index 17474a55c7728eff96e1f3a9ee2ca7bf8a54911f..5ed6929af464954f159f2b206679edb33ac13d28 100644 (file)
 #define _SYS_UCONTEXT_H        1
 
 #include <features.h>
-#include <signal.h>
 
-/* We need the signal context definitions even if they are not exposed
-   by <signal.h>.  */
+#include <bits/types/sigset_t.h>
 #include <bits/sigcontext.h>
-#include <bits/sigstack.h>
-#include <bits/types/struct_sigstack.h>
 #include <bits/types/stack_t.h>
-#include <bits/ss_flags.h>
 
 
 /*
index 62dd96e9f2db3c18b5145a4d6dc6c9a913906c1b..0570ec3c3d45aa36fdf36974ed55469d6659fef8 100644 (file)
 #define _SYS_UCONTEXT_H        1
 
 #include <features.h>
-#include <signal.h>
 
-/* We need the signal context definitions even if they are not exposed
-   by <signal.h>.  */
-#include <bits/types/__sigset_t.h>
+#include <bits/types/sigset_t.h>
 #include <bits/sigcontext.h>
-#include <bits/sigstack.h>
-#include <bits/types/struct_sigstack.h>
 #include <bits/types/stack_t.h>
-#include <bits/ss_flags.h>
 
 
 /* Type for general register.  */
@@ -120,7 +114,7 @@ typedef struct ucontext
   stack_t uc_stack;
   mcontext_t uc_mcontext;
   unsigned long uc_filler[80];
-  __sigset_t uc_sigmask;
+  sigset_t uc_sigmask;
 } ucontext_t;
 
 #endif /* sys/ucontext.h */
index 06b45a87267e04ec89f8b74aae520cd149145dcb..d15d85dc641deb038ad350e1ed11581895677add 100644 (file)
 #define _SYS_UCONTEXT_H        1
 
 #include <features.h>
-#include <signal.h>
 
-/* We need the signal context definitions even if they are not exposed
-   by <signal.h>.  */
-#include <bits/types/__sigset_t.h>
+#include <bits/types/sigset_t.h>
 #include <bits/sigcontext.h>
-#include <bits/sigstack.h>
-#include <bits/types/struct_sigstack.h>
 #include <bits/types/stack_t.h>
-#include <bits/ss_flags.h>
 
 #include <sgidefs.h>
 
@@ -113,7 +107,7 @@ typedef struct ucontext
     struct ucontext *uc_link;
     stack_t uc_stack;
     mcontext_t uc_mcontext;
-    __sigset_t uc_sigmask;
+    sigset_t uc_sigmask;
   } ucontext_t;
 
 #endif /* sys/ucontext.h */
index 7099b458d4389f4989f5cac6a20a7de13f874bd1..72ae1a05c7e02468bdb8226c6ffb56da46ad56e2 100644 (file)
 #define _SYS_UCONTEXT_H        1
 
 #include <features.h>
-#include <signal.h>
 
-/* We need the signal context definitions even if they are not exposed
-   by <signal.h>.  */
-#include <bits/types/__sigset_t.h>
+#include <bits/types/sigset_t.h>
 #include <bits/sigcontext.h>
-#include <bits/sigstack.h>
-#include <bits/types/struct_sigstack.h>
 #include <bits/types/stack_t.h>
-#include <bits/ss_flags.h>
 
 
 /* These definitions must be in sync with the kernel.  */
@@ -54,7 +48,7 @@ typedef struct ucontext
     struct ucontext *uc_link;
     stack_t uc_stack;
     mcontext_t uc_mcontext;
-    __sigset_t uc_sigmask;
+    sigset_t uc_sigmask;
   } ucontext_t;
 
 #endif /* sys/ucontext.h */
index d91a5ac59f018ad5c178ce5b8ac92fda99d4616b..c10741cf534e8220594118c7a27db8440ea3b15c 100644 (file)
 
 #include <features.h>
 
-/* We need the signal context definitions even if they are not exposed
-   by <signal.h>.  */
 #include <bits/sigcontext.h>
-#include <bits/sigstack.h>
 #include <bits/types/sigset_t.h>
-#include <bits/types/struct_sigstack.h>
 #include <bits/types/stack_t.h>
-#include <bits/ss_flags.h>
 
 
 #if __WORDSIZE == 32
index fcbd48ddadbcf8a0d97298b9fd839ae1cfb7f26d..80410fa38ccef126aec4ef2b3281bb5ff91b9d72 100644 (file)
 #define _SYS_UCONTEXT_H        1
 
 #include <features.h>
-#include <signal.h>
 
-/* We need the signal context definitions even if they are not exposed
-   by in <signal.h>.  */
-#include <bits/types/__sigset_t.h>
+#include <bits/types/sigset_t.h>
 #include <bits/sigcontext.h>
-#include <bits/sigstack.h>
-#include <bits/types/struct_sigstack.h>
 #include <bits/types/stack_t.h>
-#include <bits/ss_flags.h>
 
 
 /* Type for a program status word.  */
@@ -84,7 +78,7 @@ typedef struct ucontext
     struct ucontext *uc_link;
     stack_t uc_stack;
     mcontext_t uc_mcontext;
-    __sigset_t uc_sigmask;
+    sigset_t uc_sigmask;
   } ucontext_t;
 
 
index cefb918831d7200939ca7f07111350e6d84180cc..7444298957a6633202a12a0460ed5eaee9479761 100644 (file)
 #define _SYS_UCONTEXT_H        1
 
 #include <features.h>
-#include <signal.h>
 
-/* We need the signal context definitions even if they are not exposed
-   by <signal.h>.  */
-#include <bits/types/__sigset_t.h>
+#include <bits/types/sigset_t.h>
 #include <bits/sigcontext.h>
-#include <bits/sigstack.h>
-#include <bits/types/struct_sigstack.h>
 #include <bits/types/stack_t.h>
-#include <bits/ss_flags.h>
 
 
 typedef int greg_t;
@@ -113,7 +107,7 @@ typedef struct ucontext
     struct ucontext *uc_link;
     stack_t uc_stack;
     mcontext_t uc_mcontext;
-    __sigset_t uc_sigmask;
+    sigset_t uc_sigmask;
   } ucontext_t;
 
 #endif /* sys/ucontext.h */
index e859b79c9d180335770d63f0eedf2322a498bae9..7ce5f2b881a89ac446e2495d760f8cf657e8a414 100644 (file)
 #define _SYS_UCONTEXT_H        1
 
 #include <features.h>
-#include <signal.h>
 
-/* We need the signal context definitions even if they are not exposed
-   by <signal.h>.  */
-#include <bits/types/__sigset_t.h>
+#include <bits/types/sigset_t.h>
 #include <bits/sigcontext.h>
-#include <bits/sigstack.h>
-#include <bits/types/struct_sigstack.h>
 #include <bits/types/stack_t.h>
-#include <bits/ss_flags.h>
 
 #include <bits/wordsize.h>
 
@@ -94,7 +88,7 @@ typedef struct ucontext {
        unsigned long           __uc_sigmask;
        mcontext_t              uc_mcontext;
        stack_t                 uc_stack;
-       __sigset_t              uc_sigmask;
+       sigset_t                uc_sigmask;
 } ucontext_t;
 
 #endif /* __WORDISIZE == 64 */
@@ -271,7 +265,7 @@ typedef struct ucontext
   {
     unsigned long   uc_flags;
     struct ucontext *uc_link;
-    __sigset_t     uc_sigmask;
+    sigset_t       uc_sigmask;
     stack_t         uc_stack;
     mcontext_t      uc_mcontext;
   } ucontext_t;
index 4a40e5710f9a2f02f57fc01dce3bc8084df81369..7e5cf4a8318ea7bf99ac30a1c08962aea882155d 100644 (file)
 #define _SYS_UCONTEXT_H        1
 
 #include <features.h>
-#include <signal.h>
 
-/* We need the signal context definitions even if they are not exposed
-   by <signal.h>.  */
-#include <bits/types/__sigset_t.h>
+#include <bits/types/sigset_t.h>
 #include <bits/sigcontext.h>
-#include <bits/sigstack.h>
-#include <bits/types/struct_sigstack.h>
 #include <bits/types/stack_t.h>
-#include <bits/ss_flags.h>
 
 #ifdef __USE_MISC
 /* Get register type and register names. */
@@ -72,7 +66,7 @@ typedef struct ucontext
     struct ucontext *uc_link;
     stack_t uc_stack;
     mcontext_t uc_mcontext;
-    __sigset_t uc_sigmask;
+    sigset_t uc_sigmask;
   } ucontext_t;
 
 #endif /* sys/ucontext.h */
index bc692bcfb157348fda2cd8eade8865970a15e742..cff595b94affb0c53f5fb5677075970ffca8ec1c 100644 (file)
@@ -22,6 +22,8 @@
 # error "Never use <bits/sigcontext.h> directly; include <signal.h> instead."
 #endif
 
+#include <bits/types.h>
+
 #define FP_XSTATE_MAGIC1       0x46505853U
 #define FP_XSTATE_MAGIC2       0x46505845U
 #define FP_XSTATE_MAGIC2_SIZE  sizeof(FP_XSTATE_MAGIC2)
index 60a3edfea06be080c4bb2385a5dec45bb6b7f252..92a698e4b4c24e76d30ae345024a72a2c7354ec0 100644 (file)
 #define _SYS_UCONTEXT_H        1
 
 #include <features.h>
-#include <signal.h>
 
-/* We need the signal context definitions even if they are not exposed
-   by <signal.h>.  */
-#include <bits/types/__sigset_t.h>
+#include <bits/types/sigset_t.h>
 #include <bits/sigcontext.h>
-#include <bits/sigstack.h>
-#include <bits/types/struct_sigstack.h>
 #include <bits/types/stack_t.h>
-#include <bits/ss_flags.h>
 
 
 #ifdef __x86_64__
@@ -142,7 +136,7 @@ typedef struct ucontext
     struct ucontext *uc_link;
     stack_t uc_stack;
     mcontext_t uc_mcontext;
-    __sigset_t uc_sigmask;
+    sigset_t uc_sigmask;
     struct _libc_fpstate __fpregs_mem;
   } ucontext_t;
 
@@ -243,7 +237,7 @@ typedef struct ucontext
     struct ucontext *uc_link;
     stack_t uc_stack;
     mcontext_t uc_mcontext;
-    __sigset_t uc_sigmask;
+    sigset_t uc_sigmask;
     struct _libc_fpstate __fpregs_mem;
   } ucontext_t;