• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /****************************************************************************
2   Derived from gdk/platforms/android-14/arch-arm/usr/include/asm/signal.h
3  ****************************************************************************
4  ***
5  ***   This header was ORIGINALLY automatically generated from a Linux kernel
6  ***   header of the same name, to make information necessary for userspace to
7  ***   call into the kernel available to libc.  It contains only constants,
8  ***   structures, and macros generated from the original header, and thus,
9  ***   contains no copyrightable information.
10  ***
11  ****************************************************************************
12  ****************************************************************************/
13 #ifndef _ASMARM_SIGNAL_PORTABLE_H
14 #define _ASMARM_SIGNAL_PORTABLE_H
15 
16 struct siginfo;                         /* TODO: Change to siginfo_portable */
17 
18 #define NSIG_PORTABLE 64
19 typedef unsigned long sigset_portable_t;
20 
21 #define SIGHUP_PORTABLE 1
22 #define SIGINT_PORTABLE 2
23 #define SIGQUIT_PORTABLE 3
24 #define SIGILL_PORTABLE 4
25 #define SIGTRAP_PORTABLE 5
26 #define SIGABRT_PORTABLE 6
27 #define SIGIOT_PORTABLE 6
28 #define SIGBUS_PORTABLE 7
29 #define SIGFPE_PORTABLE 8
30 #define SIGKILL_PORTABLE 9
31 #define SIGUSR1_PORTABLE 10
32 #define SIGSEGV_PORTABLE 11
33 #define SIGUSR2_PORTABLE 12
34 #define SIGPIPE_PORTABLE 13
35 #define SIGALRM_PORTABLE 14
36 #define SIGTERM_PORTABLE 15
37 #define SIGSTKFLT_PORTABLE 16
38 #define SIGCHLD_PORTABLE 17
39 #define SIGCONT_PORTABLE 18
40 #define SIGSTOP_PORTABLE 19
41 #define SIGTSTP_PORTABLE 20
42 #define SIGTTIN_PORTABLE 21
43 #define SIGTTOU_PORTABLE 22
44 #define SIGURG_PORTABLE 23
45 #define SIGXCPU_PORTABLE 24
46 #define SIGXFSZ_PORTABLE 25
47 #define SIGVTALRM_PORTABLE 26
48 #define SIGPROF_PORTABLE 27
49 #define SIGWINCH_PORTABLE 28
50 #define SIGIO_PORTABLE 29
51 #define SIGPOLL_PORTABLE SIGIO
52 
53 #define SIGPWR_PORTABLE 30
54 #define SIGSYS_PORTABLE 31
55 #define SIGUNUSED_PORTABLE 31
56 
57 #define SIGSWI_PORTABLE 32
58 #define SIGRTMIN_PORTABLE 32
59 
60 #define SIGRT_1_PORTABLE (SIGRTMIN_PORTABLE + 1)
61 #define SIGRT_2_PORTABLE (SIGRTMIN_PORTABLE + 2)
62 #define SIGRT_3_PORTABLE (SIGRTMIN_PORTABLE + 3)
63 #define SIGRT_4_PORTABLE (SIGRTMIN_PORTABLE + 4)
64 #define SIGRT_5_PORTABLE (SIGRTMIN_PORTABLE + 5)
65 #define SIGRT_5_PORTABLE (SIGRTMIN_PORTABLE + 5)
66 #define SIGRT_6_PORTABLE (SIGRTMIN_PORTABLE + 6)
67 #define SIGRT_7_PORTABLE (SIGRTMIN_PORTABLE + 7)
68 #define SIGRT_8_PORTABLE (SIGRTMIN_PORTABLE + 8)
69 #define SIGRT_9_PORTABLE (SIGRTMIN_PORTABLE + 9)
70 #define SIGRT_10_PORTABLE (SIGRTMIN_PORTABLE + 10)
71 #define SIGRT_11_PORTABLE (SIGRTMIN_PORTABLE + 11)
72 #define SIGRT_12_PORTABLE (SIGRTMIN_PORTABLE + 12)
73 #define SIGRT_13_PORTABLE (SIGRTMIN_PORTABLE + 13)
74 #define SIGRT_14_PORTABLE (SIGRTMIN_PORTABLE + 14)
75 #define SIGRT_15_PORTABLE (SIGRTMIN_PORTABLE + 15)
76 #define SIGRT_15_PORTABLE (SIGRTMIN_PORTABLE + 15)
77 #define SIGRT_16_PORTABLE (SIGRTMIN_PORTABLE + 16)
78 #define SIGRT_17_PORTABLE (SIGRTMIN_PORTABLE + 17)
79 #define SIGRT_18_PORTABLE (SIGRTMIN_PORTABLE + 18)
80 #define SIGRT_19_PORTABLE (SIGRTMIN_PORTABLE + 19)
81 #define SIGRT_20_PORTABLE (SIGRTMIN_PORTABLE + 20)
82 #define SIGRT_20_PORTABLE (SIGRTMIN_PORTABLE + 20)
83 #define SIGRT_21_PORTABLE (SIGRTMIN_PORTABLE + 21)
84 #define SIGRT_22_PORTABLE (SIGRTMIN_PORTABLE + 22)
85 #define SIGRT_23_PORTABLE (SIGRTMIN_PORTABLE + 23)
86 #define SIGRT_24_PORTABLE (SIGRTMIN_PORTABLE + 24)
87 #define SIGRT_25_PORTABLE (SIGRTMIN_PORTABLE + 25)
88 #define SIGRT_25_PORTABLE (SIGRTMIN_PORTABLE + 25)
89 #define SIGRT_26_PORTABLE (SIGRTMIN_PORTABLE + 26)
90 #define SIGRT_27_PORTABLE (SIGRTMIN_PORTABLE + 27)
91 #define SIGRT_28_PORTABLE (SIGRTMIN_PORTABLE + 28)
92 #define SIGRT_29_PORTABLE (SIGRTMIN_PORTABLE + 29)
93 #define SIGRT_30_PORTABLE (SIGRTMIN_PORTABLE + 30)
94 #define SIGRT_31_PORTABLE (SIGRTMIN_PORTABLE + 31)
95 #define SIGRT_32_PORTABLE (SIGRTMIN_PORTABLE + 32)
96 
97 #define SIGRTMAX_PORTABLE NSIG_PORTABLE
98 
99 /*
100  * Define MIPS/Native Real Time Signal Names for debugging.
101  * NOTE:
102  *    Currently only defining the 32 RT signals that the
103  *    lib-portable application can interact with. MIPS has
104  *    an additional 63 signals.
105  */
106 
107 #ifndef __SIGRTMIN
108 #define __SIGRTMIN SIGRTMIN
109 #endif
110 #ifndef __SIGRTMAX
111 #define __SIGRTMAX SIGRTMAX
112 #endif
113 
114 #define SIGRT_1 (__SIGRTMIN + 1)
115 #define SIGRT_2 (__SIGRTMIN + 2)
116 #define SIGRT_3 (__SIGRTMIN + 3)
117 #define SIGRT_4 (__SIGRTMIN + 4)
118 #define SIGRT_5 (__SIGRTMIN + 5)
119 #define SIGRT_5 (__SIGRTMIN + 5)
120 #define SIGRT_6 (__SIGRTMIN + 6)
121 #define SIGRT_7 (__SIGRTMIN + 7)
122 #define SIGRT_8 (__SIGRTMIN + 8)
123 #define SIGRT_9 (__SIGRTMIN + 9)
124 #define SIGRT_10 (__SIGRTMIN + 10)
125 #define SIGRT_11 (__SIGRTMIN + 11)
126 #define SIGRT_12 (__SIGRTMIN + 12)
127 #define SIGRT_13 (__SIGRTMIN + 13)
128 #define SIGRT_14 (__SIGRTMIN + 14)
129 #define SIGRT_15 (__SIGRTMIN + 15)
130 #define SIGRT_15 (__SIGRTMIN + 15)
131 #define SIGRT_16 (__SIGRTMIN + 16)
132 #define SIGRT_17 (__SIGRTMIN + 17)
133 #define SIGRT_18 (__SIGRTMIN + 18)
134 #define SIGRT_19 (__SIGRTMIN + 19)
135 #define SIGRT_20 (__SIGRTMIN + 20)
136 #define SIGRT_20 (__SIGRTMIN + 20)
137 #define SIGRT_21 (__SIGRTMIN + 21)
138 #define SIGRT_22 (__SIGRTMIN + 22)
139 #define SIGRT_23 (__SIGRTMIN + 23)
140 #define SIGRT_24 (__SIGRTMIN + 24)
141 #define SIGRT_25 (__SIGRTMIN + 25)
142 #define SIGRT_25 (__SIGRTMIN + 25)
143 #define SIGRT_26 (__SIGRTMIN + 26)
144 #define SIGRT_27 (__SIGRTMIN + 27)
145 #define SIGRT_28 (__SIGRTMIN + 28)
146 #define SIGRT_29 (__SIGRTMIN + 29)
147 #define SIGRT_30 (__SIGRTMIN + 30)
148 #define SIGRT_31 (__SIGRTMIN + 31)
149 #define SIGRT_32 (__SIGRTMIN + 32)
150 /*
151  * NOTE: Native signals SIGRT_33 ... SIGRTMAX
152  * can't be used by a lib-portable application.
153  */
154 
155 #define SA_NOCLDSTOP_PORTABLE   0x00000001
156 #define SA_NOCLDWAIT_PORTABLE   0x00000002
157 #define SA_SIGINFO_PORTABLE     0x00000004
158 #define SA_THIRTYTWO_PORTABLE   0x02000000
159 #define SA_RESTORER_PORTABLE    0x04000000
160 #define SA_ONSTACK_PORTABLE     0x08000000
161 #define SA_RESTART_PORTABLE     0x10000000
162 #define SA_NODEFER_PORTABLE     0x40000000
163 #define SA_RESETHAND_PORTABLE   0x80000000
164 
165 #define SA_NOMASK_PORTSBLE      SA_NODEFER_PORTABLE
166 #define SA_ONESHOT_PORTABLE     SA_RESETHAND_PORABLE
167 
168 
169 #include <asm-generic/signal_portable.h>
170 
171 typedef __signalfn_t __user *__sighandler_portable_t;
172 typedef void (*__sigaction_handler_portable_t)(int, struct siginfo *, void *);
173 
174 struct sigaction_portable {
175  union {
176    __sighandler_portable_t        _sa_handler;
177    __sigaction_handler_portable_t _sa_sigaction;
178  } _u;
179  sigset_portable_t sa_mask;
180  unsigned long sa_flags;
181  void (*sa_restorer)(void);
182 };
183 
184 #define sa_handler_portable     _u._sa_handler
185 #define sa_sigaction_portable   _u._sa_sigaction
186 
187 typedef struct sigaltstack_portable {
188  void __user *ss_sp;
189  int ss_flags;
190  size_t ss_size;
191 } portable_stack_t;
192 
193 #endif
194