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