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