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