xref: /linux/arch/s390/include/asm/signal.h (revision 0d456bad36d42d16022be045c8a53ddbb59ee478)
1 /*
2  *  S390 version
3  *
4  *  Derived from "include/asm-i386/signal.h"
5  */
6 #ifndef _ASMS390_SIGNAL_H
7 #define _ASMS390_SIGNAL_H
8 
9 #include <uapi/asm/signal.h>
10 
11 /* Most things should be clean enough to redefine this at will, if care
12    is taken to make libc match.  */
13 #include <asm/sigcontext.h>
14 #define _NSIG           _SIGCONTEXT_NSIG
15 #define _NSIG_BPW       _SIGCONTEXT_NSIG_BPW
16 #define _NSIG_WORDS     _SIGCONTEXT_NSIG_WORDS
17 
18 typedef unsigned long old_sigset_t;             /* at least 32 bits */
19 
20 typedef struct {
21         unsigned long sig[_NSIG_WORDS];
22 } sigset_t;
23 
24 struct old_sigaction {
25         __sighandler_t sa_handler;
26         old_sigset_t sa_mask;
27         unsigned long sa_flags;
28         void (*sa_restorer)(void);
29 };
30 
31 struct sigaction {
32         __sighandler_t sa_handler;
33         unsigned long sa_flags;
34         void (*sa_restorer)(void);
35         sigset_t sa_mask;               /* mask last for extensibility */
36 };
37 
38 struct k_sigaction {
39         struct sigaction sa;
40 };
41 
42 #endif
43