This source file includes following definitions.
- sigabbrev_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 sigabbrev_np (int sig)
28 {
29 switch (sig)
30 {
31
32 case SIGABRT: return "ABRT";
33 case SIGFPE: return "FPE";
34 case SIGILL: return "ILL";
35 case SIGINT: return "INT";
36 case SIGSEGV: return "SEGV";
37 case SIGTERM: return "TERM";
38
39
40
41 #if defined SIGALRM
42 case SIGALRM: return "ALRM";
43 #endif
44 #if defined SIGBUS
45 case SIGBUS: return "BUS";
46 #endif
47 #if defined SIGCHLD
48 case SIGCHLD: return "CHLD";
49 #endif
50 #if defined SIGCONT
51 case SIGCONT: return "CONT";
52 #endif
53 #if defined SIGHUP
54 case SIGHUP: return "HUP";
55 #endif
56 #if defined SIGKILL
57 case SIGKILL: return "KILL";
58 #endif
59 #if defined SIGPIPE
60 case SIGPIPE: return "PIPE";
61 #endif
62 #if defined SIGQUIT
63 case SIGQUIT: return "QUIT";
64 #endif
65 #if defined SIGSTOP
66 case SIGSTOP: return "STOP";
67 #endif
68 #if defined SIGTSTP
69 case SIGTSTP: return "TSTP";
70 #endif
71 #if defined SIGTTIN
72 case SIGTTIN: return "TTIN";
73 #endif
74 #if defined SIGTTOU
75 case SIGTTOU: return "TTOU";
76 #endif
77 #if defined SIGUSR1
78 case SIGUSR1: return "USR1";
79 #endif
80 #if defined SIGUSR2
81 case SIGUSR2: return "USR2";
82 #endif
83 #if defined SIGPOLL
84 case SIGPOLL: return "POLL";
85 #endif
86 #if defined SIGPROF
87 case SIGPROF: return "PROF";
88 #endif
89 #if defined SIGSYS
90 case SIGSYS: return "SYS";
91 #endif
92 #if defined SIGTRAP
93 case SIGTRAP: return "TRAP";
94 #endif
95 #if defined SIGURG
96 case SIGURG: return "URG";
97 #endif
98 #if defined SIGVTALRM
99 case SIGVTALRM: return "VTALRM";
100 #endif
101 #if defined SIGXCPU
102 case SIGXCPU: return "XCPU";
103 #endif
104 #if defined SIGXFSZ
105 case SIGXFSZ: return "XFSZ";
106 #endif
107
108
109
110 #if defined SIGBREAK
111 case SIGBREAK: return "BREAK";
112 #endif
113
114 #if defined SIGCKPT
115 case SIGCKPT: return "CKPT";
116 #endif
117
118 #if defined SIGCLD && SIGCLD != SIGCHLD
119 case SIGCLD: return "CLD";
120 #endif
121
122 #if defined SIGCPUFAIL
123 case SIGCPUFAIL: return "CPUFAIL";
124 #endif
125
126 #if defined SIGDANGER
127 case SIGDANGER: return "DANGER";
128 #endif
129
130 #if defined SIGEMT
131 case SIGEMT: return "EMT";
132 #endif
133
134 #if defined SIGINFO && SIGINFO != SIGPWR
135 case SIGINFO: return "INFO";
136 #endif
137
138 #if defined SIGIO && SIGIO != SIGPOLL
139 case SIGIO: return "IO";
140 #endif
141
142 #if defined SIGIOT && SIGIOT != SIGABRT
143 case SIGIOT: return "IOT";
144 #endif
145
146 #if defined SIGKAP
147 case SIGKAP: return "KAP";
148 #endif
149
150 #if defined SIGKILLTHR
151 case SIGKILLTHR: return "KILLTHR";
152 #endif
153
154 #if defined SIGKMEM
155 case SIGKMEM: return "KMEM";
156 #endif
157
158 #if defined SIGKMESS
159 case SIGKMESS: return "KMESS";
160 #endif
161
162 #if defined SIGKSIG
163 case SIGKSIG: return "KSIG";
164 #endif
165
166 #if defined SIGKSIGSM
167 case SIGKSIGSM: return "KSIGSM";
168 #endif
169
170 #if defined SIGLIBRT
171 case SIGLIBRT: return "LIBRT";
172 #endif
173
174 #if defined SIGLOST && SIGLOST != SIGABRT && SIGLOST != SIGPWR
175 case SIGLOST: return "LOST";
176 #endif
177
178 #if defined SIGMIGRATE
179 case SIGMIGRATE: return "MIGRATE";
180 #endif
181
182 #if defined SIGMSG
183 case SIGMSG: return "MSG";
184 #endif
185
186 #if defined SIGPRE
187 case SIGPRE: return "PRE";
188 #endif
189
190 #if defined SIGPTINTR
191 case SIGPTINTR: return "PTINTR";
192 #endif
193
194 #if defined SIGPTRESCHED
195 case SIGPTRESCHED:return "PTRESCHED";
196 #endif
197
198 #if defined SIGPWR
199 case SIGPWR: return "PWR";
200 #endif
201
202 #if defined SIGRECONFIG
203 case SIGRECONFIG: return "RECONFIG";
204 #endif
205
206 #if defined SIGRECOVERY
207 case SIGRECOVERY: return "RECOVERY";
208 #endif
209
210 #if defined SIGRESTART
211 case SIGRESTART: return "RESTART";
212 #endif
213
214 #if defined SIGRETRACT
215 case SIGRETRACT: return "RETRACT";
216 #endif
217
218 #if defined SIGSAK
219 case SIGSAK: return "SAK";
220 #endif
221
222 #if defined SIGSNDELAY
223 case SIGSNDELAY: return "SNDELAY";
224 #endif
225
226 #if defined SIGSOUND
227 case SIGSOUND: return "SOUND";
228 #endif
229
230 #if defined SIGSTKFLT
231 case SIGSTKFLT: return "STKFLT";
232 #endif
233
234 #if defined SIGSYSERROR
235 case SIGSYSERROR: return "SYSERROR";
236 #endif
237
238 #if defined SIGTALRM
239 case SIGTALRM: return "TALRM";
240 #endif
241
242 #if defined SIGTHR
243 case SIGTHR: return "THR";
244 #endif
245
246 #if defined SIGUME
247 case SIGUME: return "UME";
248 #endif
249
250 #if defined SIGVIRT
251 case SIGVIRT: return "VIRT";
252 #endif
253
254 #if defined SIGWAITING
255 case SIGWAITING: return "WAITING";
256 #endif
257
258 #if defined SIGWINCH
259 case SIGWINCH: return "WINCH";
260 #endif
261
262 default:
263 return NULL;
264 }
265 }