1 /* 2 * This header was generated from the Linux kernel headers by update_headers.py, 3 * to provide necessary information from kernel to userspace, such as constants, 4 * structures, and macros, and thus, contains no copyrightable information. 5 */ 6 #ifndef _UAPI__ASM_GENERIC_SIGNAL_H 7 #define _UAPI__ASM_GENERIC_SIGNAL_H 8 #include <linux/types.h> 9 #define _KERNEL__NSIG 64 10 #define _NSIG_BPW __BITS_PER_LONG 11 #define _NSIG_WORDS (_KERNEL__NSIG / _NSIG_BPW) 12 #define SIGHUP 1 13 #define SIGINT 2 14 #define SIGQUIT 3 15 #define SIGILL 4 16 #define SIGTRAP 5 17 #define SIGABRT 6 18 #define SIGIOT 6 19 #define SIGBUS 7 20 #define SIGFPE 8 21 #define SIGKILL 9 22 #define SIGUSR1 10 23 #define SIGSEGV 11 24 #define SIGUSR2 12 25 #define SIGPIPE 13 26 #define SIGALRM 14 27 #define SIGTERM 15 28 #define SIGSTKFLT 16 29 #define SIGCHLD 17 30 #define SIGCONT 18 31 #define SIGSTOP 19 32 #define SIGTSTP 20 33 #define SIGTTIN 21 34 #define SIGTTOU 22 35 #define SIGURG 23 36 #define SIGXCPU 24 37 #define SIGXFSZ 25 38 #define SIGVTALRM 26 39 #define SIGPROF 27 40 #define SIGWINCH 28 41 #define SIGIO 29 42 #define SIGPOLL SIGIO 43 #define SIGPWR 30 44 #define SIGSYS 31 45 #define SIGUNUSED 31 46 #define __SIGRTMIN 32 47 #ifndef __SIGRTMAX 48 #define __SIGRTMAX _KERNEL__NSIG 49 #endif 50 #define SA_NOCLDSTOP 0x00000001 51 #define SA_NOCLDWAIT 0x00000002 52 #define SA_SIGINFO 0x00000004 53 #define SA_ONSTACK 0x08000000 54 #define SA_RESTART 0x10000000 55 #define SA_NODEFER 0x40000000 56 #define SA_RESETHAND 0x80000000 57 #define SA_NOMASK SA_NODEFER 58 #define SA_ONESHOT SA_RESETHAND 59 #if !defined MINSIGSTKSZ || !defined SIGSTKSZ 60 #define MINSIGSTKSZ 2048 61 #define SIGSTKSZ 8192 62 #endif 63 #ifndef __ASSEMBLY__ 64 typedef struct { 65 unsigned long sig[_NSIG_WORDS]; 66 } sigset_t; 67 typedef unsigned long old_sigset_t; 68 #include <asm-generic/signal-defs.h> 69 #ifdef SA_RESTORER 70 #define __ARCH_HAS_SA_RESTORER 71 #endif 72 #ifndef __KERNEL__ 73 struct sigaction { 74 __sighandler_t sa_handler; 75 unsigned long sa_flags; 76 #ifdef SA_RESTORER 77 __sigrestore_t sa_restorer; 78 #endif 79 sigset_t sa_mask; 80 }; 81 #endif 82 typedef struct sigaltstack { 83 void __user *ss_sp; 84 int ss_flags; 85 size_t ss_size; 86 } stack_t; 87 #endif 88 #endif 89