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