xref: /openbmc/linux/arch/alpha/include/asm/signal.h (revision 8fdff1dc)
1 #ifndef _ASMAXP_SIGNAL_H
2 #define _ASMAXP_SIGNAL_H
3 
4 #include <uapi/asm/signal.h>
5 
6 /* Digital Unix defines 64 signals.  Most things should be clean enough
7    to redefine this at will, if care is taken to make libc match.  */
8 
9 #define _NSIG		64
10 #define _NSIG_BPW	64
11 #define _NSIG_WORDS	(_NSIG / _NSIG_BPW)
12 
13 typedef unsigned long old_sigset_t;		/* at least 32 bits */
14 
15 typedef struct {
16 	unsigned long sig[_NSIG_WORDS];
17 } sigset_t;
18 
19 struct osf_sigaction {
20 	__sighandler_t	sa_handler;
21 	old_sigset_t	sa_mask;
22 	int		sa_flags;
23 };
24 
25 struct sigaction {
26 	__sighandler_t	sa_handler;
27 	unsigned long	sa_flags;
28 	sigset_t	sa_mask;	/* mask last for extensibility */
29 };
30 
31 struct k_sigaction {
32 	struct sigaction sa;
33 	__sigrestore_t ka_restorer;
34 };
35 #include <asm/sigcontext.h>
36 #endif
37