]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blame - include/uapi/asm-generic/signal-defs.h
math-emu/soft-fp.h: (_FP_ROUND_ZERO) cast 0 to void to fix warning
[mirror_ubuntu-bionic-kernel.git] / include / uapi / asm-generic / signal-defs.h
CommitLineData
6f52b16c 1/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
63b852a6
AB
2#ifndef __ASM_GENERIC_SIGNAL_DEFS_H
3#define __ASM_GENERIC_SIGNAL_DEFS_H
ad158879
DW
4
5#include <linux/compiler.h>
6
b1ecb4c3
AV
7#ifndef SIG_BLOCK
8#define SIG_BLOCK 0 /* for blocking signals */
9#endif
10#ifndef SIG_UNBLOCK
11#define SIG_UNBLOCK 1 /* for unblocking signals */
12#endif
13#ifndef SIG_SETMASK
14#define SIG_SETMASK 2 /* for setting the signal mask */
15#endif
16
17#ifndef __ASSEMBLY__
18typedef void __signalfn_t(int);
19typedef __signalfn_t __user *__sighandler_t;
20
21typedef void __restorefn_t(void);
22typedef __restorefn_t __user *__sigrestore_t;
23
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 */
27#endif
ad158879 28
63b852a6 29#endif /* __ASM_GENERIC_SIGNAL_DEFS_H */