]>
Commit | Line | Data |
---|---|---|
cce855bc | 1 | /* This file is used when cross-compiling for the CYGWIN32 environment on |
f73dda09 | 2 | a Unix machine. It gets copied to signames.h in the build directory. */ |
cce855bc JA |
3 | #include <sys/types.h> |
4 | #include <signal.h> | |
5 | ||
6 | #ifndef __GNUC__ | |
7 | # error cross compiling requires gcc | |
8 | #endif | |
9 | ||
10 | /* A translation list so we can be polite to our users. Use gcc | |
11 | labelled initializers to set up the array. Note that some entries | |
12 | might wind up being NULL. */ | |
13 | ||
f73dda09 | 14 | char *signal_names[NSIG + 3] = { |
cce855bc JA |
15 | [0] "EXIT", |
16 | ||
17 | #ifdef SIGLOST | |
18 | [SIGLOST] "SIGLOST", | |
19 | #endif | |
20 | ||
21 | #ifdef SIGMSG | |
22 | [SIGMSG] "SIGMSG", | |
23 | #endif | |
24 | ||
25 | #ifdef SIGDANGER | |
26 | [SIGDANGER] "SIGDANGER", | |
27 | #endif | |
28 | ||
29 | #ifdef SIGMIGRATE | |
30 | [SIGMIGRATE] "SIGMIGRATE", | |
31 | #endif | |
32 | ||
33 | #ifdef SIGPRE | |
34 | [SIGPRE] "SIGPRE", | |
35 | #endif | |
36 | ||
37 | #ifdef SIGVIRT | |
38 | [SIGVIRT] "SIGVIRT", | |
39 | #endif | |
40 | ||
41 | #ifdef SIGALRM1 | |
42 | [SIGALRM1] "SIGALRM1", | |
43 | #endif | |
44 | ||
45 | #ifdef SIGWAITING | |
46 | [SIGWAITING] "SIGWAITING", | |
47 | #endif | |
48 | ||
49 | #ifdef SIGGRANT | |
50 | [SIGGRANT] "SIGGRANT", | |
51 | #endif | |
52 | ||
53 | #ifdef SIGKAP | |
54 | [SIGKAP] "SIGKAP", | |
55 | #endif | |
56 | ||
57 | #ifdef SIGRETRACT | |
58 | [SIGRETRACT] "SIGRETRACT", | |
59 | #endif | |
60 | ||
61 | #ifdef SIGSOUND | |
62 | [SIGSOUND] "SIGSOUND", | |
63 | #endif | |
64 | ||
65 | #ifdef SIGSAK | |
66 | [SIGSAK] "SIGSAK", | |
67 | #endif | |
68 | ||
69 | #ifdef SIGLWP | |
70 | [SIGLWP] "SIGLWP", | |
71 | #endif | |
72 | ||
73 | #ifdef SIGFREEZE | |
74 | [SIGFREEZE] "SIGFREEZE", | |
75 | #endif | |
76 | ||
77 | #ifdef SIGTHAW | |
78 | [SIGTHAW] "SIGTHAW", | |
79 | #endif | |
80 | ||
81 | #ifdef SIGCANCEL | |
82 | [SIGCANCEL] "SIGCANCEL", | |
83 | #endif | |
84 | ||
85 | #ifdef SIGDIL | |
86 | [SIGDIL] "SIGDIL", | |
87 | #endif | |
88 | ||
89 | #ifdef SIGCLD | |
90 | #ifndef SIGCHLD | |
91 | [SIGCLD] "SIGCLD", | |
92 | #else | |
93 | #if SIGCHLD != SIGCLD | |
94 | [SIGCLD] "SIGCLD", | |
95 | #endif | |
96 | #endif | |
97 | #endif | |
98 | ||
99 | #ifdef SIGPWR | |
100 | [SIGPWR] "SIGPWR", | |
101 | #endif | |
102 | ||
103 | #ifdef SIGPOLL | |
104 | #ifndef SIGIO | |
105 | [SIGPOLL] "SIGPOLL", | |
106 | #else | |
107 | #if SIGIO != SIGPOLL | |
108 | [SIGPOLL] "SIGPOLL", | |
109 | #endif | |
110 | #endif | |
111 | #endif | |
112 | ||
113 | #ifdef SIGWINDOW | |
114 | [SIGWINDOW] "SIGWINDOW", | |
115 | #endif | |
116 | ||
117 | #ifdef SIGHUP | |
118 | [SIGHUP] "SIGHUP", | |
119 | #endif | |
120 | ||
121 | #ifdef SIGINT | |
122 | [SIGINT] "SIGINT", | |
123 | #endif | |
124 | ||
125 | #ifdef SIGQUIT | |
126 | [SIGQUIT] "SIGQUIT", | |
127 | #endif | |
128 | ||
129 | #ifdef SIGILL | |
130 | [SIGILL] "SIGILL", | |
131 | #endif | |
132 | ||
133 | #ifdef SIGTRAP | |
134 | [SIGTRAP] "SIGTRAP", | |
135 | #endif | |
136 | ||
137 | #ifdef SIGIOT | |
138 | #ifndef SIGABRT | |
139 | [SIGIOT] "SIGIOT", | |
140 | #else | |
141 | #if SIGABRT != SIGIOT | |
142 | [SIGIOT] "SIGIOT", | |
143 | #endif | |
144 | #endif | |
145 | #endif | |
146 | ||
147 | #ifdef SIGABRT | |
148 | [SIGABRT] "SIGABRT", | |
149 | #endif | |
150 | ||
151 | #ifdef SIGEMT | |
152 | [SIGEMT] "SIGEMT", | |
153 | #endif | |
154 | ||
155 | #ifdef SIGFPE | |
156 | [SIGFPE] "SIGFPE", | |
157 | #endif | |
158 | ||
159 | #ifdef SIGKILL | |
160 | [SIGKILL] "SIGKILL", | |
161 | #endif | |
162 | ||
163 | #ifdef SIGBUS | |
164 | [SIGBUS] "SIGBUS", | |
165 | #endif | |
166 | ||
167 | #ifdef SIGSEGV | |
168 | [SIGSEGV] "SIGSEGV", | |
169 | #endif | |
170 | ||
171 | #ifdef SIGSYS | |
172 | [SIGSYS] "SIGSYS", | |
173 | #endif | |
174 | ||
175 | #ifdef SIGPIPE | |
176 | [SIGPIPE] "SIGPIPE", | |
177 | #endif | |
178 | ||
179 | #ifdef SIGALRM | |
180 | [SIGALRM] "SIGALRM", | |
181 | #endif | |
182 | ||
183 | #ifdef SIGTERM | |
184 | [SIGTERM] "SIGTERM", | |
185 | #endif | |
186 | ||
187 | #ifdef SIGURG | |
188 | [SIGURG] "SIGURG", | |
189 | #endif | |
190 | ||
191 | #ifdef SIGSTOP | |
192 | [SIGSTOP] "SIGSTOP", | |
193 | #endif | |
194 | ||
195 | #ifdef SIGTSTP | |
196 | [SIGTSTP] "SIGTSTP", | |
197 | #endif | |
198 | ||
199 | #ifdef SIGCONT | |
200 | [SIGCONT] "SIGCONT", | |
201 | #endif | |
202 | ||
203 | #ifdef SIGCHLD | |
204 | [SIGCHLD] "SIGCHLD", | |
205 | #endif | |
206 | ||
207 | #ifdef SIGTTIN | |
208 | [SIGTTIN] "SIGTTIN", | |
209 | #endif | |
210 | ||
211 | #ifdef SIGTTOU | |
212 | [SIGTTOU] "SIGTTOU", | |
213 | #endif | |
214 | ||
215 | #ifdef SIGIO | |
216 | [SIGIO] "SIGIO", | |
217 | #endif | |
218 | ||
219 | #ifdef SIGXCPU | |
220 | [SIGXCPU] "SIGXCPU", | |
221 | #endif | |
222 | ||
223 | #ifdef SIGXFSZ | |
224 | [SIGXFSZ] "SIGXFSZ", | |
225 | #endif | |
226 | ||
227 | #ifdef SIGVTALRM | |
228 | [SIGVTALRM] "SIGVTALRM", | |
229 | #endif | |
230 | ||
231 | #ifdef SIGPROF | |
232 | [SIGPROF] "SIGPROF", | |
233 | #endif | |
234 | ||
235 | #ifdef SIGWINCH | |
236 | [SIGWINCH] "SIGWINCH", | |
237 | #endif | |
238 | ||
239 | #ifdef SIGINFO | |
240 | [SIGINFO] "SIGINFO", | |
241 | #endif | |
242 | ||
243 | #ifdef SIGUSR1 | |
244 | [SIGUSR1] "SIGUSR1", | |
245 | #endif | |
246 | ||
247 | #ifdef SIGUSR2 | |
248 | [SIGUSR2] "SIGUSR2", | |
249 | #endif | |
250 | ||
251 | [NSIG] "DEBUG", | |
252 | ||
f73dda09 JA |
253 | [NSIG + 1] "ERR", |
254 | ||
255 | [NSIG + 2] (char *)0x0 | |
cce855bc | 256 | }; |