Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | #ifndef _ASM_PARISC_SIGNAL_H |
| 2 | #define _ASM_PARISC_SIGNAL_H |
| 3 | |
David Howells | 70c1674f | 2012-10-16 21:28:05 +0100 | [diff] [blame] | 4 | #include <uapi/asm/signal.h> |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 5 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 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 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 11 | # ifndef __ASSEMBLY__ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 12 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 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 | |
Al Viro | 574c486 | 2012-11-25 22:24:19 -0500 | [diff] [blame] | 23 | #ifndef __KERNEL__ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 24 | struct sigaction { |
| 25 | __sighandler_t sa_handler; |
| 26 | unsigned long sa_flags; |
| 27 | sigset_t sa_mask; /* mask last for extensibility */ |
| 28 | }; |
Al Viro | 574c486 | 2012-11-25 22:24:19 -0500 | [diff] [blame] | 29 | #endif |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 30 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 31 | #include <asm/sigcontext.h> |
| 32 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 33 | #endif /* !__ASSEMBLY */ |
| 34 | #endif /* _ASM_PARISC_SIGNAL_H */ |