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