Elliott Hughes | 180edef | 2023-11-02 00:08:05 +0000 | [diff] [blame] | 1 | /* |
| 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 Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 7 | #ifndef __ASM_GENERIC_SIGNAL_DEFS_H |
| 8 | #define __ASM_GENERIC_SIGNAL_DEFS_H |
| 9 | #include <linux/compiler.h> |
Christopher Ferris | 05667cd | 2021-02-16 16:01:34 -0800 | [diff] [blame] | 10 | #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 Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 35 | #ifndef SIG_BLOCK |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 36 | #define SIG_BLOCK 0 |
| 37 | #endif |
| 38 | #ifndef SIG_UNBLOCK |
| 39 | #define SIG_UNBLOCK 1 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 40 | #endif |
| 41 | #ifndef SIG_SETMASK |
| 42 | #define SIG_SETMASK 2 |
| 43 | #endif |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 44 | #ifndef __ASSEMBLY__ |
| 45 | typedef void __signalfn_t(int); |
Elliott Hughes | 0f0c18f | 2023-03-29 15:53:31 -0700 | [diff] [blame] | 46 | typedef __signalfn_t * __sighandler_t; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 47 | typedef void __restorefn_t(void); |
Elliott Hughes | 0f0c18f | 2023-03-29 15:53:31 -0700 | [diff] [blame] | 48 | typedef __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 Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 52 | #endif |
Nick Kralevich | a67e4de | 2013-01-14 11:28:26 -0800 | [diff] [blame] | 53 | #endif |