1 /* 2 * This header was generated from the Linux kernel headers by update_headers.py, 3 * to provide necessary information from kernel to userspace, such as constants, 4 * structures, and macros, and thus, contains no copyrightable information. 5 */ 6 #ifndef __ASM_GENERIC_SIGNAL_DEFS_H 7 #define __ASM_GENERIC_SIGNAL_DEFS_H 8 #include <linux/compiler.h> 9 #ifndef SIG_BLOCK 10 #define SIG_BLOCK 0 11 #endif 12 #ifndef SIG_UNBLOCK 13 #define SIG_UNBLOCK 1 14 #endif 15 #ifndef SIG_SETMASK 16 #define SIG_SETMASK 2 17 #endif 18 #ifndef __ASSEMBLY__ 19 typedef void __signalfn_t(int); 20 typedef __signalfn_t __user *__sighandler_t; 21 typedef void __restorefn_t(void); 22 typedef __restorefn_t __user *__sigrestore_t; 23 #define SIG_DFL ((__force __sighandler_t)0) 24 #define SIG_IGN ((__force __sighandler_t)1) 25 #define SIG_ERR ((__force __sighandler_t)-1) 26 #endif 27 #endif 28