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_RESTORER 0x04000000
66 #define MINSIGSTKSZ 2048
67 #define SIGSTKSZ 8192
68 #include <asm-generic/signal-defs.h>
69 #ifndef __ASSEMBLY__
70 #ifdef __i386__
71 struct sigaction {
72   union {
73     __sighandler_t _sa_handler;
74     void(* _sa_sigaction) (int, struct siginfo *, void *);
75   } _u;
76   sigset_t sa_mask;
77   unsigned long sa_flags;
78   void(* sa_restorer) (void);
79 };
80 #define sa_handler _u._sa_handler
81 #define sa_sigaction _u._sa_sigaction
82 #else
83 struct sigaction {
84   __sighandler_t sa_handler;
85   unsigned long sa_flags;
86   __sigrestore_t sa_restorer;
87   sigset_t sa_mask;
88 };
89 #endif
90 typedef struct sigaltstack {
91   void __user * ss_sp;
92   int ss_flags;
93   size_t ss_size;
94 } stack_t;
95 #endif
96 #endif
97