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 | a6b53f0 | 2013-11-06 15:51:05 -0800 | [diff] [blame] | 7 | #ifndef _UAPI_ASMARM_SIGNAL_H |
| 8 | #define _UAPI_ASMARM_SIGNAL_H |
| 9 | #include <linux/types.h> |
| 10 | struct siginfo; |
Elliott Hughes | 199346a | 2014-02-11 20:01:11 -0800 | [diff] [blame] | 11 | #define _KERNEL_NSIG 32 |
Ben Cheng | a6b53f0 | 2013-11-06 15:51:05 -0800 | [diff] [blame] | 12 | typedef unsigned long sigset_t; |
| 13 | #define SIGHUP 1 |
| 14 | #define SIGINT 2 |
Ben Cheng | a6b53f0 | 2013-11-06 15:51:05 -0800 | [diff] [blame] | 15 | #define SIGQUIT 3 |
| 16 | #define SIGILL 4 |
| 17 | #define SIGTRAP 5 |
| 18 | #define SIGABRT 6 |
Ben Cheng | a6b53f0 | 2013-11-06 15:51:05 -0800 | [diff] [blame] | 19 | #define SIGIOT 6 |
| 20 | #define SIGBUS 7 |
| 21 | #define SIGFPE 8 |
| 22 | #define SIGKILL 9 |
Ben Cheng | a6b53f0 | 2013-11-06 15:51:05 -0800 | [diff] [blame] | 23 | #define SIGUSR1 10 |
| 24 | #define SIGSEGV 11 |
| 25 | #define SIGUSR2 12 |
| 26 | #define SIGPIPE 13 |
Ben Cheng | a6b53f0 | 2013-11-06 15:51:05 -0800 | [diff] [blame] | 27 | #define SIGALRM 14 |
| 28 | #define SIGTERM 15 |
| 29 | #define SIGSTKFLT 16 |
| 30 | #define SIGCHLD 17 |
Ben Cheng | a6b53f0 | 2013-11-06 15:51:05 -0800 | [diff] [blame] | 31 | #define SIGCONT 18 |
| 32 | #define SIGSTOP 19 |
| 33 | #define SIGTSTP 20 |
| 34 | #define SIGTTIN 21 |
Ben Cheng | a6b53f0 | 2013-11-06 15:51:05 -0800 | [diff] [blame] | 35 | #define SIGTTOU 22 |
| 36 | #define SIGURG 23 |
| 37 | #define SIGXCPU 24 |
| 38 | #define SIGXFSZ 25 |
Ben Cheng | a6b53f0 | 2013-11-06 15:51:05 -0800 | [diff] [blame] | 39 | #define SIGVTALRM 26 |
| 40 | #define SIGPROF 27 |
| 41 | #define SIGWINCH 28 |
| 42 | #define SIGIO 29 |
Ben Cheng | a6b53f0 | 2013-11-06 15:51:05 -0800 | [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 |
| 48 | #define __SIGRTMAX _KERNEL__NSIG |
Ben Cheng | a6b53f0 | 2013-11-06 15:51:05 -0800 | [diff] [blame] | 49 | #define SIGSWI 32 |
Ben Cheng | a6b53f0 | 2013-11-06 15:51:05 -0800 | [diff] [blame] | 50 | #define SA_THIRTYTWO 0x02000000 |
| 51 | #define SA_RESTORER 0x04000000 |
Ben Cheng | a6b53f0 | 2013-11-06 15:51:05 -0800 | [diff] [blame] | 52 | #define MINSIGSTKSZ 2048 |
| 53 | #define SIGSTKSZ 8192 |
Ben Cheng | a6b53f0 | 2013-11-06 15:51:05 -0800 | [diff] [blame] | 54 | #include <asm-generic/signal-defs.h> |
Elliott Hughes | df53b16 | 2023-11-28 14:20:43 -0800 | [diff] [blame] | 55 | struct __kernel_sigaction { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 56 | union { |
| 57 | __sighandler_t _sa_handler; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 58 | void(* _sa_sigaction) (int, struct siginfo *, void *); |
| 59 | } _u; |
| 60 | sigset_t sa_mask; |
| 61 | unsigned long sa_flags; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 62 | void(* sa_restorer) (void); |
Ben Cheng | a6b53f0 | 2013-11-06 15:51:05 -0800 | [diff] [blame] | 63 | }; |
| 64 | #define sa_handler _u._sa_handler |
| 65 | #define sa_sigaction _u._sa_sigaction |
Ben Cheng | a6b53f0 | 2013-11-06 15:51:05 -0800 | [diff] [blame] | 66 | typedef struct sigaltstack { |
Elliott Hughes | 0f0c18f | 2023-03-29 15:53:31 -0700 | [diff] [blame] | 67 | void * ss_sp; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 68 | int ss_flags; |
Christopher Ferris | 10a76e6 | 2022-06-08 13:31:52 -0700 | [diff] [blame] | 69 | __kernel_size_t ss_size; |
Ben Cheng | a6b53f0 | 2013-11-06 15:51:05 -0800 | [diff] [blame] | 70 | } stack_t; |
| 71 | #endif |