1
2 #ifndef _UAPI_ASMAXP_SIGNAL_H
3 #define _UAPI_ASMAXP_SIGNAL_H
4
5 #include <linux/types.h>
6
7
8 struct siginfo;
9
10 #ifndef __KERNEL__
11
12
13 #define NSIG 32
14 typedef unsigned long sigset_t;
15
16 #endif
17
18
19
20
21
22
23 #define SIGHUP 1
24 #define SIGINT 2
25 #define SIGQUIT 3
26 #define SIGILL 4
27 #define SIGTRAP 5
28 #define SIGABRT 6
29 #define SIGEMT 7
30 #define SIGFPE 8
31 #define SIGKILL 9
32 #define SIGBUS 10
33 #define SIGSEGV 11
34 #define SIGSYS 12
35 #define SIGPIPE 13
36 #define SIGALRM 14
37 #define SIGTERM 15
38 #define SIGURG 16
39 #define SIGSTOP 17
40 #define SIGTSTP 18
41 #define SIGCONT 19
42 #define SIGCHLD 20
43 #define SIGTTIN 21
44 #define SIGTTOU 22
45 #define SIGIO 23
46 #define SIGXCPU 24
47 #define SIGXFSZ 25
48 #define SIGVTALRM 26
49 #define SIGPROF 27
50 #define SIGWINCH 28
51 #define SIGINFO 29
52 #define SIGUSR1 30
53 #define SIGUSR2 31
54
55 #define SIGPOLL SIGIO
56 #define SIGPWR SIGINFO
57 #define SIGIOT SIGABRT
58
59
60 #define SIGRTMIN 32
61 #define SIGRTMAX _NSIG
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77 #define SA_ONSTACK 0x00000001
78 #define SA_RESTART 0x00000002
79 #define SA_NOCLDSTOP 0x00000004
80 #define SA_NODEFER 0x00000008
81 #define SA_RESETHAND 0x00000010
82 #define SA_NOCLDWAIT 0x00000020
83 #define SA_SIGINFO 0x00000040
84
85 #define SA_ONESHOT SA_RESETHAND
86 #define SA_NOMASK SA_NODEFER
87
88 #define MINSIGSTKSZ 4096
89 #define SIGSTKSZ 16384
90
91 #define SIG_BLOCK 1
92 #define SIG_UNBLOCK 2
93 #define SIG_SETMASK 3
94
95 #include <asm-generic/signal-defs.h>
96
97 #ifndef __KERNEL__
98
99
100 struct sigaction {
101 union {
102 __sighandler_t _sa_handler;
103 void (*_sa_sigaction)(int, struct siginfo *, void *);
104 } _u;
105 sigset_t sa_mask;
106 int sa_flags;
107 };
108
109 #define sa_handler _u._sa_handler
110 #define sa_sigaction _u._sa_sigaction
111
112 #endif
113
114 typedef struct sigaltstack {
115 void __user *ss_sp;
116 int ss_flags;
117 size_t ss_size;
118 } stack_t;
119
120
121
122
123
124 struct sigstack {
125 void __user *ss_sp;
126 int ss_onstack;
127 };
128
129
130 #endif