Line | Source | Count |
1 | | - |
2 | | - |
3 | static struct numname { int num; char const name[8]; } numname_table[] = | - |
4 | { | - |
5 | | - |
6 | | - |
7 | | - |
8 | { | - |
9 | 1 | - |
10 | , "HUP" }, | - |
11 | | - |
12 | | - |
13 | { | - |
14 | 2 | - |
15 | , "INT" }, | - |
16 | | - |
17 | | - |
18 | { | - |
19 | 3 | - |
20 | , "QUIT" }, | - |
21 | | - |
22 | | - |
23 | { | - |
24 | 4 | - |
25 | , "ILL" }, | - |
26 | | - |
27 | | - |
28 | { | - |
29 | 5 | - |
30 | , "TRAP" }, | - |
31 | | - |
32 | | - |
33 | { | - |
34 | 6 | - |
35 | , "ABRT" }, | - |
36 | | - |
37 | | - |
38 | { | - |
39 | 8 | - |
40 | , "FPE" }, | - |
41 | | - |
42 | | - |
43 | { | - |
44 | 9 | - |
45 | , "KILL" }, | - |
46 | | - |
47 | | - |
48 | { | - |
49 | 11 | - |
50 | , "SEGV" }, | - |
51 | | - |
52 | | - |
53 | | - |
54 | | - |
55 | { | - |
56 | 7 | - |
57 | , "BUS" }, | - |
58 | | - |
59 | | - |
60 | { | - |
61 | 13 | - |
62 | , "PIPE" }, | - |
63 | | - |
64 | | - |
65 | { | - |
66 | 14 | - |
67 | , "ALRM" }, | - |
68 | | - |
69 | | - |
70 | { | - |
71 | 15 | - |
72 | , "TERM" }, | - |
73 | | - |
74 | | - |
75 | { | - |
76 | 10 | - |
77 | , "USR1" }, | - |
78 | | - |
79 | | - |
80 | { | - |
81 | 12 | - |
82 | , "USR2" }, | - |
83 | | - |
84 | | - |
85 | { | - |
86 | 17 | - |
87 | , "CHLD" }, | - |
88 | | - |
89 | | - |
90 | { | - |
91 | 23 | - |
92 | , "URG" }, | - |
93 | | - |
94 | | - |
95 | { | - |
96 | 19 | - |
97 | , "STOP" }, | - |
98 | | - |
99 | | - |
100 | { | - |
101 | 20 | - |
102 | , "TSTP" }, | - |
103 | | - |
104 | | - |
105 | { | - |
106 | 18 | - |
107 | , "CONT" }, | - |
108 | | - |
109 | | - |
110 | { | - |
111 | 21 | - |
112 | , "TTIN" }, | - |
113 | | - |
114 | | - |
115 | { | - |
116 | 22 | - |
117 | , "TTOU" }, | - |
118 | | - |
119 | | - |
120 | | - |
121 | | - |
122 | { | - |
123 | 31 | - |
124 | , "SYS" }, | - |
125 | | - |
126 | | - |
127 | { | - |
128 | 29 | - |
129 | , "POLL" }, | - |
130 | | - |
131 | | - |
132 | { | - |
133 | 26 | - |
134 | , "VTALRM" }, | - |
135 | | - |
136 | | - |
137 | { | - |
138 | 27 | - |
139 | , "PROF" }, | - |
140 | | - |
141 | | - |
142 | { | - |
143 | 24 | - |
144 | , "XCPU" }, | - |
145 | | - |
146 | | - |
147 | { | - |
148 | 25 | - |
149 | , "XFSZ" }, | - |
150 | | - |
151 | | - |
152 | | - |
153 | | - |
154 | { | - |
155 | 6 | - |
156 | , "IOT" }, | - |
157 | { | - |
158 | 17 | - |
159 | , "CLD" }, | - |
160 | | - |
161 | | - |
162 | { | - |
163 | 30 | - |
164 | , "PWR" }, | - |
165 | { | - |
166 | 28 | - |
167 | , "WINCH" }, | - |
168 | | - |
169 | | - |
170 | | - |
171 | | - |
172 | | - |
173 | | - |
174 | | - |
175 | { | - |
176 | 29 | - |
177 | , "IO" }, | - |
178 | | - |
179 | | - |
180 | { | - |
181 | 16 | - |
182 | , "STKFLT" }, | - |
183 | { 0, "EXIT" } | - |
184 | }; | - |
185 | static int | - |
186 | str2signum (char const *signame) | - |
187 | { | - |
188 | if (((TRUE | never evaluated | FALSE | evaluated 16 times by 2 tests |
unsigned int) (*signame) - '0' <= 9)TRUE | never evaluated | FALSE | evaluated 16 times by 2 tests |
) | 0-16 |
189 | { | - |
190 | char *endp; | - |
191 | long int n = strtol (signame, &endp, 10); | - |
192 | if (! *endpTRUE | never evaluated | FALSE | never evaluated |
&& n <= (TRUE | never evaluated | FALSE | never evaluated |
| 0 |
193 | 65 TRUE | never evaluated | FALSE | never evaluated |
| 0 |
194 | - 1)TRUE | never evaluated | FALSE | never evaluated |
) | 0 |
195 | return never executed: return n; n;never executed: return n; | 0 |
196 | } never executed: end of block | 0 |
197 | else | - |
198 | { | - |
199 | unsigned int i; | - |
200 | for (i = 0; i < (sizeof numname_table / sizeof numname_table[0])TRUE | evaluated 318 times by 2 tests | FALSE | evaluated 6 times by 2 tests |
; i++) | 6-318 |
201 | if ( | - |
202 | __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (TRUE | evaluated 10 times by 2 tests | FALSE | evaluated 308 times by 2 tests |
| 10-308 |
203 | numname_table[i].nameTRUE | evaluated 10 times by 2 tests | FALSE | evaluated 308 times by 2 tests |
| 10-308 |
204 | ) && __builtin_constant_p (TRUE | evaluated 10 times by 2 tests | FALSE | evaluated 308 times by 2 tests |
| 10-308 |
205 | signameTRUE | evaluated 10 times by 2 tests | FALSE | evaluated 308 times by 2 tests |
| 10-308 |
206 | ) && (__s1_len = __builtin_strlen (TRUE | evaluated 10 times by 2 tests | FALSE | evaluated 308 times by 2 tests |
| 10-308 |
207 | numname_table[i].nameTRUE | evaluated 10 times by 2 tests | FALSE | evaluated 308 times by 2 tests |
| 10-308 |
208 | ), __s2_len = __builtin_strlen (TRUE | evaluated 10 times by 2 tests | FALSE | evaluated 308 times by 2 tests |
| 10-308 |
209 | signameTRUE | evaluated 10 times by 2 tests | FALSE | evaluated 308 times by 2 tests |
| 10-308 |
210 | ), (!((size_t)(const void *)((TRUE | evaluated 10 times by 2 tests | FALSE | evaluated 308 times by 2 tests |
| 10-308 |
211 | numname_table[i].nameTRUE | evaluated 10 times by 2 tests | FALSE | evaluated 308 times by 2 tests |
| 10-308 |
212 | ) + 1) - (size_t)(const void *)(TRUE | evaluated 10 times by 2 tests | FALSE | evaluated 308 times by 2 tests |
| 10-308 |
213 | numname_table[i].nameTRUE | evaluated 10 times by 2 tests | FALSE | evaluated 308 times by 2 tests |
| 10-308 |
214 | ) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((TRUE | evaluated 10 times by 2 tests | FALSE | evaluated 308 times by 2 tests |
| 10-308 |
215 | signameTRUE | evaluated 10 times by 2 tests | FALSE | evaluated 308 times by 2 tests |
| 10-308 |
216 | ) + 1) - (size_t)(const void *)(TRUE | evaluated 10 times by 2 tests | FALSE | evaluated 308 times by 2 tests |
| 10-308 |
217 | signameTRUE | evaluated 10 times by 2 tests | FALSE | evaluated 308 times by 2 tests |
| 10-308 |
218 | ) == 1) || __s2_len >= 4)) ? __builtin_strcmp (TRUE | evaluated 10 times by 2 tests | FALSE | evaluated 308 times by 2 tests |
| 10-308 |
219 | numname_table[i].nameTRUE | evaluated 10 times by 2 tests | FALSE | evaluated 308 times by 2 tests |
| 10-308 |
220 | , TRUE | evaluated 10 times by 2 tests | FALSE | evaluated 308 times by 2 tests |
| 10-308 |
221 | signameTRUE | evaluated 10 times by 2 tests | FALSE | evaluated 308 times by 2 tests |
| 10-308 |
222 | ) : (__builtin_constant_p (TRUE | evaluated 10 times by 2 tests | FALSE | evaluated 308 times by 2 tests |
| 10-308 |
223 | numname_table[i].nameTRUE | evaluated 10 times by 2 tests | FALSE | evaluated 308 times by 2 tests |
| 10-308 |
224 | ) && ((size_t)(const void *)((TRUE | evaluated 10 times by 2 tests | FALSE | evaluated 308 times by 2 tests |
| 10-308 |
225 | numname_table[i].nameTRUE | evaluated 10 times by 2 tests | FALSE | evaluated 308 times by 2 tests |
| 10-308 |
226 | ) + 1) - (size_t)(const void *)(TRUE | evaluated 10 times by 2 tests | FALSE | evaluated 308 times by 2 tests |
| 10-308 |
227 | numname_table[i].nameTRUE | evaluated 10 times by 2 tests | FALSE | evaluated 308 times by 2 tests |
| 10-308 |
228 | ) == 1) && (__s1_len = __builtin_strlen (TRUE | evaluated 10 times by 2 tests | FALSE | evaluated 308 times by 2 tests |
| 10-308 |
229 | numname_table[i].nameTRUE | evaluated 10 times by 2 tests | FALSE | evaluated 308 times by 2 tests |
| 10-308 |
230 | ), __s1_len < 4) ? (__builtin_constant_p (TRUE | evaluated 10 times by 2 tests | FALSE | evaluated 308 times by 2 tests |
| 10-308 |
231 | signameTRUE | evaluated 10 times by 2 tests | FALSE | evaluated 308 times by 2 tests |
| 10-308 |
232 | ) && ((size_t)(const void *)((TRUE | evaluated 10 times by 2 tests | FALSE | evaluated 308 times by 2 tests |
| 10-308 |
233 | signameTRUE | evaluated 10 times by 2 tests | FALSE | evaluated 308 times by 2 tests |
| 10-308 |
234 | ) + 1) - (size_t)(const void *)(TRUE | evaluated 10 times by 2 tests | FALSE | evaluated 308 times by 2 tests |
| 10-308 |
235 | signameTRUE | evaluated 10 times by 2 tests | FALSE | evaluated 308 times by 2 tests |
| 10-308 |
236 | ) == 1) ? __builtin_strcmp (TRUE | evaluated 10 times by 2 tests | FALSE | evaluated 308 times by 2 tests |
| 10-308 |
237 | numname_table[i].nameTRUE | evaluated 10 times by 2 tests | FALSE | evaluated 308 times by 2 tests |
| 10-308 |
238 | , TRUE | evaluated 10 times by 2 tests | FALSE | evaluated 308 times by 2 tests |
| 10-308 |
239 | signameTRUE | evaluated 10 times by 2 tests | FALSE | evaluated 308 times by 2 tests |
| 10-308 |
240 | ) : (__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (TRUE | evaluated 10 times by 2 tests | FALSE | evaluated 308 times by 2 tests |
| 10-308 |
241 | signameTRUE | evaluated 10 times by 2 tests | FALSE | evaluated 308 times by 2 tests |
| 10-308 |
242 | ); int __result = (((const unsigned char *) (const char *) (TRUE | evaluated 10 times by 2 tests | FALSE | evaluated 308 times by 2 tests |
| 10-308 |
243 | numname_table[i].nameTRUE | evaluated 10 times by 2 tests | FALSE | evaluated 308 times by 2 tests |
| 10-308 |
244 | ))[0] - __s2[0]); if (__s1_len > 0TRUE | never evaluated | FALSE | never evaluated |
&& __result == 0TRUE | never evaluated | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (TRUE | evaluated 10 times by 2 tests | FALSE | evaluated 308 times by 2 tests |
| 0-308 |
245 | numname_table[i].nameTRUE | evaluated 10 times by 2 tests | FALSE | evaluated 308 times by 2 tests |
| 10-308 |
246 | ))[1] - __s2[1]); if (__s1_len > 1TRUE | never evaluated | FALSE | never evaluated |
&& __result == 0TRUE | never evaluated | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (TRUE | evaluated 10 times by 2 tests | FALSE | evaluated 308 times by 2 tests |
| 0-308 |
247 | numname_table[i].nameTRUE | evaluated 10 times by 2 tests | FALSE | evaluated 308 times by 2 tests |
| 10-308 |
248 | ))[2] - __s2[2]); if (__s1_len > 2TRUE | never evaluated | FALSE | never evaluated |
&& __result == 0TRUE | never evaluated | FALSE | never evaluated |
) __result = (((const unsigned char *) (const char *) (never executed: __result = (((const unsigned char *) (const char *) ( numname_table[i].name ))[3] - __s2[3]); TRUE | evaluated 10 times by 2 tests | FALSE | evaluated 308 times by 2 tests |
| 0-308 |
249 | numname_table[i].nameTRUE | evaluated 10 times by 2 tests | FALSE | evaluated 308 times by 2 tests |
never executed: __result = (((const unsigned char *) (const char *) ( numname_table[i].name ))[3] - __s2[3]); | 0-308 |
250 | ))[3] - __s2[3]);TRUE | evaluated 10 times by 2 tests | FALSE | evaluated 308 times by 2 tests |
never executed: __result = (((const unsigned char *) (const char *) ( numname_table[i].name ))[3] - __s2[3]); }never executed: end of block }never executed: end of block __result; }))) : (__builtin_constant_p (TRUE | evaluated 10 times by 2 tests | FALSE | evaluated 308 times by 2 tests |
| 0-308 |
251 | signameTRUE | evaluated 10 times by 2 tests | FALSE | evaluated 308 times by 2 tests |
| 10-308 |
252 | ) && ((size_t)(const void *)((TRUE | evaluated 10 times by 2 tests | FALSE | evaluated 308 times by 2 tests |
| 10-308 |
253 | signameTRUE | evaluated 10 times by 2 tests | FALSE | evaluated 308 times by 2 tests |
| 10-308 |
254 | ) + 1) - (size_t)(const void *)(TRUE | evaluated 10 times by 2 tests | FALSE | evaluated 308 times by 2 tests |
| 10-308 |
255 | signameTRUE | evaluated 10 times by 2 tests | FALSE | evaluated 308 times by 2 tests |
| 10-308 |
256 | ) == 1) && (__s2_len = __builtin_strlen (TRUE | evaluated 10 times by 2 tests | FALSE | evaluated 308 times by 2 tests |
| 10-308 |
257 | signameTRUE | evaluated 10 times by 2 tests | FALSE | evaluated 308 times by 2 tests |
| 10-308 |
258 | ), __s2_len < 4) ? (__builtin_constant_p (TRUE | evaluated 10 times by 2 tests | FALSE | evaluated 308 times by 2 tests |
| 10-308 |
259 | numname_table[i].nameTRUE | evaluated 10 times by 2 tests | FALSE | evaluated 308 times by 2 tests |
| 10-308 |
260 | ) && ((size_t)(const void *)((TRUE | evaluated 10 times by 2 tests | FALSE | evaluated 308 times by 2 tests |
| 10-308 |
261 | numname_table[i].nameTRUE | evaluated 10 times by 2 tests | FALSE | evaluated 308 times by 2 tests |
| 10-308 |
262 | ) + 1) - (size_t)(const void *)(TRUE | evaluated 10 times by 2 tests | FALSE | evaluated 308 times by 2 tests |
| 10-308 |
263 | numname_table[i].nameTRUE | evaluated 10 times by 2 tests | FALSE | evaluated 308 times by 2 tests |
| 10-308 |
264 | ) == 1) ? __builtin_strcmp (TRUE | evaluated 10 times by 2 tests | FALSE | evaluated 308 times by 2 tests |
| 10-308 |
265 | numname_table[i].nameTRUE | evaluated 10 times by 2 tests | FALSE | evaluated 308 times by 2 tests |
| 10-308 |
266 | , TRUE | evaluated 10 times by 2 tests | FALSE | evaluated 308 times by 2 tests |
| 10-308 |
267 | signameTRUE | evaluated 10 times by 2 tests | FALSE | evaluated 308 times by 2 tests |
| 10-308 |
268 | ) : -(__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (TRUE | evaluated 10 times by 2 tests | FALSE | evaluated 308 times by 2 tests |
| 10-308 |
269 | numname_table[i].nameTRUE | evaluated 10 times by 2 tests | FALSE | evaluated 308 times by 2 tests |
| 10-308 |
270 | ); int __result = (((const unsigned char *) (const char *) (TRUE | evaluated 10 times by 2 tests | FALSE | evaluated 308 times by 2 tests |
| 10-308 |
271 | signameTRUE | evaluated 10 times by 2 tests | FALSE | evaluated 308 times by 2 tests |
| 10-308 |
272 | ))[0] - __s2[0]); if (__s2_len > 0TRUE | never evaluated | FALSE | never evaluated |
&& __result == 0TRUE | never evaluated | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (TRUE | evaluated 10 times by 2 tests | FALSE | evaluated 308 times by 2 tests |
| 0-308 |
273 | signameTRUE | evaluated 10 times by 2 tests | FALSE | evaluated 308 times by 2 tests |
| 10-308 |
274 | ))[1] - __s2[1]); if (__s2_len > 1TRUE | never evaluated | FALSE | never evaluated |
&& __result == 0TRUE | never evaluated | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (TRUE | evaluated 10 times by 2 tests | FALSE | evaluated 308 times by 2 tests |
| 0-308 |
275 | signameTRUE | evaluated 10 times by 2 tests | FALSE | evaluated 308 times by 2 tests |
| 10-308 |
276 | ))[2] - __s2[2]); if (__s2_len > 2TRUE | never evaluated | FALSE | never evaluated |
&& __result == 0TRUE | never evaluated | FALSE | never evaluated |
) __result = (((const unsigned char *) (const char *) (never executed: __result = (((const unsigned char *) (const char *) ( signame ))[3] - __s2[3]); TRUE | evaluated 10 times by 2 tests | FALSE | evaluated 308 times by 2 tests |
| 0-308 |
277 | signameTRUE | evaluated 10 times by 2 tests | FALSE | evaluated 308 times by 2 tests |
never executed: __result = (((const unsigned char *) (const char *) ( signame ))[3] - __s2[3]); | 0-308 |
278 | ))[3] - __s2[3]);TRUE | evaluated 10 times by 2 tests | FALSE | evaluated 308 times by 2 tests |
never executed: __result = (((const unsigned char *) (const char *) ( signame ))[3] - __s2[3]); }never executed: end of block }never executed: end of block __result; }))) : __builtin_strcmp (TRUE | evaluated 10 times by 2 tests | FALSE | evaluated 308 times by 2 tests |
| 0-308 |
279 | numname_table[i].nameTRUE | evaluated 10 times by 2 tests | FALSE | evaluated 308 times by 2 tests |
| 10-308 |
280 | , TRUE | evaluated 10 times by 2 tests | FALSE | evaluated 308 times by 2 tests |
| 10-308 |
281 | signameTRUE | evaluated 10 times by 2 tests | FALSE | evaluated 308 times by 2 tests |
| 10-308 |
282 | )))); }) TRUE | evaluated 10 times by 2 tests | FALSE | evaluated 308 times by 2 tests |
| 10-308 |
283 | == 0TRUE | evaluated 10 times by 2 tests | FALSE | evaluated 308 times by 2 tests |
) | 10-308 |
284 | returnexecuted 10 times by 2 tests: return numname_table[i].num; numname_table[i].num;executed 10 times by 2 tests: return numname_table[i].num; | 10 |
285 | | - |
286 | { | - |
287 | char *endp; | - |
288 | int rtmin = | - |
289 | (__libc_current_sigrtmin ()) | - |
290 | ; | - |
291 | int rtmax = | - |
292 | (__libc_current_sigrtmax ()) | - |
293 | ; | - |
294 | | - |
295 | if (0 < rtminTRUE | evaluated 6 times by 2 tests | FALSE | never evaluated |
&& | 0-6 |
296 | (TRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
__extension__ (__builtin_constant_p (TRUE | evaluated 6 times by 2 tests | FALSE | never evaluated |
TRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
| 0-6 |
297 | 5TRUE | evaluated 6 times by 2 tests | FALSE | never evaluated |
TRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
| 0-6 |
298 | )TRUE | evaluated 6 times by 2 tests | FALSE | never evaluated |
&& ((__builtin_constant_p (TRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
TRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
| 0-6 |
299 | signameTRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
TRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
| 0-6 |
300 | )TRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
&& strlen (TRUE | never evaluated | FALSE | never evaluated |
TRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
| 0-6 |
301 | signameTRUE | never evaluated | FALSE | never evaluated |
TRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
| 0-6 |
302 | ) < ((size_t) (TRUE | never evaluated | FALSE | never evaluated |
TRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
| 0-6 |
303 | 5TRUE | never evaluated | FALSE | never evaluated |
TRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
| 0-6 |
304 | ))TRUE | never evaluated | FALSE | never evaluated |
) || (__builtin_constant_p (TRUE | evaluated 6 times by 2 tests | FALSE | never evaluated |
TRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
| 0-6 |
305 | "RTMIN"TRUE | evaluated 6 times by 2 tests | FALSE | never evaluated |
TRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
| 0-6 |
306 | )TRUE | evaluated 6 times by 2 tests | FALSE | never evaluated |
&& strlen (TRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
TRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
| 0-6 |
307 | "RTMIN"TRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
TRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
| 0-6 |
308 | ) < ((size_t) (TRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
TRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
| 0-6 |
309 | 5TRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
TRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
| 0-6 |
310 | ))TRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
)) ? __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (TRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
| 0-6 |
311 | signameTRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
| 0-6 |
312 | ) && __builtin_constant_p (TRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
| 0-6 |
313 | "RTMIN"TRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
| 0-6 |
314 | ) && (__s1_len = __builtin_strlen (TRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
| 0-6 |
315 | signameTRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
| 0-6 |
316 | ), __s2_len = __builtin_strlen (TRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
| 0-6 |
317 | "RTMIN"TRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
| 0-6 |
318 | ), (!((size_t)(const void *)((TRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
| 0-6 |
319 | signameTRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
| 0-6 |
320 | ) + 1) - (size_t)(const void *)(TRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
| 0-6 |
321 | signameTRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
| 0-6 |
322 | ) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((TRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
| 0-6 |
323 | "RTMIN"TRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
| 0-6 |
324 | ) + 1) - (size_t)(const void *)(TRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
| 0-6 |
325 | "RTMIN"TRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
| 0-6 |
326 | ) == 1) || __s2_len >= 4)) ? __builtin_strcmp (TRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
| 0-6 |
327 | signameTRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
| 0-6 |
328 | , TRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
| 0-6 |
329 | "RTMIN"TRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
| 0-6 |
330 | ) : (__builtin_constant_p (TRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
| 0-6 |
331 | signameTRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
| 0-6 |
332 | ) && ((size_t)(const void *)((TRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
| 0-6 |
333 | signameTRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
| 0-6 |
334 | ) + 1) - (size_t)(const void *)(TRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
| 0-6 |
335 | signameTRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
| 0-6 |
336 | ) == 1) && (__s1_len = __builtin_strlen (TRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
| 0-6 |
337 | signameTRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
| 0-6 |
338 | ), __s1_len < 4) ? (__builtin_constant_p (TRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
| 0-6 |
339 | "RTMIN"TRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
| 0-6 |
340 | ) && ((size_t)(const void *)((TRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
| 0-6 |
341 | "RTMIN"TRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
| 0-6 |
342 | ) + 1) - (size_t)(const void *)(TRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
| 0-6 |
343 | "RTMIN"TRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
| 0-6 |
344 | ) == 1) ? __builtin_strcmp (TRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
| 0-6 |
345 | signameTRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
| 0-6 |
346 | , TRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
| 0-6 |
347 | "RTMIN"TRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
| 0-6 |
348 | ) : (__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (TRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
| 0-6 |
349 | "RTMIN"TRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
| 0-6 |
350 | ); int __result = (((const unsigned char *) (const char *) (TRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
| 0-6 |
351 | signameTRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
| 0-6 |
352 | ))[0] - __s2[0]); if (__s1_len > 0TRUE | never evaluated | FALSE | never evaluated |
&& __result == 0TRUE | never evaluated | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (TRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
| 0-6 |
353 | signameTRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
| 0-6 |
354 | ))[1] - __s2[1]); if (__s1_len > 1TRUE | never evaluated | FALSE | never evaluated |
&& __result == 0TRUE | never evaluated | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (TRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
| 0-6 |
355 | signameTRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
| 0-6 |
356 | ))[2] - __s2[2]); if (__s1_len > 2TRUE | never evaluated | FALSE | never evaluated |
&& __result == 0TRUE | never evaluated | FALSE | never evaluated |
) __result = (((const unsigned char *) (const char *) (never executed: __result = (((const unsigned char *) (const char *) ( signame ))[3] - __s2[3]); TRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
| 0-6 |
357 | signameTRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
never executed: __result = (((const unsigned char *) (const char *) ( signame ))[3] - __s2[3]); | 0-6 |
358 | ))[3] - __s2[3]);TRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
never executed: __result = (((const unsigned char *) (const char *) ( signame ))[3] - __s2[3]); }never executed: end of block }never executed: end of block __result; }))) : (__builtin_constant_p (TRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
| 0-6 |
359 | "RTMIN"TRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
| 0-6 |
360 | ) && ((size_t)(const void *)((TRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
| 0-6 |
361 | "RTMIN"TRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
| 0-6 |
362 | ) + 1) - (size_t)(const void *)(TRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
| 0-6 |
363 | "RTMIN"TRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
| 0-6 |
364 | ) == 1) && (__s2_len = __builtin_strlen (TRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
| 0-6 |
365 | "RTMIN"TRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
| 0-6 |
366 | ), __s2_len < 4) ? (__builtin_constant_p (TRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
| 0-6 |
367 | signameTRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
| 0-6 |
368 | ) && ((size_t)(const void *)((TRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
| 0-6 |
369 | signameTRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
| 0-6 |
370 | ) + 1) - (size_t)(const void *)(TRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
| 0-6 |
371 | signameTRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
| 0-6 |
372 | ) == 1) ? __builtin_strcmp (TRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
| 0-6 |
373 | signameTRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
| 0-6 |
374 | , TRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
| 0-6 |
375 | "RTMIN"TRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
| 0-6 |
376 | ) : -(__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (TRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
| 0-6 |
377 | signameTRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
| 0-6 |
378 | ); int __result = (((const unsigned char *) (const char *) (TRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
| 0-6 |
379 | "RTMIN"TRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
| 0-6 |
380 | ))[0] - __s2[0]); if (__s2_len > 0TRUE | never evaluated | FALSE | never evaluated |
&& __result == 0TRUE | never evaluated | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (TRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
| 0-6 |
381 | "RTMIN"TRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
| 0-6 |
382 | ))[1] - __s2[1]); if (__s2_len > 1TRUE | never evaluated | FALSE | never evaluated |
&& __result == 0TRUE | never evaluated | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (TRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
| 0-6 |
383 | "RTMIN"TRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
| 0-6 |
384 | ))[2] - __s2[2]); if (__s2_len > 2TRUE | never evaluated | FALSE | never evaluated |
&& __result == 0TRUE | never evaluated | FALSE | never evaluated |
) __result = (((const unsigned char *) (const char *) (never executed: __result = (((const unsigned char *) (const char *) ( "RTMIN" ))[3] - __s2[3]); TRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
| 0-6 |
385 | "RTMIN"TRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
never executed: __result = (((const unsigned char *) (const char *) ( "RTMIN" ))[3] - __s2[3]); | 0-6 |
386 | ))[3] - __s2[3]);TRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
never executed: __result = (((const unsigned char *) (const char *) ( "RTMIN" ))[3] - __s2[3]); }never executed: end of block }never executed: end of block __result; }))) : __builtin_strcmp (TRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
| 0-6 |
387 | signameTRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
| 0-6 |
388 | , TRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
| 0-6 |
389 | "RTMIN"TRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
| 0-6 |
390 | )))); }) : strncmp (TRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
| 0-6 |
391 | signameTRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
| 0-6 |
392 | , TRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
| 0-6 |
393 | "RTMIN"TRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
| 0-6 |
394 | , TRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
| 0-6 |
395 | 5TRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
| 0-6 |
396 | ))) TRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
| 0-6 |
397 | == 0TRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
) | 0-6 |
398 | { | - |
399 | long int n = strtol (signame + 5, &endp, 10); | - |
400 | if (! *endpTRUE | never evaluated | FALSE | never evaluated |
&& 0 <= nTRUE | never evaluated | FALSE | never evaluated |
&& n <= rtmax - rtminTRUE | never evaluated | FALSE | never evaluated |
) | 0 |
401 | return never executed: return rtmin + n; rtmin + n;never executed: return rtmin + n; | 0 |
402 | } never executed: end of block | 0 |
403 | else if (0 < rtmaxTRUE | evaluated 6 times by 2 tests | FALSE | never evaluated |
&& | 0-6 |
404 | (TRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
__extension__ (__builtin_constant_p (TRUE | evaluated 6 times by 2 tests | FALSE | never evaluated |
TRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
| 0-6 |
405 | 5TRUE | evaluated 6 times by 2 tests | FALSE | never evaluated |
TRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
| 0-6 |
406 | )TRUE | evaluated 6 times by 2 tests | FALSE | never evaluated |
&& ((__builtin_constant_p (TRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
TRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
| 0-6 |
407 | signameTRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
TRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
| 0-6 |
408 | )TRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
&& strlen (TRUE | never evaluated | FALSE | never evaluated |
TRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
| 0-6 |
409 | signameTRUE | never evaluated | FALSE | never evaluated |
TRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
| 0-6 |
410 | ) < ((size_t) (TRUE | never evaluated | FALSE | never evaluated |
TRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
| 0-6 |
411 | 5TRUE | never evaluated | FALSE | never evaluated |
TRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
| 0-6 |
412 | ))TRUE | never evaluated | FALSE | never evaluated |
) || (__builtin_constant_p (TRUE | evaluated 6 times by 2 tests | FALSE | never evaluated |
TRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
| 0-6 |
413 | "RTMAX"TRUE | evaluated 6 times by 2 tests | FALSE | never evaluated |
TRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
| 0-6 |
414 | )TRUE | evaluated 6 times by 2 tests | FALSE | never evaluated |
&& strlen (TRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
TRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
| 0-6 |
415 | "RTMAX"TRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
TRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
| 0-6 |
416 | ) < ((size_t) (TRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
TRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
| 0-6 |
417 | 5TRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
TRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
| 0-6 |
418 | ))TRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
)) ? __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (TRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
| 0-6 |
419 | signameTRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
| 0-6 |
420 | ) && __builtin_constant_p (TRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
| 0-6 |
421 | "RTMAX"TRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
| 0-6 |
422 | ) && (__s1_len = __builtin_strlen (TRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
| 0-6 |
423 | signameTRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
| 0-6 |
424 | ), __s2_len = __builtin_strlen (TRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
| 0-6 |
425 | "RTMAX"TRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
| 0-6 |
426 | ), (!((size_t)(const void *)((TRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
| 0-6 |
427 | signameTRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
| 0-6 |
428 | ) + 1) - (size_t)(const void *)(TRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
| 0-6 |
429 | signameTRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
| 0-6 |
430 | ) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((TRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
| 0-6 |
431 | "RTMAX"TRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
| 0-6 |
432 | ) + 1) - (size_t)(const void *)(TRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
| 0-6 |
433 | "RTMAX"TRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
| 0-6 |
434 | ) == 1) || __s2_len >= 4)) ? __builtin_strcmp (TRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
| 0-6 |
435 | signameTRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
| 0-6 |
436 | , TRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
| 0-6 |
437 | "RTMAX"TRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
| 0-6 |
438 | ) : (__builtin_constant_p (TRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
| 0-6 |
439 | signameTRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
| 0-6 |
440 | ) && ((size_t)(const void *)((TRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
| 0-6 |
441 | signameTRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
| 0-6 |
442 | ) + 1) - (size_t)(const void *)(TRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
| 0-6 |
443 | signameTRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
| 0-6 |
444 | ) == 1) && (__s1_len = __builtin_strlen (TRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
| 0-6 |
445 | signameTRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
| 0-6 |
446 | ), __s1_len < 4) ? (__builtin_constant_p (TRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
| 0-6 |
447 | "RTMAX"TRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
| 0-6 |
448 | ) && ((size_t)(const void *)((TRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
| 0-6 |
449 | "RTMAX"TRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
| 0-6 |
450 | ) + 1) - (size_t)(const void *)(TRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
| 0-6 |
451 | "RTMAX"TRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
| 0-6 |
452 | ) == 1) ? __builtin_strcmp (TRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
| 0-6 |
453 | signameTRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
| 0-6 |
454 | , TRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
| 0-6 |
455 | "RTMAX"TRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
| 0-6 |
456 | ) : (__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (TRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
| 0-6 |
457 | "RTMAX"TRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
| 0-6 |
458 | ); int __result = (((const unsigned char *) (const char *) (TRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
| 0-6 |
459 | signameTRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
| 0-6 |
460 | ))[0] - __s2[0]); if (__s1_len > 0TRUE | never evaluated | FALSE | never evaluated |
&& __result == 0TRUE | never evaluated | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (TRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
| 0-6 |
461 | signameTRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
| 0-6 |
462 | ))[1] - __s2[1]); if (__s1_len > 1TRUE | never evaluated | FALSE | never evaluated |
&& __result == 0TRUE | never evaluated | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (TRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
| 0-6 |
463 | signameTRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
| 0-6 |
464 | ))[2] - __s2[2]); if (__s1_len > 2TRUE | never evaluated | FALSE | never evaluated |
&& __result == 0TRUE | never evaluated | FALSE | never evaluated |
) __result = (((const unsigned char *) (const char *) (never executed: __result = (((const unsigned char *) (const char *) ( signame ))[3] - __s2[3]); TRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
| 0-6 |
465 | signameTRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
never executed: __result = (((const unsigned char *) (const char *) ( signame ))[3] - __s2[3]); | 0-6 |
466 | ))[3] - __s2[3]);TRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
never executed: __result = (((const unsigned char *) (const char *) ( signame ))[3] - __s2[3]); }never executed: end of block }never executed: end of block __result; }))) : (__builtin_constant_p (TRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
| 0-6 |
467 | "RTMAX"TRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
| 0-6 |
468 | ) && ((size_t)(const void *)((TRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
| 0-6 |
469 | "RTMAX"TRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
| 0-6 |
470 | ) + 1) - (size_t)(const void *)(TRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
| 0-6 |
471 | "RTMAX"TRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
| 0-6 |
472 | ) == 1) && (__s2_len = __builtin_strlen (TRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
| 0-6 |
473 | "RTMAX"TRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
| 0-6 |
474 | ), __s2_len < 4) ? (__builtin_constant_p (TRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
| 0-6 |
475 | signameTRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
| 0-6 |
476 | ) && ((size_t)(const void *)((TRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
| 0-6 |
477 | signameTRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
| 0-6 |
478 | ) + 1) - (size_t)(const void *)(TRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
| 0-6 |
479 | signameTRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
| 0-6 |
480 | ) == 1) ? __builtin_strcmp (TRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
| 0-6 |
481 | signameTRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
| 0-6 |
482 | , TRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
| 0-6 |
483 | "RTMAX"TRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
| 0-6 |
484 | ) : -(__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (TRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
| 0-6 |
485 | signameTRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
| 0-6 |
486 | ); int __result = (((const unsigned char *) (const char *) (TRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
| 0-6 |
487 | "RTMAX"TRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
| 0-6 |
488 | ))[0] - __s2[0]); if (__s2_len > 0TRUE | never evaluated | FALSE | never evaluated |
&& __result == 0TRUE | never evaluated | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (TRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
| 0-6 |
489 | "RTMAX"TRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
| 0-6 |
490 | ))[1] - __s2[1]); if (__s2_len > 1TRUE | never evaluated | FALSE | never evaluated |
&& __result == 0TRUE | never evaluated | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (TRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
| 0-6 |
491 | "RTMAX"TRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
| 0-6 |
492 | ))[2] - __s2[2]); if (__s2_len > 2TRUE | never evaluated | FALSE | never evaluated |
&& __result == 0TRUE | never evaluated | FALSE | never evaluated |
) __result = (((const unsigned char *) (const char *) (never executed: __result = (((const unsigned char *) (const char *) ( "RTMAX" ))[3] - __s2[3]); TRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
| 0-6 |
493 | "RTMAX"TRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
never executed: __result = (((const unsigned char *) (const char *) ( "RTMAX" ))[3] - __s2[3]); | 0-6 |
494 | ))[3] - __s2[3]);TRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
never executed: __result = (((const unsigned char *) (const char *) ( "RTMAX" ))[3] - __s2[3]); }never executed: end of block }never executed: end of block __result; }))) : __builtin_strcmp (TRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
| 0-6 |
495 | signameTRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
| 0-6 |
496 | , TRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
| 0-6 |
497 | "RTMAX"TRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
| 0-6 |
498 | )))); }) : strncmp (TRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
| 0-6 |
499 | signameTRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
| 0-6 |
500 | , TRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
| 0-6 |
501 | "RTMAX"TRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
| 0-6 |
502 | , TRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
| 0-6 |
503 | 5TRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
| 0-6 |
504 | ))) TRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
| 0-6 |
505 | == 0TRUE | never evaluated | FALSE | evaluated 6 times by 2 tests |
) | 0-6 |
506 | { | - |
507 | long int n = strtol (signame + 5, &endp, 10); | - |
508 | if (! *endpTRUE | never evaluated | FALSE | never evaluated |
&& rtmin - rtmax <= nTRUE | never evaluated | FALSE | never evaluated |
&& n <= 0TRUE | never evaluated | FALSE | never evaluated |
) | 0 |
509 | return never executed: return rtmax + n; rtmax + n;never executed: return rtmax + n; | 0 |
510 | } never executed: end of block | 0 |
511 | } | - |
512 | }executed 6 times by 2 tests: end of block | 6 |
513 | | - |
514 | returnexecuted 6 times by 2 tests: return -1; -1;executed 6 times by 2 tests: return -1; | 6 |
515 | } | - |
516 | | - |
517 | | - |
518 | | - |
519 | | - |
520 | int | - |
521 | str2sig (char const *signame, int *signum) | - |
522 | { | - |
523 | *signum = str2signum (signame); | - |
524 | returnexecuted 16 times by 2 tests: return *signum < 0 ? -1 : 0; *signum < 0 ? -1 : 0;executed 16 times by 2 tests: return *signum < 0 ? -1 : 0; | 16 |
525 | } | - |
526 | | - |
527 | | - |
528 | | - |
529 | | - |
530 | | - |
531 | int | - |
532 | sig2str (int signum, char *signame) | - |
533 | { | - |
534 | unsigned int i; | - |
535 | for (i = 0; i < (sizeof numname_table / sizeof numname_table[0])TRUE | evaluated 10307 times by 2 tests | FALSE | evaluated 198 times by 1 test |
; i++) | 198-10307 |
536 | if (numname_table[i].num == signumTRUE | evaluated 207 times by 2 tests | FALSE | evaluated 10100 times by 2 tests |
) | 207-10100 |
537 | { | - |
538 | strcpy (signame, numname_table[i].name); | - |
539 | returnexecuted 207 times by 2 tests: return 0; 0;executed 207 times by 2 tests: return 0; | 207 |
540 | } | - |
541 | | - |
542 | { | - |
543 | int rtmin = | - |
544 | (__libc_current_sigrtmin ()) | - |
545 | ; | - |
546 | int rtmax = | - |
547 | (__libc_current_sigrtmax ()) | - |
548 | ; | - |
549 | int base, delta; | - |
550 | | - |
551 | if (! (rtmin <= signumTRUE | evaluated 186 times by 1 test | FALSE | evaluated 12 times by 1 test |
&& signum <= rtmaxTRUE | evaluated 186 times by 1 test | FALSE | never evaluated |
)) | 0-186 |
552 | returnexecuted 12 times by 1 test: return -1; -1;executed 12 times by 1 test: return -1; | 12 |
553 | | - |
554 | if (signum <= rtmin + (rtmax - rtmin) / 2TRUE | evaluated 96 times by 1 test | FALSE | evaluated 90 times by 1 test |
) | 90-96 |
555 | { | - |
556 | strcpy (signame, "RTMIN"); | - |
557 | base = rtmin; | - |
558 | }executed 96 times by 1 test: end of block | 96 |
559 | else | - |
560 | { | - |
561 | strcpy (signame, "RTMAX"); | - |
562 | base = rtmax; | - |
563 | }executed 90 times by 1 test: end of block | 90 |
564 | | - |
565 | delta = signum - base; | - |
566 | if (delta != 0TRUE | evaluated 174 times by 1 test | FALSE | evaluated 12 times by 1 test |
) | 12-174 |
567 | sprintf (signame + 5, "%+d", delta);executed 174 times by 1 test: sprintf (signame + 5, "%+d", delta); | 174 |
568 | returnexecuted 186 times by 1 test: return 0; 0;executed 186 times by 1 test: return 0; | 186 |
569 | } | - |
570 | } | - |
| | |