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