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 | |
| 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 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 12 | # ifndef __ASSEMBLY__ |
Helge Deller | 513e7ec | 2007-01-28 15:09:20 +0100 | [diff] [blame] | 13 | #ifdef CONFIG_64BIT |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 14 | #else |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 15 | #endif |
| 16 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 17 | /* Most things should be clean enough to redefine this at will, if care |
| 18 | is taken to make libc match. */ |
| 19 | |
| 20 | typedef unsigned long old_sigset_t; /* at least 32 bits */ |
| 21 | |
| 22 | typedef struct { |
| 23 | /* next_signal() assumes this is a long - no choice */ |
| 24 | unsigned long sig[_NSIG_WORDS]; |
| 25 | } sigset_t; |
| 26 | |
| 27 | struct sigaction { |
| 28 | __sighandler_t sa_handler; |
| 29 | unsigned long sa_flags; |
| 30 | sigset_t sa_mask; /* mask last for extensibility */ |
| 31 | }; |
| 32 | |
| 33 | struct k_sigaction { |
| 34 | struct sigaction sa; |
| 35 | }; |
| 36 | |
| 37 | #define ptrace_signal_deliver(regs, cookie) do { } while (0) |
| 38 | |
| 39 | #include <asm/sigcontext.h> |
| 40 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 41 | #endif /* !__ASSEMBLY */ |
| 42 | #endif /* _ASM_PARISC_SIGNAL_H */ |