This source file includes following definitions.
- sigdescr_np
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 #include <config.h>
20
21
22 #include <string.h>
23
24 #include <signal.h>
25
26 const char *
27 sigdescr_np (int sig)
28 {
29
30
31
32
33
34
35
36
37
38 switch (sig)
39 {
40
41 case SIGABRT:
42
43 return "Aborted";
44 case SIGFPE:
45
46
47 return "Arithmetic exception";
48 case SIGILL:
49 return "Illegal instruction";
50 case SIGINT:
51 return "Interrupt";
52 case SIGSEGV:
53 return "Segmentation fault";
54 case SIGTERM:
55 return "Terminated";
56
57
58
59 #if defined SIGALRM
60 case SIGALRM:
61 return "Alarm clock";
62 #endif
63 #if defined SIGBUS
64 case SIGBUS:
65 return "Bus error";
66 #endif
67 #if defined SIGCHLD
68 case SIGCHLD:
69
70 return "Child stopped or exited";
71 #endif
72 #if defined SIGCONT
73 case SIGCONT:
74 return "Continued";
75 #endif
76 #if defined SIGHUP
77 case SIGHUP:
78 return "Hangup";
79 #endif
80 #if defined SIGKILL
81 case SIGKILL:
82 return "Killed";
83 #endif
84 #if defined SIGPIPE
85 case SIGPIPE:
86 return "Broken pipe";
87 #endif
88 #if defined SIGQUIT
89 case SIGQUIT:
90 return "Quit";
91 #endif
92 #if defined SIGSTOP
93 case SIGSTOP:
94
95 return "Stopped (signal)";
96 #endif
97 #if defined SIGTSTP
98 case SIGTSTP:
99
100 return "Stopped";
101 #endif
102 #if defined SIGTTIN
103 case SIGTTIN:
104 return "Stopped (tty input)";
105 #endif
106 #if defined SIGTTOU
107 case SIGTTOU:
108 return "Stopped (tty output)";
109 #endif
110 #if defined SIGUSR1
111 case SIGUSR1:
112
113 return "User defined signal 1";
114 #endif
115 #if defined SIGUSR2
116 case SIGUSR2:
117
118 return "User defined signal 2";
119 #endif
120 #if defined SIGPOLL
121 case SIGPOLL:
122
123 return "I/O possible";
124 #endif
125 #if defined SIGPROF
126 case SIGPROF:
127 return "Profiling timer expired";
128 #endif
129 #if defined SIGSYS
130 case SIGSYS:
131 return "Bad system call";
132 #endif
133 #if defined SIGTRAP
134 case SIGTRAP:
135
136 return "Trace/breakpoint trap";
137 #endif
138 #if defined SIGURG
139 case SIGURG:
140
141 return "Urgent I/O condition";
142 #endif
143 #if defined SIGVTALRM
144 case SIGVTALRM:
145 return "Virtual timer expired";
146 #endif
147 #if defined SIGXCPU
148 case SIGXCPU:
149
150 return "CPU time limit exceeded";
151 #endif
152 #if defined SIGXFSZ
153 case SIGXFSZ:
154 return "File size limit exceeded";
155 #endif
156
157
158
159 #if defined SIGBREAK
160 case SIGBREAK:
161 return "Ctrl-Break";
162 #endif
163
164 #if defined SIGCKPT
165 case SIGCKPT:
166 return "Checkpoint";
167 #endif
168
169 #if defined SIGCLD && SIGCLD != SIGCHLD
170 case SIGCLD:
171 return "Child stopped or exited";
172 #endif
173
174 #if defined SIGCPUFAIL
175 case SIGCPUFAIL:
176
177 return "CPU going down";
178 #endif
179
180 #if defined SIGDANGER
181 case SIGDANGER:
182
183 return "Swap space nearly exhausted";
184 #endif
185
186 #if defined SIGEMT
187 case SIGEMT:
188
189 return "Instruction emulation needed";
190 #endif
191
192 #if defined SIGINFO && SIGINFO != SIGPWR
193 case SIGINFO:
194 return "Information request";
195 #endif
196
197 #if defined SIGIO && SIGIO != SIGPOLL
198 case SIGIO:
199 return "I/O possible";
200 #endif
201
202 #if defined SIGIOT && SIGIOT != SIGABRT
203 case SIGIOT:
204 return "IOT instruction";
205 #endif
206
207 #if defined SIGKAP
208 case SIGKAP:
209
210
211 return "Keep Alive Poll";
212 #endif
213
214 #if defined SIGKILLTHR
215 case SIGKILLTHR:
216 return "Kill thread";
217 #endif
218
219 #if defined SIGKMEM
220 case SIGKMEM:
221 return "Kernel memory request";
222 #endif
223
224 #if defined SIGKMESS
225 case SIGKMESS:
226 return "Kernel message";
227 #endif
228
229 #if defined SIGKSIG
230 case SIGKSIG:
231 return "Kernel signal";
232 #endif
233
234 #if defined SIGKSIGSM
235 case SIGKSIGSM:
236 return "Kernel signal for signal manager";
237 #endif
238
239 #if defined SIGLIBRT
240 case SIGLIBRT:
241 return "Real-time library interrupt";
242 #endif
243
244 #if defined SIGLOST && SIGLOST != SIGABRT && SIGLOST != SIGPWR
245 case SIGLOST:
246
247 return "File lock lost";
248 #endif
249
250 #if defined SIGMIGRATE
251 case SIGMIGRATE:
252 return "Process migration";
253 #endif
254
255 #if defined SIGMSG
256 case SIGMSG:
257
258 return "Message in the ring";
259 #endif
260
261 #if defined SIGPLAN
262 case SIGPLAN:
263 return "Programming language anomaly";
264 #endif
265
266 #if defined SIGPRE
267 case SIGPRE:
268 return "Programmed exception";
269 #endif
270
271 #if defined SIGPTINTR
272 case SIGPTINTR:
273 return "Pthread interrupt";
274 #endif
275
276 #if defined SIGPTRESCHED
277 case SIGPTRESCHED:
278 return "Pthread rescheduling";
279 #endif
280
281 #if defined SIGPWR
282 case SIGPWR:
283
284 return "Power failure";
285 #endif
286
287 #if defined SIGRECONFIG
288 case SIGRECONFIG:
289 return "Dynamic logical partitioning changed";
290 #endif
291
292 #if defined SIGRECOVERY
293 case SIGRECOVERY:
294 return "Kernel recovery";
295 #endif
296
297 #if defined SIGRESTART
298 case SIGRESTART:
299 return "Checkpoint restart";
300 #endif
301
302 #if defined SIGRETRACT
303 case SIGRETRACT:
304
305 return "Retracting Keep Alive Poll";
306 #endif
307
308 #if defined SIGSAK
309 case SIGSAK:
310
311 return "Secure Attention Key";
312 #endif
313
314 #if defined SIGSAM
315 case SIGSAM:
316 return "Symbolic computation failed";
317 #endif
318
319 #if defined SIGSNDELAY
320 case SIGSNDELAY:
321 return "Done sending message";
322 #endif
323
324 #if defined SIGSOUND
325 case SIGSOUND:
326
327 return "Sound configuration changed";
328 #endif
329
330 #if defined SIGSTKFLT
331 case SIGSTKFLT:
332 return "Stack fault";
333 #endif
334
335 #if defined SIGSYSERROR
336 case SIGSYSERROR:
337 return "Kernel error";
338 #endif
339
340 #if defined SIGTALRM
341 case SIGTALRM:
342 return "Thread alarm clock";
343 #endif
344
345 #if defined SIGTHR
346 case SIGTHR:
347
348 return "Thread library interrupt";
349 #endif
350
351 #if defined SIGUME
352 case SIGUME:
353 return "Uncorrectable memory error";
354 #endif
355
356 #if defined SIGVIRT
357 case SIGVIRT:
358 return "Virtual time alarm clock";
359 #endif
360
361 #if defined SIGWAITING
362 case SIGWAITING:
363
364 return "Thread waiting";
365 #endif
366
367 #if defined SIGWINCH
368 case SIGWINCH:
369
370 return "Window size changed";
371 #endif
372
373 default:
374 return NULL;
375 }
376 }