1
2 #ifndef __ASM_GENERIC_SIGNAL_DEFS_H
3 #define __ASM_GENERIC_SIGNAL_DEFS_H
4
5 #include <linux/compiler.h>
6
7 #ifndef SIG_BLOCK
8 #define SIG_BLOCK 0
9 #endif
10 #ifndef SIG_UNBLOCK
11 #define SIG_UNBLOCK 1
12 #endif
13 #ifndef SIG_SETMASK
14 #define SIG_SETMASK 2
15 #endif
16
17 #ifndef __ASSEMBLY__
18 typedef void __signalfn_t(int);
19 typedef __signalfn_t __user *__sighandler_t;
20
21 typedef void __restorefn_t(void);
22 typedef __restorefn_t __user *__sigrestore_t;
23
24 #define SIG_DFL ((__force __sighandler_t)0)
25 #define SIG_IGN ((__force __sighandler_t)1)
26 #define SIG_ERR ((__force __sighandler_t)-1)
27 #endif
28
29 #endif