• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 #ifndef _UAPI_ASM_SIGNAL_H
2 #define _UAPI_ASM_SIGNAL_H
3 
4 #include <linux/types.h>
5 
6 #ifndef __KERNEL__
7 /* Here we must cater to libcs that poke about in kernel headers.  */
8 
9 #define NSIG		32
10 typedef unsigned long sigset_t;
11 
12 #endif /* !__KERNEL__ */
13 
14 #define SA_RESTORER	0x04000000 /* to get struct sigaction correct */
15 
16 #include <asm-generic/signal.h>
17 
18 #ifndef __KERNEL__
19 /* Here we must cater to libcs that poke about in kernel headers.  */
20 
21 struct sigaction {
22 	union {
23 	  __sighandler_t _sa_handler;
24 	  void (*_sa_sigaction)(int, struct siginfo *, void *);
25 	} _u;
26 	sigset_t sa_mask;
27 	unsigned long sa_flags;
28 	void (*sa_restorer)(void);
29 };
30 
31 #define sa_handler	_u._sa_handler
32 #define sa_sigaction	_u._sa_sigaction
33 
34 #endif /* __KERNEL__ */
35 
36 #endif /* _UAPI_ASM_SIGNAL_H */
37