blob: a1bfa2fc8e1170062da0bd88105c5280f226b282 [file] [log] [blame]
Elliott Hughes180edef2023-11-02 00:08:05 +00001/*
2 * This file is auto-generated. Modifications will be lost.
3 *
4 * See https://android.googlesource.com/platform/bionic/+/master/libc/kernel/
5 * for more information.
6 */
Ben Cheng655a7c02013-10-16 16:09:24 -07007#ifndef __ASM_GENERIC_SIGNAL_DEFS_H
8#define __ASM_GENERIC_SIGNAL_DEFS_H
9#include <linux/compiler.h>
Christopher Ferris05667cd2021-02-16 16:01:34 -080010#ifndef SA_NOCLDSTOP
11#define SA_NOCLDSTOP 0x00000001
12#endif
13#ifndef SA_NOCLDWAIT
14#define SA_NOCLDWAIT 0x00000002
15#endif
16#ifndef SA_SIGINFO
17#define SA_SIGINFO 0x00000004
18#endif
19#define SA_UNSUPPORTED 0x00000400
20#define SA_EXPOSE_TAGBITS 0x00000800
21#ifndef SA_ONSTACK
22#define SA_ONSTACK 0x08000000
23#endif
24#ifndef SA_RESTART
25#define SA_RESTART 0x10000000
26#endif
27#ifndef SA_NODEFER
28#define SA_NODEFER 0x40000000
29#endif
30#ifndef SA_RESETHAND
31#define SA_RESETHAND 0x80000000
32#endif
33#define SA_NOMASK SA_NODEFER
34#define SA_ONESHOT SA_RESETHAND
Ben Cheng655a7c02013-10-16 16:09:24 -070035#ifndef SIG_BLOCK
Ben Cheng655a7c02013-10-16 16:09:24 -070036#define SIG_BLOCK 0
37#endif
38#ifndef SIG_UNBLOCK
39#define SIG_UNBLOCK 1
Ben Cheng655a7c02013-10-16 16:09:24 -070040#endif
41#ifndef SIG_SETMASK
42#define SIG_SETMASK 2
43#endif
Ben Cheng655a7c02013-10-16 16:09:24 -070044#ifndef __ASSEMBLY__
45typedef void __signalfn_t(int);
Elliott Hughes0f0c18f2023-03-29 15:53:31 -070046typedef __signalfn_t * __sighandler_t;
Ben Cheng655a7c02013-10-16 16:09:24 -070047typedef void __restorefn_t(void);
Elliott Hughes0f0c18f2023-03-29 15:53:31 -070048typedef __restorefn_t * __sigrestore_t;
49#define SIG_DFL (( __sighandler_t) 0)
50#define SIG_IGN (( __sighandler_t) 1)
51#define SIG_ERR (( __sighandler_t) - 1)
Ben Cheng655a7c02013-10-16 16:09:24 -070052#endif
Nick Kralevicha67e4de2013-01-14 11:28:26 -080053#endif