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 _UAPI__ASM_GENERIC_SIGNAL_H |
| 8 | #define _UAPI__ASM_GENERIC_SIGNAL_H |
| 9 | #include <linux/types.h> |
Elliott Hughes | 199346a | 2014-02-11 20:01:11 -0800 | [diff] [blame] | 10 | #define _KERNEL__NSIG 64 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 11 | #define _NSIG_BPW __BITS_PER_LONG |
Elliott Hughes | 199346a | 2014-02-11 20:01:11 -0800 | [diff] [blame] | 12 | #define _NSIG_WORDS (_KERNEL__NSIG / _NSIG_BPW) |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 13 | #define SIGHUP 1 |
| 14 | #define SIGINT 2 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 15 | #define SIGQUIT 3 |
| 16 | #define SIGILL 4 |
| 17 | #define SIGTRAP 5 |
| 18 | #define SIGABRT 6 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 19 | #define SIGIOT 6 |
| 20 | #define SIGBUS 7 |
| 21 | #define SIGFPE 8 |
| 22 | #define SIGKILL 9 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 23 | #define SIGUSR1 10 |
| 24 | #define SIGSEGV 11 |
| 25 | #define SIGUSR2 12 |
| 26 | #define SIGPIPE 13 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 27 | #define SIGALRM 14 |
| 28 | #define SIGTERM 15 |
| 29 | #define SIGSTKFLT 16 |
| 30 | #define SIGCHLD 17 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 31 | #define SIGCONT 18 |
| 32 | #define SIGSTOP 19 |
| 33 | #define SIGTSTP 20 |
| 34 | #define SIGTTIN 21 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 35 | #define SIGTTOU 22 |
| 36 | #define SIGURG 23 |
| 37 | #define SIGXCPU 24 |
| 38 | #define SIGXFSZ 25 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 39 | #define SIGVTALRM 26 |
| 40 | #define SIGPROF 27 |
| 41 | #define SIGWINCH 28 |
| 42 | #define SIGIO 29 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 43 | #define SIGPOLL SIGIO |
| 44 | #define SIGPWR 30 |
| 45 | #define SIGSYS 31 |
| 46 | #define SIGUNUSED 31 |
Elliott Hughes | 0990d4f | 2014-04-30 09:45:40 -0700 | [diff] [blame] | 47 | #define __SIGRTMIN 32 |
Elliott Hughes | fddbafd | 2014-05-01 10:17:27 -0700 | [diff] [blame] | 48 | #ifndef __SIGRTMAX |
Elliott Hughes | 0990d4f | 2014-04-30 09:45:40 -0700 | [diff] [blame] | 49 | #define __SIGRTMAX _KERNEL__NSIG |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 50 | #endif |
Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 51 | #if !defined(MINSIGSTKSZ) || !defined(SIGSTKSZ) |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 52 | #define MINSIGSTKSZ 2048 |
| 53 | #define SIGSTKSZ 8192 |
Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 54 | #endif |
| 55 | #ifndef __ASSEMBLY__ |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 56 | typedef struct { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 57 | unsigned long sig[_NSIG_WORDS]; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 58 | } sigset_t; |
| 59 | typedef unsigned long old_sigset_t; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 60 | #include <asm-generic/signal-defs.h> |
| 61 | #ifdef SA_RESTORER |
| 62 | #define __ARCH_HAS_SA_RESTORER |
| 63 | #endif |
Elliott Hughes | df53b16 | 2023-11-28 14:20:43 -0800 | [diff] [blame] | 64 | struct __kernel_sigaction { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 65 | __sighandler_t sa_handler; |
| 66 | unsigned long sa_flags; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 67 | #ifdef SA_RESTORER |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 68 | __sigrestore_t sa_restorer; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 69 | #endif |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 70 | sigset_t sa_mask; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 71 | }; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 72 | typedef struct sigaltstack { |
Elliott Hughes | 0f0c18f | 2023-03-29 15:53:31 -0700 | [diff] [blame] | 73 | void * ss_sp; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 74 | int ss_flags; |
Christopher Ferris | 10a76e6 | 2022-06-08 13:31:52 -0700 | [diff] [blame] | 75 | __kernel_size_t ss_size; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 76 | } stack_t; |
| 77 | #endif |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 78 | #endif |