hurd: Fix includability of <hurd/signal.h> in all standards
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Mon, 5 Mar 2018 01:17:52 +0000 (02:17 +0100)
committerSamuel Thibault <samuel.thibault@ens-lyon.org>
Mon, 5 Mar 2018 21:50:29 +0000 (22:50 +0100)
* bits/sigaction.h: Add include guard.
* sysdeps/unix/sysv/linux/alpha/bits/sigaction.h: Likewise.
* sysdeps/unix/sysv/linux/bits/sigaction.h: Likewise.
* sysdeps/unix/sysv/linux/hppa/bits/sigaction.h: Likewise.
* sysdeps/unix/sysv/linux/ia64/bits/sigaction.h: Likewise.
* sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Likewise.
* sysdeps/unix/sysv/linux/s390/bits/sigaction.h: Likewise.
* sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Likewise.
* sysdeps/unix/sysv/linux/tile/bits/sigaction.h: Likewise.
* hurd/hurd/signal.h: Include <bits/sigaction.h>.

ChangeLog
bits/sigaction.h
hurd/hurd/signal.h
sysdeps/unix/sysv/linux/alpha/bits/sigaction.h
sysdeps/unix/sysv/linux/bits/sigaction.h
sysdeps/unix/sysv/linux/hppa/bits/sigaction.h
sysdeps/unix/sysv/linux/ia64/bits/sigaction.h
sysdeps/unix/sysv/linux/mips/bits/sigaction.h
sysdeps/unix/sysv/linux/s390/bits/sigaction.h
sysdeps/unix/sysv/linux/sparc/bits/sigaction.h
sysdeps/unix/sysv/linux/tile/bits/sigaction.h

index dc0dc43..f586c3f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,16 @@
+2018-03-05  Samuel Thibault  <samuel.thibault@ens-lyon.org>
+
+       * bits/sigaction.h: Add include guard.
+       * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h: Likewise.
+       * sysdeps/unix/sysv/linux/bits/sigaction.h: Likewise.
+       * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h: Likewise.
+       * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h: Likewise.
+       * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Likewise.
+       * sysdeps/unix/sysv/linux/s390/bits/sigaction.h: Likewise.
+       * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Likewise.
+       * sysdeps/unix/sysv/linux/tile/bits/sigaction.h: Likewise.
+       * hurd/hurd/signal.h: Include <bits/sigaction.h>.
+
 2018-03-05  Joseph Myers  <joseph@codesourcery.com>
 
        * iconv/loop.c (UNICODE_TAG_HANDLER): Disable
index 97ce95f..7797017 100644 (file)
@@ -15,6 +15,9 @@
    License along with the GNU C Library; if not, see
    <http://www.gnu.org/licenses/>.  */
 
+#ifndef _BITS_SIGACTION_H
+#define _BITS_SIGACTION_H 1
+
 #ifndef _SIGNAL_H
 # error "Never include <bits/sigaction.h> directly; use <signal.h> instead."
 #endif
@@ -77,3 +80,5 @@ struct sigaction
 #define        SIG_BLOCK       1       /* Block signals.  */
 #define        SIG_UNBLOCK     2       /* Unblock signals.  */
 #define        SIG_SETMASK     3       /* Set the set of blocked signals.  */
+
+#endif
index d4edf31..0e3315a 100644 (file)
@@ -34,6 +34,7 @@
 #include <bits/types/error_t.h>
 #include <bits/types/stack_t.h>
 #include <bits/types/sigset_t.h>
+#include <bits/sigaction.h>
 #include <hurd/msg.h>
 
 #include <cthreads.h>          /* For `struct mutex'.  */
index 17003fb..2700a4a 100644 (file)
@@ -16,6 +16,9 @@
    License along with the GNU C Library.  If not, see
    <http://www.gnu.org/licenses/>.  */
 
+#ifndef _BITS_SIGACTION_H
+#define _BITS_SIGACTION_H 1
+
 #ifndef _SIGNAL_H
 # error "Never include <bits/sigaction.h> directly; use <signal.h> instead."
 #endif
@@ -73,3 +76,5 @@ struct sigaction
 #define        SIG_BLOCK     1          /* Block signals.  */
 #define        SIG_UNBLOCK   2          /* Unblock signals.  */
 #define        SIG_SETMASK   3          /* Set the set of blocked signals.  */
+
+#endif
index fd29373..a4225c8 100644 (file)
@@ -16,6 +16,9 @@
    License along with the GNU C Library; if not, see
    <http://www.gnu.org/licenses/>.  */
 
+#ifndef _BITS_SIGACTION_H
+#define _BITS_SIGACTION_H 1
+
 #ifndef _SIGNAL_H
 # error "Never include <bits/sigaction.h> directly; use <signal.h> instead."
 #endif
@@ -76,3 +79,5 @@ struct sigaction
 #define        SIG_BLOCK     0          /* Block signals.  */
 #define        SIG_UNBLOCK   1          /* Unblock signals.  */
 #define        SIG_SETMASK   2          /* Set the set of blocked signals.  */
+
+#endif
index 0fa10ef..09b9e4e 100644 (file)
@@ -16,6 +16,9 @@
    License along with the GNU C Library.  If not, see
    <http://www.gnu.org/licenses/>.  */
 
+#ifndef _BITS_SIGACTION_H
+#define _BITS_SIGACTION_H 1
+
 #ifndef _SIGNAL_H
 # error "Never include <bits/sigaction.h> directly; use <signal.h> instead."
 #endif
@@ -79,3 +82,5 @@ struct sigaction
 #define SIG_BLOCK          0   /* for blocking signals */
 #define SIG_UNBLOCK        1   /* for unblocking signals */
 #define SIG_SETMASK        2   /* for setting the signal mask */
+
+#endif
index 2c0f875..76edba2 100644 (file)
@@ -16,6 +16,9 @@
    License along with the GNU C Library; if not, see
    <http://www.gnu.org/licenses/>.  */
 
+#ifndef _BITS_SIGACTION_H
+#define _BITS_SIGACTION_H 1
+
 #ifndef _SIGNAL_H
 # error "Never include <bits/sigaction.h> directly; use <signal.h> instead."
 #endif
@@ -73,3 +76,5 @@ struct sigaction
 #define SIG_BLOCK          0   /* for blocking signals */
 #define SIG_UNBLOCK        1   /* for unblocking signals */
 #define SIG_SETMASK        2   /* for setting the signal mask */
+
+#endif
index 67c9aa5..4fb0626 100644 (file)
@@ -16,6 +16,9 @@
    License along with the GNU C Library.  If not, see
    <http://www.gnu.org/licenses/>.  */
 
+#ifndef _BITS_SIGACTION_H
+#define _BITS_SIGACTION_H 1
+
 #ifndef _SIGNAL_H
 # error "Never include <bits/sigaction.h> directly; use <signal.h> instead."
 #endif
@@ -87,3 +90,5 @@ struct sigaction
 # define SIG_SETMASK32 256     /* Goodie from SGI for BSD compatibility:
                                   set only the low 32 bit of the sigset.  */
 #endif
+
+#endif
index e5bcf41..50c86cc 100644 (file)
@@ -16,6 +16,9 @@
    License along with the GNU C Library; if not, see
    <http://www.gnu.org/licenses/>.  */
 
+#ifndef _BITS_SIGACTION_H
+#define _BITS_SIGACTION_H 1
+
 #ifndef _SIGNAL_H
 # error "Never include <bits/sigaction.h> directly; use <signal.h> instead."
 #endif
@@ -110,3 +113,5 @@ struct sigaction
 #define        SIG_BLOCK     0          /* Block signals.  */
 #define        SIG_UNBLOCK   1          /* Unblock signals.  */
 #define        SIG_SETMASK   2          /* Set the set of blocked signals.  */
+
+#endif
index af9e3dc..8d4665a 100644 (file)
@@ -16,6 +16,9 @@
    License along with the GNU C Library; if not, see
    <http://www.gnu.org/licenses/>.  */
 
+#ifndef _BITS_SIGACTION_H
+#define _BITS_SIGACTION_H 1
+
 #ifndef _SIGNAL_H
 # error "Never include <bits/sigaction.h> directly; use <signal.h> instead."
 #endif
@@ -82,3 +85,5 @@ struct sigaction
 #define        SIG_BLOCK     1          /* Block signals.  */
 #define        SIG_UNBLOCK   2          /* Unblock signals.  */
 #define        SIG_SETMASK   4          /* Set the set of blocked signals.  */
+
+#endif
index f0e0474..d0467bd 100644 (file)
@@ -16,6 +16,9 @@
    License along with the GNU C Library.  If not, see
    <http://www.gnu.org/licenses/>.  */
 
+#ifndef _BITS_SIGACTION_H
+#define _BITS_SIGACTION_H 1
+
 #ifndef _SIGNAL_H
 # error "Never include <bits/sigaction.h> directly; use <signal.h> instead."
 #endif
@@ -77,3 +80,5 @@ struct sigaction
 #define        SIG_BLOCK     0          /* Block signals.  */
 #define        SIG_UNBLOCK   1          /* Unblock signals.  */
 #define        SIG_SETMASK   2          /* Set the set of blocked signals.  */
+
+#endif