1*6f52b16cSGreg Kroah-Hartman /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
28a1ab315SDavid Howells #ifndef __ASM_GENERIC_SIGNAL_DEFS_H
38a1ab315SDavid Howells #define __ASM_GENERIC_SIGNAL_DEFS_H
48a1ab315SDavid Howells 
58a1ab315SDavid Howells #include <linux/compiler.h>
68a1ab315SDavid Howells 
78a1ab315SDavid Howells #ifndef SIG_BLOCK
88a1ab315SDavid Howells #define SIG_BLOCK          0	/* for blocking signals */
98a1ab315SDavid Howells #endif
108a1ab315SDavid Howells #ifndef SIG_UNBLOCK
118a1ab315SDavid Howells #define SIG_UNBLOCK        1	/* for unblocking signals */
128a1ab315SDavid Howells #endif
138a1ab315SDavid Howells #ifndef SIG_SETMASK
148a1ab315SDavid Howells #define SIG_SETMASK        2	/* for setting the signal mask */
158a1ab315SDavid Howells #endif
168a1ab315SDavid Howells 
178a1ab315SDavid Howells #ifndef __ASSEMBLY__
188a1ab315SDavid Howells typedef void __signalfn_t(int);
198a1ab315SDavid Howells typedef __signalfn_t __user *__sighandler_t;
208a1ab315SDavid Howells 
218a1ab315SDavid Howells typedef void __restorefn_t(void);
228a1ab315SDavid Howells typedef __restorefn_t __user *__sigrestore_t;
238a1ab315SDavid Howells 
248a1ab315SDavid Howells #define SIG_DFL	((__force __sighandler_t)0)	/* default signal handling */
258a1ab315SDavid Howells #define SIG_IGN	((__force __sighandler_t)1)	/* ignore signal */
268a1ab315SDavid Howells #define SIG_ERR	((__force __sighandler_t)-1)	/* error return from signal */
278a1ab315SDavid Howells #endif
288a1ab315SDavid Howells 
298a1ab315SDavid Howells #endif /* __ASM_GENERIC_SIGNAL_DEFS_H */
30