hurd: Fix includability of <hurd/signal.h> in all standards

* 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>.
This commit is contained in:
Samuel Thibault 2018-03-05 02:17:52 +01:00
parent 6900d2ca74
commit a1ede3a402
11 changed files with 59 additions and 0 deletions

View File

@ -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> 2018-03-05 Joseph Myers <joseph@codesourcery.com>
* iconv/loop.c (UNICODE_TAG_HANDLER): Disable * iconv/loop.c (UNICODE_TAG_HANDLER): Disable

View File

@ -15,6 +15,9 @@
License along with the GNU C Library; if not, see License along with the GNU C Library; if not, see
<http://www.gnu.org/licenses/>. */ <http://www.gnu.org/licenses/>. */
#ifndef _BITS_SIGACTION_H
#define _BITS_SIGACTION_H 1
#ifndef _SIGNAL_H #ifndef _SIGNAL_H
# error "Never include <bits/sigaction.h> directly; use <signal.h> instead." # error "Never include <bits/sigaction.h> directly; use <signal.h> instead."
#endif #endif
@ -77,3 +80,5 @@ struct sigaction
#define SIG_BLOCK 1 /* Block signals. */ #define SIG_BLOCK 1 /* Block signals. */
#define SIG_UNBLOCK 2 /* Unblock signals. */ #define SIG_UNBLOCK 2 /* Unblock signals. */
#define SIG_SETMASK 3 /* Set the set of blocked signals. */ #define SIG_SETMASK 3 /* Set the set of blocked signals. */
#endif

View File

@ -34,6 +34,7 @@
#include <bits/types/error_t.h> #include <bits/types/error_t.h>
#include <bits/types/stack_t.h> #include <bits/types/stack_t.h>
#include <bits/types/sigset_t.h> #include <bits/types/sigset_t.h>
#include <bits/sigaction.h>
#include <hurd/msg.h> #include <hurd/msg.h>
#include <cthreads.h> /* For `struct mutex'. */ #include <cthreads.h> /* For `struct mutex'. */

View File

@ -16,6 +16,9 @@
License along with the GNU C Library. If not, see License along with the GNU C Library. If not, see
<http://www.gnu.org/licenses/>. */ <http://www.gnu.org/licenses/>. */
#ifndef _BITS_SIGACTION_H
#define _BITS_SIGACTION_H 1
#ifndef _SIGNAL_H #ifndef _SIGNAL_H
# error "Never include <bits/sigaction.h> directly; use <signal.h> instead." # error "Never include <bits/sigaction.h> directly; use <signal.h> instead."
#endif #endif
@ -73,3 +76,5 @@ struct sigaction
#define SIG_BLOCK 1 /* Block signals. */ #define SIG_BLOCK 1 /* Block signals. */
#define SIG_UNBLOCK 2 /* Unblock signals. */ #define SIG_UNBLOCK 2 /* Unblock signals. */
#define SIG_SETMASK 3 /* Set the set of blocked signals. */ #define SIG_SETMASK 3 /* Set the set of blocked signals. */
#endif

View File

@ -16,6 +16,9 @@
License along with the GNU C Library; if not, see License along with the GNU C Library; if not, see
<http://www.gnu.org/licenses/>. */ <http://www.gnu.org/licenses/>. */
#ifndef _BITS_SIGACTION_H
#define _BITS_SIGACTION_H 1
#ifndef _SIGNAL_H #ifndef _SIGNAL_H
# error "Never include <bits/sigaction.h> directly; use <signal.h> instead." # error "Never include <bits/sigaction.h> directly; use <signal.h> instead."
#endif #endif
@ -76,3 +79,5 @@ struct sigaction
#define SIG_BLOCK 0 /* Block signals. */ #define SIG_BLOCK 0 /* Block signals. */
#define SIG_UNBLOCK 1 /* Unblock signals. */ #define SIG_UNBLOCK 1 /* Unblock signals. */
#define SIG_SETMASK 2 /* Set the set of blocked signals. */ #define SIG_SETMASK 2 /* Set the set of blocked signals. */
#endif

View File

@ -16,6 +16,9 @@
License along with the GNU C Library. If not, see License along with the GNU C Library. If not, see
<http://www.gnu.org/licenses/>. */ <http://www.gnu.org/licenses/>. */
#ifndef _BITS_SIGACTION_H
#define _BITS_SIGACTION_H 1
#ifndef _SIGNAL_H #ifndef _SIGNAL_H
# error "Never include <bits/sigaction.h> directly; use <signal.h> instead." # error "Never include <bits/sigaction.h> directly; use <signal.h> instead."
#endif #endif
@ -79,3 +82,5 @@ struct sigaction
#define SIG_BLOCK 0 /* for blocking signals */ #define SIG_BLOCK 0 /* for blocking signals */
#define SIG_UNBLOCK 1 /* for unblocking signals */ #define SIG_UNBLOCK 1 /* for unblocking signals */
#define SIG_SETMASK 2 /* for setting the signal mask */ #define SIG_SETMASK 2 /* for setting the signal mask */
#endif

View File

@ -16,6 +16,9 @@
License along with the GNU C Library; if not, see License along with the GNU C Library; if not, see
<http://www.gnu.org/licenses/>. */ <http://www.gnu.org/licenses/>. */
#ifndef _BITS_SIGACTION_H
#define _BITS_SIGACTION_H 1
#ifndef _SIGNAL_H #ifndef _SIGNAL_H
# error "Never include <bits/sigaction.h> directly; use <signal.h> instead." # error "Never include <bits/sigaction.h> directly; use <signal.h> instead."
#endif #endif
@ -73,3 +76,5 @@ struct sigaction
#define SIG_BLOCK 0 /* for blocking signals */ #define SIG_BLOCK 0 /* for blocking signals */
#define SIG_UNBLOCK 1 /* for unblocking signals */ #define SIG_UNBLOCK 1 /* for unblocking signals */
#define SIG_SETMASK 2 /* for setting the signal mask */ #define SIG_SETMASK 2 /* for setting the signal mask */
#endif

View File

@ -16,6 +16,9 @@
License along with the GNU C Library. If not, see License along with the GNU C Library. If not, see
<http://www.gnu.org/licenses/>. */ <http://www.gnu.org/licenses/>. */
#ifndef _BITS_SIGACTION_H
#define _BITS_SIGACTION_H 1
#ifndef _SIGNAL_H #ifndef _SIGNAL_H
# error "Never include <bits/sigaction.h> directly; use <signal.h> instead." # error "Never include <bits/sigaction.h> directly; use <signal.h> instead."
#endif #endif
@ -87,3 +90,5 @@ struct sigaction
# define SIG_SETMASK32 256 /* Goodie from SGI for BSD compatibility: # define SIG_SETMASK32 256 /* Goodie from SGI for BSD compatibility:
set only the low 32 bit of the sigset. */ set only the low 32 bit of the sigset. */
#endif #endif
#endif

View File

@ -16,6 +16,9 @@
License along with the GNU C Library; if not, see License along with the GNU C Library; if not, see
<http://www.gnu.org/licenses/>. */ <http://www.gnu.org/licenses/>. */
#ifndef _BITS_SIGACTION_H
#define _BITS_SIGACTION_H 1
#ifndef _SIGNAL_H #ifndef _SIGNAL_H
# error "Never include <bits/sigaction.h> directly; use <signal.h> instead." # error "Never include <bits/sigaction.h> directly; use <signal.h> instead."
#endif #endif
@ -110,3 +113,5 @@ struct sigaction
#define SIG_BLOCK 0 /* Block signals. */ #define SIG_BLOCK 0 /* Block signals. */
#define SIG_UNBLOCK 1 /* Unblock signals. */ #define SIG_UNBLOCK 1 /* Unblock signals. */
#define SIG_SETMASK 2 /* Set the set of blocked signals. */ #define SIG_SETMASK 2 /* Set the set of blocked signals. */
#endif

View File

@ -16,6 +16,9 @@
License along with the GNU C Library; if not, see License along with the GNU C Library; if not, see
<http://www.gnu.org/licenses/>. */ <http://www.gnu.org/licenses/>. */
#ifndef _BITS_SIGACTION_H
#define _BITS_SIGACTION_H 1
#ifndef _SIGNAL_H #ifndef _SIGNAL_H
# error "Never include <bits/sigaction.h> directly; use <signal.h> instead." # error "Never include <bits/sigaction.h> directly; use <signal.h> instead."
#endif #endif
@ -82,3 +85,5 @@ struct sigaction
#define SIG_BLOCK 1 /* Block signals. */ #define SIG_BLOCK 1 /* Block signals. */
#define SIG_UNBLOCK 2 /* Unblock signals. */ #define SIG_UNBLOCK 2 /* Unblock signals. */
#define SIG_SETMASK 4 /* Set the set of blocked signals. */ #define SIG_SETMASK 4 /* Set the set of blocked signals. */
#endif

View File

@ -16,6 +16,9 @@
License along with the GNU C Library. If not, see License along with the GNU C Library. If not, see
<http://www.gnu.org/licenses/>. */ <http://www.gnu.org/licenses/>. */
#ifndef _BITS_SIGACTION_H
#define _BITS_SIGACTION_H 1
#ifndef _SIGNAL_H #ifndef _SIGNAL_H
# error "Never include <bits/sigaction.h> directly; use <signal.h> instead." # error "Never include <bits/sigaction.h> directly; use <signal.h> instead."
#endif #endif
@ -77,3 +80,5 @@ struct sigaction
#define SIG_BLOCK 0 /* Block signals. */ #define SIG_BLOCK 0 /* Block signals. */
#define SIG_UNBLOCK 1 /* Unblock signals. */ #define SIG_UNBLOCK 1 /* Unblock signals. */
#define SIG_SETMASK 2 /* Set the set of blocked signals. */ #define SIG_SETMASK 2 /* Set the set of blocked signals. */
#endif