Greg Kroah-Hartman | b244131 | 2017-11-01 15:07:57 +0100 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 2 | /* |
| 3 | * Modified 1998-2001, 2003 |
| 4 | * David Mosberger-Tang <davidm@hpl.hp.com>, Hewlett-Packard Co |
| 5 | * |
| 6 | * Unfortunately, this file is being included by bits/signal.h in |
| 7 | * glibc-2.x. Hence the #ifdef __KERNEL__ ugliness. |
| 8 | */ |
David Howells | 43e40f2 | 2012-10-09 09:47:00 +0100 | [diff] [blame] | 9 | #ifndef _ASM_IA64_SIGNAL_H |
| 10 | #define _ASM_IA64_SIGNAL_H |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 11 | |
David Howells | 43e40f2 | 2012-10-09 09:47:00 +0100 | [diff] [blame] | 12 | #include <uapi/asm/signal.h> |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 13 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 14 | |
| 15 | #define _NSIG 64 |
| 16 | #define _NSIG_BPW 64 |
| 17 | #define _NSIG_WORDS (_NSIG / _NSIG_BPW) |
| 18 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 19 | # ifndef __ASSEMBLY__ |
| 20 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 21 | /* Most things should be clean enough to redefine this at will, if care |
| 22 | is taken to make libc match. */ |
| 23 | |
| 24 | typedef unsigned long old_sigset_t; |
| 25 | |
| 26 | typedef struct { |
| 27 | unsigned long sig[_NSIG_WORDS]; |
| 28 | } sigset_t; |
| 29 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 30 | # include <asm/sigcontext.h> |
| 31 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 32 | # endif /* !__ASSEMBLY__ */ |
| 33 | #endif /* _ASM_IA64_SIGNAL_H */ |