xref: /OK3568_Linux_fs/kernel/arch/parisc/include/asm/signal.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun /* SPDX-License-Identifier: GPL-2.0 */
2*4882a593Smuzhiyun #ifndef _ASM_PARISC_SIGNAL_H
3*4882a593Smuzhiyun #define _ASM_PARISC_SIGNAL_H
4*4882a593Smuzhiyun 
5*4882a593Smuzhiyun #include <uapi/asm/signal.h>
6*4882a593Smuzhiyun 
7*4882a593Smuzhiyun #define _NSIG		64
8*4882a593Smuzhiyun /* bits-per-word, where word apparently means 'long' not 'int' */
9*4882a593Smuzhiyun #define _NSIG_BPW	BITS_PER_LONG
10*4882a593Smuzhiyun #define _NSIG_WORDS	(_NSIG / _NSIG_BPW)
11*4882a593Smuzhiyun 
12*4882a593Smuzhiyun # ifndef __ASSEMBLY__
13*4882a593Smuzhiyun 
14*4882a593Smuzhiyun /* Most things should be clean enough to redefine this at will, if care
15*4882a593Smuzhiyun    is taken to make libc match.  */
16*4882a593Smuzhiyun 
17*4882a593Smuzhiyun typedef unsigned long old_sigset_t;		/* at least 32 bits */
18*4882a593Smuzhiyun 
19*4882a593Smuzhiyun typedef struct {
20*4882a593Smuzhiyun 	/* next_signal() assumes this is a long - no choice */
21*4882a593Smuzhiyun 	unsigned long sig[_NSIG_WORDS];
22*4882a593Smuzhiyun } sigset_t;
23*4882a593Smuzhiyun 
24*4882a593Smuzhiyun #include <asm/sigcontext.h>
25*4882a593Smuzhiyun 
26*4882a593Smuzhiyun #endif /* !__ASSEMBLY */
27*4882a593Smuzhiyun #endif /* _ASM_PARISC_SIGNAL_H */
28