xref: /linux/arch/parisc/include/asm/signal.h (revision bb9707077b4ee5f77bc9939b057ff8a0d410296f)
1 #ifndef _ASM_PARISC_SIGNAL_H
2 #define _ASM_PARISC_SIGNAL_H
3 
4 #include <uapi/asm/signal.h>
5 
6 #define _NSIG		64
7 /* bits-per-word, where word apparently means 'long' not 'int' */
8 #define _NSIG_BPW	BITS_PER_LONG
9 #define _NSIG_WORDS	(_NSIG / _NSIG_BPW)
10 
11 # ifndef __ASSEMBLY__
12 
13 /* Most things should be clean enough to redefine this at will, if care
14    is taken to make libc match.  */
15 
16 typedef unsigned long old_sigset_t;		/* at least 32 bits */
17 
18 typedef struct {
19 	/* next_signal() assumes this is a long - no choice */
20 	unsigned long sig[_NSIG_WORDS];
21 } sigset_t;
22 
23 #ifndef __KERNEL__
24 struct sigaction {
25 	__sighandler_t sa_handler;
26 	unsigned long sa_flags;
27 	sigset_t sa_mask;		/* mask last for extensibility */
28 };
29 #endif
30 
31 #include <asm/sigcontext.h>
32 
33 #endif /* !__ASSEMBLY */
34 #endif /* _ASM_PARISC_SIGNAL_H */
35