Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | /* |
| 2 | * Modified 1998-2001, 2003 |
| 3 | * David Mosberger-Tang <davidm@hpl.hp.com>, Hewlett-Packard Co |
| 4 | * |
| 5 | * Unfortunately, this file is being included by bits/signal.h in |
| 6 | * glibc-2.x. Hence the #ifdef __KERNEL__ ugliness. |
| 7 | */ |
David Howells | 43e40f2 | 2012-10-09 09:47:00 +0100 | [diff] [blame] | 8 | #ifndef _ASM_IA64_SIGNAL_H |
| 9 | #define _ASM_IA64_SIGNAL_H |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 10 | |
David Howells | 43e40f2 | 2012-10-09 09:47:00 +0100 | [diff] [blame] | 11 | #include <uapi/asm/signal.h> |
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 | |
| 14 | #define _NSIG 64 |
| 15 | #define _NSIG_BPW 64 |
| 16 | #define _NSIG_WORDS (_NSIG / _NSIG_BPW) |
| 17 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 18 | # ifndef __ASSEMBLY__ |
| 19 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 20 | /* Most things should be clean enough to redefine this at will, if care |
| 21 | is taken to make libc match. */ |
| 22 | |
| 23 | typedef unsigned long old_sigset_t; |
| 24 | |
| 25 | typedef struct { |
| 26 | unsigned long sig[_NSIG_WORDS]; |
| 27 | } sigset_t; |
| 28 | |
| 29 | struct sigaction { |
| 30 | __sighandler_t sa_handler; |
| 31 | unsigned long sa_flags; |
| 32 | sigset_t sa_mask; /* mask last for extensibility */ |
| 33 | }; |
| 34 | |
| 35 | struct k_sigaction { |
| 36 | struct sigaction sa; |
| 37 | }; |
| 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_IA64_SIGNAL_H */ |