| Elliott Hughes | abd6261 | 2013-11-08 11:45:48 -0800 | [diff] [blame] | 1 | /**************************************************************************** | 
|  | 2 | **************************************************************************** | 
|  | 3 | *** | 
|  | 4 | ***   This header was automatically generated from a Linux kernel header | 
|  | 5 | ***   of the same name, to make information necessary for userspace to | 
|  | 6 | ***   call into the kernel available to libc.  It contains only constants, | 
|  | 7 | ***   structures, and macros generated from the original header, and thus, | 
|  | 8 | ***   contains no copyrightable information. | 
|  | 9 | *** | 
|  | 10 | ***   To edit the content of this header, modify the corresponding | 
|  | 11 | ***   source file (e.g. under external/kernel-headers/original/) then | 
|  | 12 | ***   run bionic/libc/kernel/tools/update_all.py | 
|  | 13 | *** | 
|  | 14 | ***   Any manual change here will be lost the next time this script will | 
|  | 15 | ***   be run. You've been warned! | 
|  | 16 | *** | 
|  | 17 | **************************************************************************** | 
|  | 18 | ****************************************************************************/ | 
|  | 19 | #ifndef _UAPI_ASM_X86_SIGNAL_H | 
|  | 20 | #define _UAPI_ASM_X86_SIGNAL_H | 
|  | 21 | #ifndef __ASSEMBLY__ | 
|  | 22 | #include <linux/types.h> | 
| Elliott Hughes | abd6261 | 2013-11-08 11:45:48 -0800 | [diff] [blame] | 23 | #include <linux/time.h> | 
|  | 24 | #include <linux/compiler.h> | 
|  | 25 | struct siginfo; | 
| Elliott Hughes | 199346a | 2014-02-11 20:01:11 -0800 | [diff] [blame] | 26 | #define _KERNEL_NSIG 32 | 
| Elliott Hughes | abd6261 | 2013-11-08 11:45:48 -0800 | [diff] [blame] | 27 | typedef unsigned long sigset_t; | 
|  | 28 | #endif | 
|  | 29 | #define SIGHUP 1 | 
|  | 30 | #define SIGINT 2 | 
| Elliott Hughes | abd6261 | 2013-11-08 11:45:48 -0800 | [diff] [blame] | 31 | #define SIGQUIT 3 | 
|  | 32 | #define SIGILL 4 | 
|  | 33 | #define SIGTRAP 5 | 
|  | 34 | #define SIGABRT 6 | 
| Elliott Hughes | abd6261 | 2013-11-08 11:45:48 -0800 | [diff] [blame] | 35 | #define SIGIOT 6 | 
|  | 36 | #define SIGBUS 7 | 
|  | 37 | #define SIGFPE 8 | 
|  | 38 | #define SIGKILL 9 | 
| Elliott Hughes | abd6261 | 2013-11-08 11:45:48 -0800 | [diff] [blame] | 39 | #define SIGUSR1 10 | 
|  | 40 | #define SIGSEGV 11 | 
|  | 41 | #define SIGUSR2 12 | 
|  | 42 | #define SIGPIPE 13 | 
| Elliott Hughes | abd6261 | 2013-11-08 11:45:48 -0800 | [diff] [blame] | 43 | #define SIGALRM 14 | 
|  | 44 | #define SIGTERM 15 | 
|  | 45 | #define SIGSTKFLT 16 | 
|  | 46 | #define SIGCHLD 17 | 
| Elliott Hughes | abd6261 | 2013-11-08 11:45:48 -0800 | [diff] [blame] | 47 | #define SIGCONT 18 | 
|  | 48 | #define SIGSTOP 19 | 
|  | 49 | #define SIGTSTP 20 | 
|  | 50 | #define SIGTTIN 21 | 
| Elliott Hughes | abd6261 | 2013-11-08 11:45:48 -0800 | [diff] [blame] | 51 | #define SIGTTOU 22 | 
|  | 52 | #define SIGURG 23 | 
|  | 53 | #define SIGXCPU 24 | 
|  | 54 | #define SIGXFSZ 25 | 
| Elliott Hughes | abd6261 | 2013-11-08 11:45:48 -0800 | [diff] [blame] | 55 | #define SIGVTALRM 26 | 
|  | 56 | #define SIGPROF 27 | 
|  | 57 | #define SIGWINCH 28 | 
|  | 58 | #define SIGIO 29 | 
| Elliott Hughes | abd6261 | 2013-11-08 11:45:48 -0800 | [diff] [blame] | 59 | #define SIGPOLL SIGIO | 
|  | 60 | #define SIGPWR 30 | 
|  | 61 | #define SIGSYS 31 | 
|  | 62 | #define SIGUNUSED 31 | 
| Elliott Hughes | 0990d4f | 2014-04-30 09:45:40 -0700 | [diff] [blame] | 63 | #define __SIGRTMIN 32 | 
|  | 64 | #define __SIGRTMAX _KERNEL__NSIG | 
| Elliott Hughes | abd6261 | 2013-11-08 11:45:48 -0800 | [diff] [blame] | 65 | #define SA_NOCLDSTOP 0x00000001u | 
|  | 66 | #define SA_NOCLDWAIT 0x00000002u | 
| Elliott Hughes | abd6261 | 2013-11-08 11:45:48 -0800 | [diff] [blame] | 67 | #define SA_SIGINFO 0x00000004u | 
|  | 68 | #define SA_ONSTACK 0x08000000u | 
|  | 69 | #define SA_RESTART 0x10000000u | 
|  | 70 | #define SA_NODEFER 0x40000000u | 
| Elliott Hughes | abd6261 | 2013-11-08 11:45:48 -0800 | [diff] [blame] | 71 | #define SA_RESETHAND 0x80000000u | 
|  | 72 | #define SA_NOMASK SA_NODEFER | 
|  | 73 | #define SA_ONESHOT SA_RESETHAND | 
|  | 74 | #define SA_RESTORER 0x04000000 | 
| Elliott Hughes | abd6261 | 2013-11-08 11:45:48 -0800 | [diff] [blame] | 75 | #define MINSIGSTKSZ 2048 | 
|  | 76 | #define SIGSTKSZ 8192 | 
|  | 77 | #include <asm-generic/signal-defs.h> | 
|  | 78 | #ifndef __ASSEMBLY__ | 
| Elliott Hughes | abd6261 | 2013-11-08 11:45:48 -0800 | [diff] [blame] | 79 | #ifdef __i386__ | 
|  | 80 | struct sigaction { | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 81 | union { | 
|  | 82 | __sighandler_t _sa_handler; | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 83 | void(* _sa_sigaction) (int, struct siginfo *, void *); | 
|  | 84 | } _u; | 
|  | 85 | sigset_t sa_mask; | 
|  | 86 | unsigned long sa_flags; | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 87 | void(* sa_restorer) (void); | 
| Elliott Hughes | abd6261 | 2013-11-08 11:45:48 -0800 | [diff] [blame] | 88 | }; | 
|  | 89 | #define sa_handler _u._sa_handler | 
|  | 90 | #define sa_sigaction _u._sa_sigaction | 
| Elliott Hughes | abd6261 | 2013-11-08 11:45:48 -0800 | [diff] [blame] | 91 | #else | 
|  | 92 | struct sigaction { | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 93 | __sighandler_t sa_handler; | 
|  | 94 | unsigned long sa_flags; | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 95 | __sigrestore_t sa_restorer; | 
|  | 96 | sigset_t sa_mask; | 
| Elliott Hughes | abd6261 | 2013-11-08 11:45:48 -0800 | [diff] [blame] | 97 | }; | 
|  | 98 | #endif | 
| Elliott Hughes | abd6261 | 2013-11-08 11:45:48 -0800 | [diff] [blame] | 99 | typedef struct sigaltstack { | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 100 | void __user * ss_sp; | 
|  | 101 | int ss_flags; | 
|  | 102 | size_t ss_size; | 
| Elliott Hughes | abd6261 | 2013-11-08 11:45:48 -0800 | [diff] [blame] | 103 | } stack_t; | 
|  | 104 | #endif | 
|  | 105 | #endif |