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