1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
2 #ifndef __ASM_GENERIC_SIGNAL_DEFS_H
3 #define __ASM_GENERIC_SIGNAL_DEFS_H
5 #include <linux/compiler.h>
8 #define SIG_BLOCK 0 /* for blocking signals */
11 #define SIG_UNBLOCK 1 /* for unblocking signals */
14 #define SIG_SETMASK 2 /* for setting the signal mask */
18 typedef void __signalfn_t(int);
19 typedef __signalfn_t __user
*__sighandler_t
;
21 typedef void __restorefn_t(void);
22 typedef __restorefn_t __user
*__sigrestore_t
;
24 #define SIG_DFL ((__force __sighandler_t)0) /* default signal handling */
25 #define SIG_IGN ((__force __sighandler_t)1) /* ignore signal */
26 #define SIG_ERR ((__force __sighandler_t)-1) /* error return from signal */
29 #endif /* __ASM_GENERIC_SIGNAL_DEFS_H */