Line | Source | Count |
1 | | - |
2 | | - |
3 | struct devlist | - |
4 | { | - |
5 | dev_t dev_num; | - |
6 | struct mount_entry *me; | - |
7 | struct devlist *next; | - |
8 | }; | - |
9 | | - |
10 | | - |
11 | | - |
12 | static Hash_table *devlist_table; | - |
13 | | - |
14 | | - |
15 | | - |
16 | static | - |
17 | _Bool | - |
18 | show_all_fs; | - |
19 | | - |
20 | | - |
21 | static | - |
22 | _Bool | - |
23 | show_local_fs; | - |
24 | | - |
25 | | - |
26 | | - |
27 | static | - |
28 | _Bool | - |
29 | show_listed_fs; | - |
30 | | - |
31 | | - |
32 | static int human_output_opts; | - |
33 | | - |
34 | | - |
35 | static uintmax_t output_block_size; | - |
36 | | - |
37 | | - |
38 | static | - |
39 | _Bool | - |
40 | file_systems_processed; | - |
41 | | - |
42 | | - |
43 | | - |
44 | | - |
45 | | - |
46 | static | - |
47 | _Bool | - |
48 | require_sync; | - |
49 | | - |
50 | | - |
51 | static int exit_status; | - |
52 | | - |
53 | | - |
54 | | - |
55 | struct fs_type_list | - |
56 | { | - |
57 | char *fs_name; | - |
58 | struct fs_type_list *fs_next; | - |
59 | }; | - |
60 | static struct fs_type_list *fs_select_list; | - |
61 | | - |
62 | | - |
63 | | - |
64 | | - |
65 | static struct fs_type_list *fs_exclude_list; | - |
66 | | - |
67 | | - |
68 | static struct mount_entry *mount_list; | - |
69 | | - |
70 | | - |
71 | static | - |
72 | _Bool | - |
73 | print_type; | - |
74 | | - |
75 | | - |
76 | static | - |
77 | _Bool | - |
78 | print_grand_total; | - |
79 | | - |
80 | | - |
81 | static struct fs_usage grand_fsu; | - |
82 | | - |
83 | | - |
84 | enum | - |
85 | { | - |
86 | DEFAULT_MODE, | - |
87 | INODES_MODE, | - |
88 | HUMAN_MODE, | - |
89 | POSIX_MODE, | - |
90 | OUTPUT_MODE | - |
91 | }; | - |
92 | static int header_mode = DEFAULT_MODE; | - |
93 | | - |
94 | | - |
95 | typedef enum | - |
96 | { | - |
97 | SOURCE_FIELD, | - |
98 | FSTYPE_FIELD, | - |
99 | SIZE_FIELD, | - |
100 | USED_FIELD, | - |
101 | AVAIL_FIELD, | - |
102 | PCENT_FIELD, | - |
103 | ITOTAL_FIELD, | - |
104 | IUSED_FIELD, | - |
105 | IAVAIL_FIELD, | - |
106 | IPCENT_FIELD, | - |
107 | TARGET_FIELD, | - |
108 | FILE_FIELD, | - |
109 | INVALID_FIELD | - |
110 | } display_field_t; | - |
111 | | - |
112 | | - |
113 | typedef enum | - |
114 | { | - |
115 | BLOCK_FLD, | - |
116 | INODE_FLD, | - |
117 | OTHER_FLD | - |
118 | } field_type_t; | - |
119 | | - |
120 | | - |
121 | struct field_data_t | - |
122 | { | - |
123 | display_field_t field; | - |
124 | char const *arg; | - |
125 | field_type_t field_type; | - |
126 | const char *caption; | - |
127 | size_t width; | - |
128 | mbs_align_t align; | - |
129 | | - |
130 | _Bool | - |
131 | used; | - |
132 | }; | - |
133 | | - |
134 | | - |
135 | static struct field_data_t field_data[] = { | - |
136 | [SOURCE_FIELD] = { SOURCE_FIELD, | - |
137 | "source", OTHER_FLD, "Filesystem", 14, MBS_ALIGN_LEFT, | - |
138 | 0 | - |
139 | }, | - |
140 | | - |
141 | [FSTYPE_FIELD] = { FSTYPE_FIELD, | - |
142 | "fstype", OTHER_FLD, "Type", 4, MBS_ALIGN_LEFT, | - |
143 | 0 | - |
144 | }, | - |
145 | | - |
146 | [SIZE_FIELD] = { SIZE_FIELD, | - |
147 | "size", BLOCK_FLD, "blocks", 5, MBS_ALIGN_RIGHT, | - |
148 | 0 | - |
149 | }, | - |
150 | | - |
151 | [USED_FIELD] = { USED_FIELD, | - |
152 | "used", BLOCK_FLD, "Used", 5, MBS_ALIGN_RIGHT, | - |
153 | 0 | - |
154 | }, | - |
155 | | - |
156 | [AVAIL_FIELD] = { AVAIL_FIELD, | - |
157 | "avail", BLOCK_FLD, "Available", 5, MBS_ALIGN_RIGHT, | - |
158 | 0 | - |
159 | }, | - |
160 | | - |
161 | [PCENT_FIELD] = { PCENT_FIELD, | - |
162 | "pcent", BLOCK_FLD, "Use%", 4, MBS_ALIGN_RIGHT, | - |
163 | 0 | - |
164 | }, | - |
165 | | - |
166 | [ITOTAL_FIELD] = { ITOTAL_FIELD, | - |
167 | "itotal", INODE_FLD, "Inodes", 5, MBS_ALIGN_RIGHT, | - |
168 | 0 | - |
169 | }, | - |
170 | | - |
171 | [IUSED_FIELD] = { IUSED_FIELD, | - |
172 | "iused", INODE_FLD, "IUsed", 5, MBS_ALIGN_RIGHT, | - |
173 | 0 | - |
174 | }, | - |
175 | | - |
176 | [IAVAIL_FIELD] = { IAVAIL_FIELD, | - |
177 | "iavail", INODE_FLD, "IFree", 5, MBS_ALIGN_RIGHT, | - |
178 | 0 | - |
179 | }, | - |
180 | | - |
181 | [IPCENT_FIELD] = { IPCENT_FIELD, | - |
182 | "ipcent", INODE_FLD, "IUse%", 4, MBS_ALIGN_RIGHT, | - |
183 | 0 | - |
184 | }, | - |
185 | | - |
186 | [TARGET_FIELD] = { TARGET_FIELD, | - |
187 | "target", OTHER_FLD, "Mounted on", 0, MBS_ALIGN_LEFT, | - |
188 | 0 | - |
189 | }, | - |
190 | | - |
191 | [FILE_FIELD] = { FILE_FIELD, | - |
192 | "file", OTHER_FLD, "File", 0, MBS_ALIGN_LEFT, | - |
193 | 0 | - |
194 | } | - |
195 | }; | - |
196 | | - |
197 | static char const *all_args_string = | - |
198 | "source,fstype,itotal,iused,iavail,ipcent,size," | - |
199 | "used,avail,pcent,file,target"; | - |
200 | | - |
201 | | - |
202 | static struct field_data_t **columns; | - |
203 | | - |
204 | | - |
205 | static size_t ncolumns; | - |
206 | | - |
207 | | - |
208 | struct field_values_t | - |
209 | { | - |
210 | uintmax_t input_units; | - |
211 | uintmax_t output_units; | - |
212 | uintmax_t total; | - |
213 | uintmax_t available; | - |
214 | | - |
215 | _Bool | - |
216 | negate_available; | - |
217 | uintmax_t available_to_root; | - |
218 | uintmax_t used; | - |
219 | | - |
220 | _Bool | - |
221 | negate_used; | - |
222 | }; | - |
223 | | - |
224 | | - |
225 | static char ***table; | - |
226 | | - |
227 | | - |
228 | static size_t nrows; | - |
229 | | - |
230 | | - |
231 | | - |
232 | enum | - |
233 | { | - |
234 | NO_SYNC_OPTION = 0x7f + 1, | - |
235 | SYNC_OPTION, | - |
236 | TOTAL_OPTION, | - |
237 | OUTPUT_OPTION | - |
238 | }; | - |
239 | | - |
240 | static struct option const long_options[] = | - |
241 | { | - |
242 | {"all", | - |
243 | 0 | - |
244 | , | - |
245 | ((void *)0) | - |
246 | , 'a'}, | - |
247 | {"block-size", | - |
248 | 1 | - |
249 | , | - |
250 | ((void *)0) | - |
251 | , 'B'}, | - |
252 | {"inodes", | - |
253 | 0 | - |
254 | , | - |
255 | ((void *)0) | - |
256 | , 'i'}, | - |
257 | {"human-readable", | - |
258 | 0 | - |
259 | , | - |
260 | ((void *)0) | - |
261 | , 'h'}, | - |
262 | {"si", | - |
263 | 0 | - |
264 | , | - |
265 | ((void *)0) | - |
266 | , 'H'}, | - |
267 | {"local", | - |
268 | 0 | - |
269 | , | - |
270 | ((void *)0) | - |
271 | , 'l'}, | - |
272 | {"output", | - |
273 | 2 | - |
274 | , | - |
275 | ((void *)0) | - |
276 | , OUTPUT_OPTION}, | - |
277 | {"portability", | - |
278 | 0 | - |
279 | , | - |
280 | ((void *)0) | - |
281 | , 'P'}, | - |
282 | {"print-type", | - |
283 | 0 | - |
284 | , | - |
285 | ((void *)0) | - |
286 | , 'T'}, | - |
287 | {"sync", | - |
288 | 0 | - |
289 | , | - |
290 | ((void *)0) | - |
291 | , SYNC_OPTION}, | - |
292 | {"no-sync", | - |
293 | 0 | - |
294 | , | - |
295 | ((void *)0) | - |
296 | , NO_SYNC_OPTION}, | - |
297 | {"total", | - |
298 | 0 | - |
299 | , | - |
300 | ((void *)0) | - |
301 | , TOTAL_OPTION}, | - |
302 | {"type", | - |
303 | 1 | - |
304 | , | - |
305 | ((void *)0) | - |
306 | , 't'}, | - |
307 | {"exclude-type", | - |
308 | 1 | - |
309 | , | - |
310 | ((void *)0) | - |
311 | , 'x'}, | - |
312 | {"help", | - |
313 | 0 | - |
314 | , | - |
315 | ((void *)0) | - |
316 | , GETOPT_HELP_CHAR}, | - |
317 | {"version", | - |
318 | 0 | - |
319 | , | - |
320 | ((void *)0) | - |
321 | , GETOPT_VERSION_CHAR}, | - |
322 | { | - |
323 | ((void *)0) | - |
324 | , 0, | - |
325 | ((void *)0) | - |
326 | , 0} | - |
327 | }; | - |
328 | | - |
329 | | - |
330 | | - |
331 | | - |
332 | | - |
333 | static char* | - |
334 | hide_problematic_chars (char *cell) | - |
335 | { | - |
336 | char *p = cell; | - |
337 | while (*TRUE | evaluated 9734 times by 1 test | FALSE | evaluated 1712 times by 1 test |
pTRUE | evaluated 9734 times by 1 test | FALSE | evaluated 1712 times by 1 test |
) | 1712-9734 |
338 | { | - |
339 | if ( | - |
340 | ((*TRUE | never evaluated | FALSE | evaluated 9734 times by 1 test |
__ctype_b_loc ())[(int) ((TRUE | never evaluated | FALSE | evaluated 9734 times by 1 test |
| 0-9734 |
341 | to_uchar (*p)TRUE | never evaluated | FALSE | evaluated 9734 times by 1 test |
| 0-9734 |
342 | ))] & (unsigned short int) _IScntrl)TRUE | never evaluated | FALSE | evaluated 9734 times by 1 test |
| 0-9734 |
343 | ) | - |
344 | * never executed: *p = '?'; p = '?';never executed: *p = '?'; | 0 |
345 | p++; | - |
346 | }executed 9734 times by 1 test: end of block | 9734 |
347 | returnexecuted 1712 times by 1 test: return cell; cell;executed 1712 times by 1 test: return cell; | 1712 |
348 | } | - |
349 | | - |
350 | | - |
351 | | - |
352 | | - |
353 | static void | - |
354 | alloc_table_row (void) | - |
355 | { | - |
356 | nrows++; | - |
357 | table = xnrealloc (table, nrows, sizeof (char **)); | - |
358 | table[nrows - 1] = xnmalloc (ncolumns, sizeof (char *)); | - |
359 | }executed 315 times by 1 test: end of block | 315 |
360 | | - |
361 | | - |
362 | | - |
363 | | - |
364 | static void | - |
365 | print_table (void) | - |
366 | { | - |
367 | size_t row; | - |
368 | | - |
369 | for (row = 0; row < nrowsTRUE | evaluated 311 times by 1 test | FALSE | evaluated 67 times by 1 test |
; row++) | 67-311 |
370 | { | - |
371 | size_t col; | - |
372 | for (col = 0; col < ncolumnsTRUE | evaluated 1688 times by 1 test | FALSE | evaluated 311 times by 1 test |
; col++) | 311-1688 |
373 | { | - |
374 | char *cell = table[row][col]; | - |
375 | | - |
376 | | - |
377 | | - |
378 | | - |
379 | | - |
380 | if (col != 0TRUE | evaluated 1377 times by 1 test | FALSE | evaluated 311 times by 1 test |
) | 311-1377 |
381 | putchar_unlocked (' ');executed 1377 times by 1 test: putchar_unlocked (' '); | 1377 |
382 | | - |
383 | int flags = 0; | - |
384 | if (col == ncolumns - 1TRUE | evaluated 311 times by 1 test | FALSE | evaluated 1377 times by 1 test |
) | 311-1377 |
385 | flags = MBA_NO_RIGHT_PAD;executed 311 times by 1 test: flags = MBA_NO_RIGHT_PAD; | 311 |
386 | | - |
387 | size_t width = columns[col]->width; | - |
388 | cell = ambsalign (cell, &width, columns[col]->align, flags); | - |
389 | | - |
390 | fputs_unlocked (cell ? cell : table[row][col], | - |
391 | stdout | - |
392 | ); | - |
393 | free (cell); | - |
394 | | - |
395 | ; | - |
396 | }executed 1688 times by 1 test: end of block | 1688 |
397 | putchar_unlocked ('\n'); | - |
398 | ; | - |
399 | }executed 311 times by 1 test: end of block | 311 |
400 | | - |
401 | ; | - |
402 | }executed 67 times by 1 test: end of block | 67 |
403 | | - |
404 | | - |
405 | | - |
406 | | - |
407 | static void | - |
408 | alloc_field (int f, const char *c) | - |
409 | { | - |
410 | ncolumns++; | - |
411 | columns = xnrealloc (columns, ncolumns, sizeof (struct field_data_t *)); | - |
412 | columns[ncolumns - 1] = &field_data[f]; | - |
413 | if (c != TRUE | evaluated 8 times by 1 test | FALSE | evaluated 382 times by 1 test |
| 8-382 |
414 | ((void *)0)TRUE | evaluated 8 times by 1 test | FALSE | evaluated 382 times by 1 test |
| 8-382 |
415 | ) | - |
416 | columns[ncolumns - 1]->caption = c;executed 8 times by 1 test: columns[ncolumns - 1]->caption = c; | 8 |
417 | | - |
418 | if (field_data[f].usedTRUE | never evaluated | FALSE | evaluated 390 times by 1 test |
) | 0-390 |
419 | | - |
420 | (( never executed: (( !"field used" ) ? (void) (0) : __assert_fail ( "!\"field used\"" , "src/df.c", 356, __PRETTY_FUNCTION__)) ; | 0 |
421 | !"field used" never executed: (( !"field used" ) ? (void) (0) : __assert_fail ( "!\"field used\"" , "src/df.c", 356, __PRETTY_FUNCTION__)) ; | 0 |
422 | ) ? (void) (0) : __assert_fail ( never executed: (( !"field used" ) ? (void) (0) : __assert_fail ( "!\"field used\"" , "src/df.c", 356, __PRETTY_FUNCTION__)) ; | 0 |
423 | "!\"field used\"" never executed: (( !"field used" ) ? (void) (0) : __assert_fail ( "!\"field used\"" , "src/df.c", 356, __PRETTY_FUNCTION__)) ; | 0 |
424 | , "src/df.c", 356, __PRETTY_FUNCTION__)) never executed: (( !"field used" ) ? (void) (0) : __assert_fail ( "!\"field used\"" , "src/df.c", 356, __PRETTY_FUNCTION__)) ; | 0 |
425 | ; never executed: (( !"field used" ) ? (void) (0) : __assert_fail ( "!\"field used\"" , "src/df.c", 356, __PRETTY_FUNCTION__)) ; | 0 |
426 | | - |
427 | | - |
428 | field_data[f].used = | - |
429 | 1 | - |
430 | ; | - |
431 | }executed 390 times by 1 test: end of block | 390 |
432 | | - |
433 | | - |
434 | | - |
435 | | - |
436 | static void | - |
437 | decode_output_arg (char const *arg) | - |
438 | { | - |
439 | char *arg_writable = xstrdup (arg); | - |
440 | char *s = arg_writable; | - |
441 | do | - |
442 | { | - |
443 | | - |
444 | char *comma = | - |
445 | (__extension__ (__builtin_constant_p (TRUE | evaluated 46 times by 1 test | FALSE | never evaluated |
| 0-46 |
446 | ','TRUE | evaluated 46 times by 1 test | FALSE | never evaluated |
| 0-46 |
447 | )TRUE | evaluated 46 times by 1 test | FALSE | never evaluated |
&& !__builtin_constant_p (TRUE | evaluated 46 times by 1 test | FALSE | never evaluated |
| 0-46 |
448 | sTRUE | evaluated 46 times by 1 test | FALSE | never evaluated |
| 0-46 |
449 | )TRUE | evaluated 46 times by 1 test | FALSE | never evaluated |
&& (TRUE | never evaluated | FALSE | evaluated 46 times by 1 test |
| 0-46 |
450 | ','TRUE | never evaluated | FALSE | evaluated 46 times by 1 test |
| 0-46 |
451 | ) == '\0'TRUE | never evaluated | FALSE | evaluated 46 times by 1 test |
? (char *) __rawmemchr ( | 0-46 |
452 | s | - |
453 | , | - |
454 | ',' | - |
455 | ) : __builtin_strchr ( | - |
456 | s | - |
457 | , | - |
458 | ',' | - |
459 | ))) | - |
460 | ; | - |
461 | | - |
462 | | - |
463 | if (commaTRUE | evaluated 28 times by 1 test | FALSE | evaluated 18 times by 1 test |
) | 18-28 |
464 | *executed 28 times by 1 test: *comma++ = 0; comma++ = 0;executed 28 times by 1 test: *comma++ = 0; | 28 |
465 | | - |
466 | | - |
467 | display_field_t field = INVALID_FIELD; | - |
468 | for (unsigned int i = 0; i < (sizeof (field_data) / sizeof *(field_data))TRUE | evaluated 302 times by 1 test | FALSE | never evaluated |
; i++) | 0-302 |
469 | { | - |
470 | if ((TRUE | evaluated 46 times by 1 test | FALSE | evaluated 256 times by 1 test |
| 46-256 |
471 | __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (TRUE | evaluated 46 times by 1 test | FALSE | evaluated 256 times by 1 test |
| 46-256 |
472 | field_data[i].argTRUE | evaluated 46 times by 1 test | FALSE | evaluated 256 times by 1 test |
| 46-256 |
473 | ) && __builtin_constant_p (TRUE | evaluated 46 times by 1 test | FALSE | evaluated 256 times by 1 test |
| 46-256 |
474 | sTRUE | evaluated 46 times by 1 test | FALSE | evaluated 256 times by 1 test |
| 46-256 |
475 | ) && (__s1_len = __builtin_strlen (TRUE | evaluated 46 times by 1 test | FALSE | evaluated 256 times by 1 test |
| 46-256 |
476 | field_data[i].argTRUE | evaluated 46 times by 1 test | FALSE | evaluated 256 times by 1 test |
| 46-256 |
477 | ), __s2_len = __builtin_strlen (TRUE | evaluated 46 times by 1 test | FALSE | evaluated 256 times by 1 test |
| 46-256 |
478 | sTRUE | evaluated 46 times by 1 test | FALSE | evaluated 256 times by 1 test |
| 46-256 |
479 | ), (!((size_t)(const void *)((TRUE | evaluated 46 times by 1 test | FALSE | evaluated 256 times by 1 test |
| 46-256 |
480 | field_data[i].argTRUE | evaluated 46 times by 1 test | FALSE | evaluated 256 times by 1 test |
| 46-256 |
481 | ) + 1) - (size_t)(const void *)(TRUE | evaluated 46 times by 1 test | FALSE | evaluated 256 times by 1 test |
| 46-256 |
482 | field_data[i].argTRUE | evaluated 46 times by 1 test | FALSE | evaluated 256 times by 1 test |
| 46-256 |
483 | ) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((TRUE | evaluated 46 times by 1 test | FALSE | evaluated 256 times by 1 test |
| 46-256 |
484 | sTRUE | evaluated 46 times by 1 test | FALSE | evaluated 256 times by 1 test |
| 46-256 |
485 | ) + 1) - (size_t)(const void *)(TRUE | evaluated 46 times by 1 test | FALSE | evaluated 256 times by 1 test |
| 46-256 |
486 | sTRUE | evaluated 46 times by 1 test | FALSE | evaluated 256 times by 1 test |
| 46-256 |
487 | ) == 1) || __s2_len >= 4)) ? __builtin_strcmp (TRUE | evaluated 46 times by 1 test | FALSE | evaluated 256 times by 1 test |
| 46-256 |
488 | field_data[i].argTRUE | evaluated 46 times by 1 test | FALSE | evaluated 256 times by 1 test |
| 46-256 |
489 | , TRUE | evaluated 46 times by 1 test | FALSE | evaluated 256 times by 1 test |
| 46-256 |
490 | sTRUE | evaluated 46 times by 1 test | FALSE | evaluated 256 times by 1 test |
| 46-256 |
491 | ) : (__builtin_constant_p (TRUE | evaluated 46 times by 1 test | FALSE | evaluated 256 times by 1 test |
| 46-256 |
492 | field_data[i].argTRUE | evaluated 46 times by 1 test | FALSE | evaluated 256 times by 1 test |
| 46-256 |
493 | ) && ((size_t)(const void *)((TRUE | evaluated 46 times by 1 test | FALSE | evaluated 256 times by 1 test |
| 46-256 |
494 | field_data[i].argTRUE | evaluated 46 times by 1 test | FALSE | evaluated 256 times by 1 test |
| 46-256 |
495 | ) + 1) - (size_t)(const void *)(TRUE | evaluated 46 times by 1 test | FALSE | evaluated 256 times by 1 test |
| 46-256 |
496 | field_data[i].argTRUE | evaluated 46 times by 1 test | FALSE | evaluated 256 times by 1 test |
| 46-256 |
497 | ) == 1) && (__s1_len = __builtin_strlen (TRUE | evaluated 46 times by 1 test | FALSE | evaluated 256 times by 1 test |
| 46-256 |
498 | field_data[i].argTRUE | evaluated 46 times by 1 test | FALSE | evaluated 256 times by 1 test |
| 46-256 |
499 | ), __s1_len < 4) ? (__builtin_constant_p (TRUE | evaluated 46 times by 1 test | FALSE | evaluated 256 times by 1 test |
| 46-256 |
500 | sTRUE | evaluated 46 times by 1 test | FALSE | evaluated 256 times by 1 test |
| 46-256 |
501 | ) && ((size_t)(const void *)((TRUE | evaluated 46 times by 1 test | FALSE | evaluated 256 times by 1 test |
| 46-256 |
502 | sTRUE | evaluated 46 times by 1 test | FALSE | evaluated 256 times by 1 test |
| 46-256 |
503 | ) + 1) - (size_t)(const void *)(TRUE | evaluated 46 times by 1 test | FALSE | evaluated 256 times by 1 test |
| 46-256 |
504 | sTRUE | evaluated 46 times by 1 test | FALSE | evaluated 256 times by 1 test |
| 46-256 |
505 | ) == 1) ? __builtin_strcmp (TRUE | evaluated 46 times by 1 test | FALSE | evaluated 256 times by 1 test |
| 46-256 |
506 | field_data[i].argTRUE | evaluated 46 times by 1 test | FALSE | evaluated 256 times by 1 test |
| 46-256 |
507 | , TRUE | evaluated 46 times by 1 test | FALSE | evaluated 256 times by 1 test |
| 46-256 |
508 | sTRUE | evaluated 46 times by 1 test | FALSE | evaluated 256 times by 1 test |
| 46-256 |
509 | ) : (__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (TRUE | evaluated 46 times by 1 test | FALSE | evaluated 256 times by 1 test |
| 46-256 |
510 | sTRUE | evaluated 46 times by 1 test | FALSE | evaluated 256 times by 1 test |
| 46-256 |
511 | ); int __result = (((const unsigned char *) (const char *) (TRUE | evaluated 46 times by 1 test | FALSE | evaluated 256 times by 1 test |
| 46-256 |
512 | field_data[i].argTRUE | evaluated 46 times by 1 test | FALSE | evaluated 256 times by 1 test |
| 46-256 |
513 | ))[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 46 times by 1 test | FALSE | evaluated 256 times by 1 test |
| 0-256 |
514 | field_data[i].argTRUE | evaluated 46 times by 1 test | FALSE | evaluated 256 times by 1 test |
| 46-256 |
515 | ))[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 46 times by 1 test | FALSE | evaluated 256 times by 1 test |
| 0-256 |
516 | field_data[i].argTRUE | evaluated 46 times by 1 test | FALSE | evaluated 256 times by 1 test |
| 46-256 |
517 | ))[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 *) ( field_data[i].arg ))[3] - __s2[3]); TRUE | evaluated 46 times by 1 test | FALSE | evaluated 256 times by 1 test |
| 0-256 |
518 | field_data[i].argTRUE | evaluated 46 times by 1 test | FALSE | evaluated 256 times by 1 test |
never executed: __result = (((const unsigned char *) (const char *) ( field_data[i].arg ))[3] - __s2[3]); | 0-256 |
519 | ))[3] - __s2[3]);TRUE | evaluated 46 times by 1 test | FALSE | evaluated 256 times by 1 test |
never executed: __result = (((const unsigned char *) (const char *) ( field_data[i].arg ))[3] - __s2[3]); }never executed: end of block }never executed: end of block __result; }))) : (__builtin_constant_p (TRUE | evaluated 46 times by 1 test | FALSE | evaluated 256 times by 1 test |
| 0-256 |
520 | sTRUE | evaluated 46 times by 1 test | FALSE | evaluated 256 times by 1 test |
| 46-256 |
521 | ) && ((size_t)(const void *)((TRUE | evaluated 46 times by 1 test | FALSE | evaluated 256 times by 1 test |
| 46-256 |
522 | sTRUE | evaluated 46 times by 1 test | FALSE | evaluated 256 times by 1 test |
| 46-256 |
523 | ) + 1) - (size_t)(const void *)(TRUE | evaluated 46 times by 1 test | FALSE | evaluated 256 times by 1 test |
| 46-256 |
524 | sTRUE | evaluated 46 times by 1 test | FALSE | evaluated 256 times by 1 test |
| 46-256 |
525 | ) == 1) && (__s2_len = __builtin_strlen (TRUE | evaluated 46 times by 1 test | FALSE | evaluated 256 times by 1 test |
| 46-256 |
526 | sTRUE | evaluated 46 times by 1 test | FALSE | evaluated 256 times by 1 test |
| 46-256 |
527 | ), __s2_len < 4) ? (__builtin_constant_p (TRUE | evaluated 46 times by 1 test | FALSE | evaluated 256 times by 1 test |
| 46-256 |
528 | field_data[i].argTRUE | evaluated 46 times by 1 test | FALSE | evaluated 256 times by 1 test |
| 46-256 |
529 | ) && ((size_t)(const void *)((TRUE | evaluated 46 times by 1 test | FALSE | evaluated 256 times by 1 test |
| 46-256 |
530 | field_data[i].argTRUE | evaluated 46 times by 1 test | FALSE | evaluated 256 times by 1 test |
| 46-256 |
531 | ) + 1) - (size_t)(const void *)(TRUE | evaluated 46 times by 1 test | FALSE | evaluated 256 times by 1 test |
| 46-256 |
532 | field_data[i].argTRUE | evaluated 46 times by 1 test | FALSE | evaluated 256 times by 1 test |
| 46-256 |
533 | ) == 1) ? __builtin_strcmp (TRUE | evaluated 46 times by 1 test | FALSE | evaluated 256 times by 1 test |
| 46-256 |
534 | field_data[i].argTRUE | evaluated 46 times by 1 test | FALSE | evaluated 256 times by 1 test |
| 46-256 |
535 | , TRUE | evaluated 46 times by 1 test | FALSE | evaluated 256 times by 1 test |
| 46-256 |
536 | sTRUE | evaluated 46 times by 1 test | FALSE | evaluated 256 times by 1 test |
| 46-256 |
537 | ) : -(__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (TRUE | evaluated 46 times by 1 test | FALSE | evaluated 256 times by 1 test |
| 46-256 |
538 | field_data[i].argTRUE | evaluated 46 times by 1 test | FALSE | evaluated 256 times by 1 test |
| 46-256 |
539 | ); int __result = (((const unsigned char *) (const char *) (TRUE | evaluated 46 times by 1 test | FALSE | evaluated 256 times by 1 test |
| 46-256 |
540 | sTRUE | evaluated 46 times by 1 test | FALSE | evaluated 256 times by 1 test |
| 46-256 |
541 | ))[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 46 times by 1 test | FALSE | evaluated 256 times by 1 test |
| 0-256 |
542 | sTRUE | evaluated 46 times by 1 test | FALSE | evaluated 256 times by 1 test |
| 46-256 |
543 | ))[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 46 times by 1 test | FALSE | evaluated 256 times by 1 test |
| 0-256 |
544 | sTRUE | evaluated 46 times by 1 test | FALSE | evaluated 256 times by 1 test |
| 46-256 |
545 | ))[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 *) ( s ))[3] - __s2[3]); TRUE | evaluated 46 times by 1 test | FALSE | evaluated 256 times by 1 test |
| 0-256 |
546 | sTRUE | evaluated 46 times by 1 test | FALSE | evaluated 256 times by 1 test |
never executed: __result = (((const unsigned char *) (const char *) ( s ))[3] - __s2[3]); | 0-256 |
547 | ))[3] - __s2[3]);TRUE | evaluated 46 times by 1 test | FALSE | evaluated 256 times by 1 test |
never executed: __result = (((const unsigned char *) (const char *) ( s ))[3] - __s2[3]); }never executed: end of block }never executed: end of block __result; }))) : __builtin_strcmp (TRUE | evaluated 46 times by 1 test | FALSE | evaluated 256 times by 1 test |
| 0-256 |
548 | field_data[i].argTRUE | evaluated 46 times by 1 test | FALSE | evaluated 256 times by 1 test |
| 46-256 |
549 | , TRUE | evaluated 46 times by 1 test | FALSE | evaluated 256 times by 1 test |
| 46-256 |
550 | sTRUE | evaluated 46 times by 1 test | FALSE | evaluated 256 times by 1 test |
| 46-256 |
551 | )))); }) TRUE | evaluated 46 times by 1 test | FALSE | evaluated 256 times by 1 test |
| 46-256 |
552 | == 0)TRUE | evaluated 46 times by 1 test | FALSE | evaluated 256 times by 1 test |
) | 46-256 |
553 | { | - |
554 | field = i; | - |
555 | break;executed 46 times by 1 test: break; | 46 |
556 | } | - |
557 | }executed 256 times by 1 test: end of block | 256 |
558 | if (field == INVALID_FIELDTRUE | never evaluated | FALSE | evaluated 46 times by 1 test |
) | 0-46 |
559 | { | - |
560 | error (0, 0, | - |
561 | dcgettext (((void *)0), | - |
562 | "option --output: field %s unknown" | - |
563 | , 5) | - |
564 | , quote (s)); | - |
565 | usage ( | - |
566 | 1 | - |
567 | ); | - |
568 | } never executed: end of block | 0 |
569 | | - |
570 | if (field_data[field].usedTRUE | evaluated 2 times by 1 test | FALSE | evaluated 44 times by 1 test |
) | 2-44 |
571 | { | - |
572 | | - |
573 | error (0, 0, | - |
574 | dcgettext (((void *)0), | - |
575 | "option --output: field %s used more than once" | - |
576 | , 5) | - |
577 | , | - |
578 | quote (field_data[field].arg)); | - |
579 | usage ( | - |
580 | 1 | - |
581 | ); | - |
582 | } never executed: end of block | 0 |
583 | | - |
584 | switch (field) | - |
585 | { | - |
586 | caseexecuted 10 times by 1 test: case SOURCE_FIELD: SOURCE_FIELD:executed 10 times by 1 test: case SOURCE_FIELD: | 10 |
587 | caseexecuted 3 times by 1 test: case FSTYPE_FIELD: FSTYPE_FIELD:executed 3 times by 1 test: case FSTYPE_FIELD: | 3 |
588 | caseexecuted 2 times by 1 test: case USED_FIELD: USED_FIELD:executed 2 times by 1 test: case USED_FIELD: | 2 |
589 | caseexecuted 2 times by 1 test: case PCENT_FIELD: PCENT_FIELD:executed 2 times by 1 test: case PCENT_FIELD: | 2 |
590 | caseexecuted 2 times by 1 test: case ITOTAL_FIELD: ITOTAL_FIELD:executed 2 times by 1 test: case ITOTAL_FIELD: | 2 |
591 | caseexecuted 2 times by 1 test: case IUSED_FIELD: IUSED_FIELD:executed 2 times by 1 test: case IUSED_FIELD: | 2 |
592 | caseexecuted 2 times by 1 test: case IAVAIL_FIELD: IAVAIL_FIELD:executed 2 times by 1 test: case IAVAIL_FIELD: | 2 |
593 | caseexecuted 2 times by 1 test: case IPCENT_FIELD: IPCENT_FIELD:executed 2 times by 1 test: case IPCENT_FIELD: | 2 |
594 | caseexecuted 11 times by 1 test: case TARGET_FIELD: TARGET_FIELD:executed 11 times by 1 test: case TARGET_FIELD: | 11 |
595 | caseexecuted 3 times by 1 test: case FILE_FIELD: FILE_FIELD:executed 3 times by 1 test: case FILE_FIELD: | 3 |
596 | alloc_field (field, | - |
597 | ((void *)0) | - |
598 | ); | - |
599 | break;executed 39 times by 1 test: break; | 39 |
600 | | - |
601 | caseexecuted 3 times by 1 test: case SIZE_FIELD: SIZE_FIELD:executed 3 times by 1 test: case SIZE_FIELD: | 3 |
602 | alloc_field (field, "Size"); | - |
603 | break;executed 3 times by 1 test: break; | 3 |
604 | | - |
605 | caseexecuted 2 times by 1 test: case AVAIL_FIELD: AVAIL_FIELD:executed 2 times by 1 test: case AVAIL_FIELD: | 2 |
606 | alloc_field (field, "Avail"); | - |
607 | break;executed 2 times by 1 test: break; | 2 |
608 | | - |
609 | default never executed: default: :never executed: default: | 0 |
610 | | - |
611 | (( | - |
612 | !"invalid field" | - |
613 | ) ? (void) (0) : __assert_fail ( | - |
614 | "!\"invalid field\"" | - |
615 | , "src/df.c", 427, __PRETTY_FUNCTION__)) | - |
616 | ; | - |
617 | } never executed: end of block | 0 |
618 | s = comma; | - |
619 | }executed 44 times by 1 test: end of block | 44 |
620 | while (sTRUE | evaluated 28 times by 1 test | FALSE | evaluated 16 times by 1 test |
); | 16-28 |
621 | | - |
622 | free (arg_writable); | - |
623 | }executed 16 times by 1 test: end of block | 16 |
624 | | - |
625 | | - |
626 | static void | - |
627 | get_field_list (void) | - |
628 | { | - |
629 | switch (header_mode) | - |
630 | { | - |
631 | caseexecuted 51 times by 1 test: case DEFAULT_MODE: DEFAULT_MODE:executed 51 times by 1 test: case DEFAULT_MODE: | 51 |
632 | alloc_field (SOURCE_FIELD, | - |
633 | ((void *)0) | - |
634 | ); | - |
635 | if (print_typeTRUE | evaluated 3 times by 1 test | FALSE | evaluated 48 times by 1 test |
) | 3-48 |
636 | alloc_field (FSTYPE_FIELD, executed 3 times by 1 test: alloc_field (FSTYPE_FIELD, ((void *)0) ); | 3 |
637 | ((void *)0)executed 3 times by 1 test: alloc_field (FSTYPE_FIELD, ((void *)0) ); | 3 |
638 | );executed 3 times by 1 test: alloc_field (FSTYPE_FIELD, ((void *)0) ); | 3 |
639 | alloc_field (SIZE_FIELD, | - |
640 | ((void *)0) | - |
641 | ); | - |
642 | alloc_field (USED_FIELD, | - |
643 | ((void *)0) | - |
644 | ); | - |
645 | alloc_field (AVAIL_FIELD, | - |
646 | ((void *)0) | - |
647 | ); | - |
648 | alloc_field (PCENT_FIELD, | - |
649 | ((void *)0) | - |
650 | ); | - |
651 | alloc_field (TARGET_FIELD, | - |
652 | ((void *)0) | - |
653 | ); | - |
654 | break;executed 51 times by 1 test: break; | 51 |
655 | | - |
656 | case never executed: case HUMAN_MODE: HUMAN_MODE:never executed: case HUMAN_MODE: | 0 |
657 | alloc_field (SOURCE_FIELD, | - |
658 | ((void *)0) | - |
659 | ); | - |
660 | if (print_typeTRUE | never evaluated | FALSE | never evaluated |
) | 0 |
661 | alloc_field (FSTYPE_FIELD, never executed: alloc_field (FSTYPE_FIELD, ((void *)0) ); | 0 |
662 | ((void *)0) never executed: alloc_field (FSTYPE_FIELD, ((void *)0) ); | 0 |
663 | ); never executed: alloc_field (FSTYPE_FIELD, ((void *)0) ); | 0 |
664 | | - |
665 | alloc_field (SIZE_FIELD, "Size"); | - |
666 | alloc_field (USED_FIELD, | - |
667 | ((void *)0) | - |
668 | ); | - |
669 | alloc_field (AVAIL_FIELD, "Avail"); | - |
670 | alloc_field (PCENT_FIELD, | - |
671 | ((void *)0) | - |
672 | ); | - |
673 | alloc_field (TARGET_FIELD, | - |
674 | ((void *)0) | - |
675 | ); | - |
676 | break; never executed: break; | 0 |
677 | | - |
678 | caseexecuted 3 times by 1 test: case INODES_MODE: INODES_MODE:executed 3 times by 1 test: case INODES_MODE: | 3 |
679 | alloc_field (SOURCE_FIELD, | - |
680 | ((void *)0) | - |
681 | ); | - |
682 | if (print_typeTRUE | evaluated 1 time by 1 test | FALSE | evaluated 2 times by 1 test |
) | 1-2 |
683 | alloc_field (FSTYPE_FIELD, executed 1 time by 1 test: alloc_field (FSTYPE_FIELD, ((void *)0) ); | 1 |
684 | ((void *)0)executed 1 time by 1 test: alloc_field (FSTYPE_FIELD, ((void *)0) ); | 1 |
685 | );executed 1 time by 1 test: alloc_field (FSTYPE_FIELD, ((void *)0) ); | 1 |
686 | alloc_field (ITOTAL_FIELD, | - |
687 | ((void *)0) | - |
688 | ); | - |
689 | alloc_field (IUSED_FIELD, | - |
690 | ((void *)0) | - |
691 | ); | - |
692 | alloc_field (IAVAIL_FIELD, | - |
693 | ((void *)0) | - |
694 | ); | - |
695 | alloc_field (IPCENT_FIELD, | - |
696 | ((void *)0) | - |
697 | ); | - |
698 | alloc_field (TARGET_FIELD, | - |
699 | ((void *)0) | - |
700 | ); | - |
701 | break;executed 3 times by 1 test: break; | 3 |
702 | | - |
703 | caseexecuted 3 times by 1 test: case POSIX_MODE: POSIX_MODE:executed 3 times by 1 test: case POSIX_MODE: | 3 |
704 | alloc_field (SOURCE_FIELD, | - |
705 | ((void *)0) | - |
706 | ); | - |
707 | if (print_typeTRUE | never evaluated | FALSE | evaluated 3 times by 1 test |
) | 0-3 |
708 | alloc_field (FSTYPE_FIELD, never executed: alloc_field (FSTYPE_FIELD, ((void *)0) ); | 0 |
709 | ((void *)0) never executed: alloc_field (FSTYPE_FIELD, ((void *)0) ); | 0 |
710 | ); never executed: alloc_field (FSTYPE_FIELD, ((void *)0) ); | 0 |
711 | alloc_field (SIZE_FIELD, | - |
712 | ((void *)0) | - |
713 | ); | - |
714 | alloc_field (USED_FIELD, | - |
715 | ((void *)0) | - |
716 | ); | - |
717 | alloc_field (AVAIL_FIELD, | - |
718 | ((void *)0) | - |
719 | ); | - |
720 | alloc_field (PCENT_FIELD, "Capacity"); | - |
721 | alloc_field (TARGET_FIELD, | - |
722 | ((void *)0) | - |
723 | ); | - |
724 | break;executed 3 times by 1 test: break; | 3 |
725 | | - |
726 | caseexecuted 14 times by 1 test: case OUTPUT_MODE: OUTPUT_MODE:executed 14 times by 1 test: case OUTPUT_MODE: | 14 |
727 | if (!ncolumnsTRUE | evaluated 1 time by 1 test | FALSE | evaluated 13 times by 1 test |
) | 1-13 |
728 | { | - |
729 | | - |
730 | decode_output_arg (all_args_string); | - |
731 | }executed 1 time by 1 test: end of block | 1 |
732 | break;executed 14 times by 1 test: break; | 14 |
733 | | - |
734 | default never executed: default: :never executed: default: | 0 |
735 | | - |
736 | (( | - |
737 | !"invalid header_mode" | - |
738 | ) ? (void) (0) : __assert_fail ( | - |
739 | "!\"invalid header_mode\"" | - |
740 | , "src/df.c", 496, __PRETTY_FUNCTION__)) | - |
741 | ; | - |
742 | } never executed: end of block | 0 |
743 | } | - |
744 | | - |
745 | | - |
746 | | - |
747 | static void | - |
748 | get_header (void) | - |
749 | { | - |
750 | size_t col; | - |
751 | | - |
752 | alloc_table_row (); | - |
753 | | - |
754 | for (col = 0; col < ncolumnsTRUE | evaluated 386 times by 1 test | FALSE | evaluated 71 times by 1 test |
; col++) | 71-386 |
755 | { | - |
756 | char *cell = | - |
757 | ((void *)0) | - |
758 | ; | - |
759 | char const *header = | - |
760 | dcgettext (((void *)0), | - |
761 | columns[col]->caption | - |
762 | , 5) | - |
763 | ; | - |
764 | | - |
765 | if (columns[col]->field == SIZE_FIELDTRUE | evaluated 57 times by 1 test | FALSE | evaluated 329 times by 1 test |
| 57-329 |
766 | && (header_mode == DEFAULT_MODETRUE | evaluated 51 times by 1 test | FALSE | evaluated 6 times by 1 test |
| 6-51 |
767 | || (header_mode == OUTPUT_MODETRUE | evaluated 3 times by 1 test | FALSE | evaluated 3 times by 1 test |
| 3 |
768 | && !(human_output_opts & human_autoscale)TRUE | evaluated 1 time by 1 test | FALSE | evaluated 2 times by 1 test |
))) | 1-2 |
769 | { | - |
770 | char buf[((2 * sizeof (uintmax_t) * 8 * 146 / 485 + 1) * ( | - |
771 | 16 | - |
772 | + 1) - | - |
773 | 16 | - |
774 | + 1 + 3) + 1]; | - |
775 | | - |
776 | int opts = (human_suppress_point_zero | - |
777 | | human_autoscale | human_SI | - |
778 | | (human_output_opts | - |
779 | & (human_group_digits | human_base_1024 | human_B))); | - |
780 | | - |
781 | | - |
782 | | - |
783 | | - |
784 | uintmax_t q1000 = output_block_size; | - |
785 | uintmax_t q1024 = output_block_size; | - |
786 | | - |
787 | _Bool | - |
788 | divisible_by_1000; | - |
789 | | - |
790 | _Bool | - |
791 | divisible_by_1024; | - |
792 | | - |
793 | do | - |
794 | { | - |
795 | divisible_by_1000 = q1000 % 1000 == 0; q1000 /= 1000; | - |
796 | divisible_by_1024 = q1024 % 1024 == 0; q1024 /= 1024; | - |
797 | }executed 52 times by 1 test: end of block | 52 |
798 | while (divisible_by_1000 & divisible_by_1024TRUE | never evaluated | FALSE | evaluated 52 times by 1 test |
); | 0-52 |
799 | | - |
800 | if (divisible_by_1000 < divisible_by_1024TRUE | evaluated 52 times by 1 test | FALSE | never evaluated |
) | 0-52 |
801 | opts |= human_base_1024;executed 52 times by 1 test: opts |= human_base_1024; | 52 |
802 | if (divisible_by_1024 < divisible_by_1000TRUE | never evaluated | FALSE | evaluated 52 times by 1 test |
) | 0-52 |
803 | opts &= ~human_base_1024; never executed: opts &= ~human_base_1024; | 0 |
804 | if (! (opts & human_base_1024)TRUE | never evaluated | FALSE | evaluated 52 times by 1 test |
) | 0-52 |
805 | opts |= human_B; never executed: opts |= human_B; | 0 |
806 | | - |
807 | char *num = human_readable (output_block_size, buf, opts, 1, 1); | - |
808 | | - |
809 | | - |
810 | header = | - |
811 | dcgettext (((void *)0), | - |
812 | "blocks" | - |
813 | , 5) | - |
814 | ; | - |
815 | | - |
816 | | - |
817 | if (asprintf (&cell, TRUE | never evaluated | FALSE | evaluated 52 times by 1 test |
| 0-52 |
818 | dcgettext (((void *)0), TRUE | never evaluated | FALSE | evaluated 52 times by 1 test |
| 0-52 |
819 | "%s-%s"TRUE | never evaluated | FALSE | evaluated 52 times by 1 test |
| 0-52 |
820 | , 5)TRUE | never evaluated | FALSE | evaluated 52 times by 1 test |
| 0-52 |
821 | , num, header) == -1TRUE | never evaluated | FALSE | evaluated 52 times by 1 test |
) | 0-52 |
822 | cell = never executed: cell = ((void *)0) ; | 0 |
823 | ((void *)0) never executed: cell = ((void *)0) ; | 0 |
824 | ; never executed: cell = ((void *)0) ; | 0 |
825 | }executed 52 times by 1 test: end of block | 52 |
826 | else if (header_mode == POSIX_MODETRUE | evaluated 18 times by 1 test | FALSE | evaluated 316 times by 1 test |
&& columns[col]->field == SIZE_FIELDTRUE | evaluated 3 times by 1 test | FALSE | evaluated 15 times by 1 test |
) | 3-316 |
827 | { | - |
828 | char buf[((((((sizeof (uintmax_t) * 8) - (! ((__typeof__ (uintmax_t)) 0 < (__typeof__ (uintmax_t)) -1))) * 146 + 484) / 485) + (! ((__typeof__ (uintmax_t)) 0 < (__typeof__ (uintmax_t)) -1))) + 1)]; | - |
829 | char *num = umaxtostr (output_block_size, buf); | - |
830 | | - |
831 | | - |
832 | if (asprintf (&cell, TRUE | never evaluated | FALSE | evaluated 3 times by 1 test |
| 0-3 |
833 | dcgettext (((void *)0), TRUE | never evaluated | FALSE | evaluated 3 times by 1 test |
| 0-3 |
834 | "%s-%s"TRUE | never evaluated | FALSE | evaluated 3 times by 1 test |
| 0-3 |
835 | , 5)TRUE | never evaluated | FALSE | evaluated 3 times by 1 test |
| 0-3 |
836 | , num, header) == -1TRUE | never evaluated | FALSE | evaluated 3 times by 1 test |
) | 0-3 |
837 | cell = never executed: cell = ((void *)0) ; | 0 |
838 | ((void *)0) never executed: cell = ((void *)0) ; | 0 |
839 | ; never executed: cell = ((void *)0) ; | 0 |
840 | }executed 3 times by 1 test: end of block | 3 |
841 | else | - |
842 | cell = executed 331 times by 1 test: cell = (__extension__ (__builtin_constant_p ( header ) && ((size_t)(const void *)(( header ) + 1) - (size_t)(const void *)( header ) == 1) ? (((const char *) ( header ))[0] == '\0' ? (char *) calloc ((size_t) 1, (size_t) 1) : ({ size_t __len = strlen ( header ) + 1; char *__retval = (char *) malloc (__len); if (__retval != ((void *)0)) __retval = (char *) memcpy (__retval, header , __len); __retval; })) : __strdup ( header ))) ; | 331 |
843 | (__extension__ (__builtin_constant_p (TRUE | never evaluated | FALSE | evaluated 331 times by 1 test |
executed 331 times by 1 test: cell = (__extension__ (__builtin_constant_p ( header ) && ((size_t)(const void *)(( header ) + 1) - (size_t)(const void *)( header ) == 1) ? (((const char *) ( header ))[0] == '\0' ? (char *) calloc ((size_t) 1, (size_t) 1) : ({ size_t __len = strlen ( header ) + 1; char *__retval = (char *) malloc (__len); if (__retval != ((void *)0)) __retval = (char *) memcpy (__retval, header , __len); __retval; })) : __strdup ( header ))) ; | 0-331 |
844 | headerTRUE | never evaluated | FALSE | evaluated 331 times by 1 test |
executed 331 times by 1 test: cell = (__extension__ (__builtin_constant_p ( header ) && ((size_t)(const void *)(( header ) + 1) - (size_t)(const void *)( header ) == 1) ? (((const char *) ( header ))[0] == '\0' ? (char *) calloc ((size_t) 1, (size_t) 1) : ({ size_t __len = strlen ( header ) + 1; char *__retval = (char *) malloc (__len); if (__retval != ((void *)0)) __retval = (char *) memcpy (__retval, header , __len); __retval; })) : __strdup ( header ))) ; | 0-331 |
845 | )TRUE | never evaluated | FALSE | evaluated 331 times by 1 test |
&& ((TRUE | never evaluated | FALSE | never evaluated |
size_t)(const void *)((TRUE | never evaluated | FALSE | never evaluated |
executed 331 times by 1 test: cell = (__extension__ (__builtin_constant_p ( header ) && ((size_t)(const void *)(( header ) + 1) - (size_t)(const void *)( header ) == 1) ? (((const char *) ( header ))[0] == '\0' ? (char *) calloc ((size_t) 1, (size_t) 1) : ({ size_t __len = strlen ( header ) + 1; char *__retval = (char *) malloc (__len); if (__retval != ((void *)0)) __retval = (char *) memcpy (__retval, header , __len); __retval; })) : __strdup ( header ))) ; | 0-331 |
846 | headerTRUE | never evaluated | FALSE | never evaluated |
executed 331 times by 1 test: cell = (__extension__ (__builtin_constant_p ( header ) && ((size_t)(const void *)(( header ) + 1) - (size_t)(const void *)( header ) == 1) ? (((const char *) ( header ))[0] == '\0' ? (char *) calloc ((size_t) 1, (size_t) 1) : ({ size_t __len = strlen ( header ) + 1; char *__retval = (char *) malloc (__len); if (__retval != ((void *)0)) __retval = (char *) memcpy (__retval, header , __len); __retval; })) : __strdup ( header ))) ; | 0-331 |
847 | ) + 1) - (size_t)(const void *)(TRUE | never evaluated | FALSE | never evaluated |
executed 331 times by 1 test: cell = (__extension__ (__builtin_constant_p ( header ) && ((size_t)(const void *)(( header ) + 1) - (size_t)(const void *)( header ) == 1) ? (((const char *) ( header ))[0] == '\0' ? (char *) calloc ((size_t) 1, (size_t) 1) : ({ size_t __len = strlen ( header ) + 1; char *__retval = (char *) malloc (__len); if (__retval != ((void *)0)) __retval = (char *) memcpy (__retval, header , __len); __retval; })) : __strdup ( header ))) ; | 0-331 |
848 | headerTRUE | never evaluated | FALSE | never evaluated |
executed 331 times by 1 test: cell = (__extension__ (__builtin_constant_p ( header ) && ((size_t)(const void *)(( header ) + 1) - (size_t)(const void *)( header ) == 1) ? (((const char *) ( header ))[0] == '\0' ? (char *) calloc ((size_t) 1, (size_t) 1) : ({ size_t __len = strlen ( header ) + 1; char *__retval = (char *) malloc (__len); if (__retval != ((void *)0)) __retval = (char *) memcpy (__retval, header , __len); __retval; })) : __strdup ( header ))) ; | 0-331 |
849 | ) == 1)TRUE | never evaluated | FALSE | never evaluated |
? (((constTRUE | never evaluated | FALSE | never evaluated |
char *) (TRUE | never evaluated | FALSE | never evaluated |
executed 331 times by 1 test: cell = (__extension__ (__builtin_constant_p ( header ) && ((size_t)(const void *)(( header ) + 1) - (size_t)(const void *)( header ) == 1) ? (((const char *) ( header ))[0] == '\0' ? (char *) calloc ((size_t) 1, (size_t) 1) : ({ size_t __len = strlen ( header ) + 1; char *__retval = (char *) malloc (__len); if (__retval != ((void *)0)) __retval = (char *) memcpy (__retval, header , __len); __retval; })) : __strdup ( header ))) ; | 0-331 |
850 | headerTRUE | never evaluated | FALSE | never evaluated |
executed 331 times by 1 test: cell = (__extension__ (__builtin_constant_p ( header ) && ((size_t)(const void *)(( header ) + 1) - (size_t)(const void *)( header ) == 1) ? (((const char *) ( header ))[0] == '\0' ? (char *) calloc ((size_t) 1, (size_t) 1) : ({ size_t __len = strlen ( header ) + 1; char *__retval = (char *) malloc (__len); if (__retval != ((void *)0)) __retval = (char *) memcpy (__retval, header , __len); __retval; })) : __strdup ( header ))) ; | 0-331 |
851 | ))[0] == '\0'TRUE | never evaluated | FALSE | never evaluated |
? (char *) calloc ((size_t) 1, (size_t) 1) : ({ size_t __len = strlen (executed 331 times by 1 test: cell = (__extension__ (__builtin_constant_p ( header ) && ((size_t)(const void *)(( header ) + 1) - (size_t)(const void *)( header ) == 1) ? (((const char *) ( header ))[0] == '\0' ? (char *) calloc ((size_t) 1, (size_t) 1) : ({ size_t __len = strlen ( header ) + 1; char *__retval = (char *) malloc (__len); if (__retval != ((void *)0)) __retval = (char *) memcpy (__retval, header , __len); __retval; })) : __strdup ( header ))) ; | 0-331 |
852 | headerexecuted 331 times by 1 test: cell = (__extension__ (__builtin_constant_p ( header ) && ((size_t)(const void *)(( header ) + 1) - (size_t)(const void *)( header ) == 1) ? (((const char *) ( header ))[0] == '\0' ? (char *) calloc ((size_t) 1, (size_t) 1) : ({ size_t __len = strlen ( header ) + 1; char *__retval = (char *) malloc (__len); if (__retval != ((void *)0)) __retval = (char *) memcpy (__retval, header , __len); __retval; })) : __strdup ( header ))) ; | 331 |
853 | ) + 1; char *__retval = (char *) malloc (__len); if (__retval != ((void *)0)TRUE | never evaluated | FALSE | never evaluated |
) __retval = (char *) memcpy (__retval, never executed: __retval = (char *) memcpy (__retval, header , __len); executed 331 times by 1 test: cell = (__extension__ (__builtin_constant_p ( header ) && ((size_t)(const void *)(( header ) + 1) - (size_t)(const void *)( header ) == 1) ? (((const char *) ( header ))[0] == '\0' ? (char *) calloc ((size_t) 1, (size_t) 1) : ({ size_t __len = strlen ( header ) + 1; char *__retval = (char *) malloc (__len); if (__retval != ((void *)0)) __retval = (char *) memcpy (__retval, header , __len); __retval; })) : __strdup ( header ))) ; | 0-331 |
854 | header never executed: __retval = (char *) memcpy (__retval, header , __len); executed 331 times by 1 test: cell = (__extension__ (__builtin_constant_p ( header ) && ((size_t)(const void *)(( header ) + 1) - (size_t)(const void *)( header ) == 1) ? (((const char *) ( header ))[0] == '\0' ? (char *) calloc ((size_t) 1, (size_t) 1) : ({ size_t __len = strlen ( header ) + 1; char *__retval = (char *) malloc (__len); if (__retval != ((void *)0)) __retval = (char *) memcpy (__retval, header , __len); __retval; })) : __strdup ( header ))) ; | 0-331 |
855 | , __len); never executed: __retval = (char *) memcpy (__retval, header , __len); __retval; })) : __strdup (executed 331 times by 1 test: cell = (__extension__ (__builtin_constant_p ( header ) && ((size_t)(const void *)(( header ) + 1) - (size_t)(const void *)( header ) == 1) ? (((const char *) ( header ))[0] == '\0' ? (char *) calloc ((size_t) 1, (size_t) 1) : ({ size_t __len = strlen ( header ) + 1; char *__retval = (char *) malloc (__len); if (__retval != ((void *)0)) __retval = (char *) memcpy (__retval, header , __len); __retval; })) : __strdup ( header ))) ; | 0-331 |
856 | headerexecuted 331 times by 1 test: cell = (__extension__ (__builtin_constant_p ( header ) && ((size_t)(const void *)(( header ) + 1) - (size_t)(const void *)( header ) == 1) ? (((const char *) ( header ))[0] == '\0' ? (char *) calloc ((size_t) 1, (size_t) 1) : ({ size_t __len = strlen ( header ) + 1; char *__retval = (char *) malloc (__len); if (__retval != ((void *)0)) __retval = (char *) memcpy (__retval, header , __len); __retval; })) : __strdup ( header ))) ; | 331 |
857 | )))executed 331 times by 1 test: cell = (__extension__ (__builtin_constant_p ( header ) && ((size_t)(const void *)(( header ) + 1) - (size_t)(const void *)( header ) == 1) ? (((const char *) ( header ))[0] == '\0' ? (char *) calloc ((size_t) 1, (size_t) 1) : ({ size_t __len = strlen ( header ) + 1; char *__retval = (char *) malloc (__len); if (__retval != ((void *)0)) __retval = (char *) memcpy (__retval, header , __len); __retval; })) : __strdup ( header ))) ; | 331 |
858 | ;executed 331 times by 1 test: cell = (__extension__ (__builtin_constant_p ( header ) && ((size_t)(const void *)(( header ) + 1) - (size_t)(const void *)( header ) == 1) ? (((const char *) ( header ))[0] == '\0' ? (char *) calloc ((size_t) 1, (size_t) 1) : ({ size_t __len = strlen ( header ) + 1; char *__retval = (char *) malloc (__len); if (__retval != ((void *)0)) __retval = (char *) memcpy (__retval, header , __len); __retval; })) : __strdup ( header ))) ; | 331 |
859 | | - |
860 | if (!cellTRUE | never evaluated | FALSE | evaluated 386 times by 1 test |
) | 0-386 |
861 | xalloc_die (); never executed: xalloc_die (); | 0 |
862 | | - |
863 | hide_problematic_chars (cell); | - |
864 | | - |
865 | table[nrows - 1][col] = cell; | - |
866 | | - |
867 | columns[col]->width = | - |
868 | (((TRUE | evaluated 123 times by 1 test | FALSE | evaluated 263 times by 1 test |
| 123-263 |
869 | columns[col]->widthTRUE | evaluated 123 times by 1 test | FALSE | evaluated 263 times by 1 test |
| 123-263 |
870 | )>(TRUE | evaluated 123 times by 1 test | FALSE | evaluated 263 times by 1 test |
| 123-263 |
871 | gnu_mbswidth (cell, 0)TRUE | evaluated 123 times by 1 test | FALSE | evaluated 263 times by 1 test |
| 123-263 |
872 | ))TRUE | evaluated 123 times by 1 test | FALSE | evaluated 263 times by 1 test |
?( | 123-263 |
873 | columns[col]->width | - |
874 | ):( | - |
875 | gnu_mbswidth (cell, 0) | - |
876 | )) | - |
877 | ; | - |
878 | }executed 386 times by 1 test: end of block | 386 |
879 | }executed 71 times by 1 test: end of block | 71 |
880 | | - |
881 | | - |
882 | | - |
883 | static | - |
884 | _Bool __attribute__ ((__pure__)) | - |
885 | | - |
886 | selected_fstype (const char *fstype) | - |
887 | { | - |
888 | const struct fs_type_list *fsp; | - |
889 | | - |
890 | if (fs_select_list == TRUE | evaluated 1025 times by 1 test | FALSE | evaluated 3 times by 1 test |
| 3-1025 |
891 | ((void *)0)TRUE | evaluated 1025 times by 1 test | FALSE | evaluated 3 times by 1 test |
| 3-1025 |
892 | || fstype == TRUE | never evaluated | FALSE | evaluated 3 times by 1 test |
| 0-3 |
893 | ((void *)0)TRUE | never evaluated | FALSE | evaluated 3 times by 1 test |
| 0-3 |
894 | ) | - |
895 | returnexecuted 1025 times by 1 test: return 1 ; executed 1025 times by 1 test: return 1 ; | 1025 |
896 | 1executed 1025 times by 1 test: return 1 ; | 1025 |
897 | ;executed 1025 times by 1 test: return 1 ; | 1025 |
898 | for (fsp = fs_select_list; fspTRUE | evaluated 4 times by 1 test | FALSE | evaluated 3 times by 1 test |
; fsp = fsp->fs_next) | 3-4 |
899 | if ((TRUE | never evaluated | FALSE | evaluated 4 times by 1 test |
| 0-4 |
900 | __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (TRUE | never evaluated | FALSE | evaluated 4 times by 1 test |
| 0-4 |
901 | fstypeTRUE | never evaluated | FALSE | evaluated 4 times by 1 test |
| 0-4 |
902 | ) && __builtin_constant_p (TRUE | never evaluated | FALSE | evaluated 4 times by 1 test |
| 0-4 |
903 | fsp->fs_nameTRUE | never evaluated | FALSE | evaluated 4 times by 1 test |
| 0-4 |
904 | ) && (__s1_len = __builtin_strlen (TRUE | never evaluated | FALSE | evaluated 4 times by 1 test |
| 0-4 |
905 | fstypeTRUE | never evaluated | FALSE | evaluated 4 times by 1 test |
| 0-4 |
906 | ), __s2_len = __builtin_strlen (TRUE | never evaluated | FALSE | evaluated 4 times by 1 test |
| 0-4 |
907 | fsp->fs_nameTRUE | never evaluated | FALSE | evaluated 4 times by 1 test |
| 0-4 |
908 | ), (!((size_t)(const void *)((TRUE | never evaluated | FALSE | evaluated 4 times by 1 test |
| 0-4 |
909 | fstypeTRUE | never evaluated | FALSE | evaluated 4 times by 1 test |
| 0-4 |
910 | ) + 1) - (size_t)(const void *)(TRUE | never evaluated | FALSE | evaluated 4 times by 1 test |
| 0-4 |
911 | fstypeTRUE | never evaluated | FALSE | evaluated 4 times by 1 test |
| 0-4 |
912 | ) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((TRUE | never evaluated | FALSE | evaluated 4 times by 1 test |
| 0-4 |
913 | fsp->fs_nameTRUE | never evaluated | FALSE | evaluated 4 times by 1 test |
| 0-4 |
914 | ) + 1) - (size_t)(const void *)(TRUE | never evaluated | FALSE | evaluated 4 times by 1 test |
| 0-4 |
915 | fsp->fs_nameTRUE | never evaluated | FALSE | evaluated 4 times by 1 test |
| 0-4 |
916 | ) == 1) || __s2_len >= 4)) ? __builtin_strcmp (TRUE | never evaluated | FALSE | evaluated 4 times by 1 test |
| 0-4 |
917 | fstypeTRUE | never evaluated | FALSE | evaluated 4 times by 1 test |
| 0-4 |
918 | , TRUE | never evaluated | FALSE | evaluated 4 times by 1 test |
| 0-4 |
919 | fsp->fs_nameTRUE | never evaluated | FALSE | evaluated 4 times by 1 test |
| 0-4 |
920 | ) : (__builtin_constant_p (TRUE | never evaluated | FALSE | evaluated 4 times by 1 test |
| 0-4 |
921 | fstypeTRUE | never evaluated | FALSE | evaluated 4 times by 1 test |
| 0-4 |
922 | ) && ((size_t)(const void *)((TRUE | never evaluated | FALSE | evaluated 4 times by 1 test |
| 0-4 |
923 | fstypeTRUE | never evaluated | FALSE | evaluated 4 times by 1 test |
| 0-4 |
924 | ) + 1) - (size_t)(const void *)(TRUE | never evaluated | FALSE | evaluated 4 times by 1 test |
| 0-4 |
925 | fstypeTRUE | never evaluated | FALSE | evaluated 4 times by 1 test |
| 0-4 |
926 | ) == 1) && (__s1_len = __builtin_strlen (TRUE | never evaluated | FALSE | evaluated 4 times by 1 test |
| 0-4 |
927 | fstypeTRUE | never evaluated | FALSE | evaluated 4 times by 1 test |
| 0-4 |
928 | ), __s1_len < 4) ? (__builtin_constant_p (TRUE | never evaluated | FALSE | evaluated 4 times by 1 test |
| 0-4 |
929 | fsp->fs_nameTRUE | never evaluated | FALSE | evaluated 4 times by 1 test |
| 0-4 |
930 | ) && ((size_t)(const void *)((TRUE | never evaluated | FALSE | evaluated 4 times by 1 test |
| 0-4 |
931 | fsp->fs_nameTRUE | never evaluated | FALSE | evaluated 4 times by 1 test |
| 0-4 |
932 | ) + 1) - (size_t)(const void *)(TRUE | never evaluated | FALSE | evaluated 4 times by 1 test |
| 0-4 |
933 | fsp->fs_nameTRUE | never evaluated | FALSE | evaluated 4 times by 1 test |
| 0-4 |
934 | ) == 1) ? __builtin_strcmp (TRUE | never evaluated | FALSE | evaluated 4 times by 1 test |
| 0-4 |
935 | fstypeTRUE | never evaluated | FALSE | evaluated 4 times by 1 test |
| 0-4 |
936 | , TRUE | never evaluated | FALSE | evaluated 4 times by 1 test |
| 0-4 |
937 | fsp->fs_nameTRUE | never evaluated | FALSE | evaluated 4 times by 1 test |
| 0-4 |
938 | ) : (__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (TRUE | never evaluated | FALSE | evaluated 4 times by 1 test |
| 0-4 |
939 | fsp->fs_nameTRUE | never evaluated | FALSE | evaluated 4 times by 1 test |
| 0-4 |
940 | ); int __result = (((const unsigned char *) (const char *) (TRUE | never evaluated | FALSE | evaluated 4 times by 1 test |
| 0-4 |
941 | fstypeTRUE | never evaluated | FALSE | evaluated 4 times by 1 test |
| 0-4 |
942 | ))[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 4 times by 1 test |
| 0-4 |
943 | fstypeTRUE | never evaluated | FALSE | evaluated 4 times by 1 test |
| 0-4 |
944 | ))[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 4 times by 1 test |
| 0-4 |
945 | fstypeTRUE | never evaluated | FALSE | evaluated 4 times by 1 test |
| 0-4 |
946 | ))[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 *) ( fstype ))[3] - __s2[3]); TRUE | never evaluated | FALSE | evaluated 4 times by 1 test |
| 0-4 |
947 | fstypeTRUE | never evaluated | FALSE | evaluated 4 times by 1 test |
never executed: __result = (((const unsigned char *) (const char *) ( fstype ))[3] - __s2[3]); | 0-4 |
948 | ))[3] - __s2[3]);TRUE | never evaluated | FALSE | evaluated 4 times by 1 test |
never executed: __result = (((const unsigned char *) (const char *) ( fstype ))[3] - __s2[3]); }never executed: end of block }never executed: end of block __result; }))) : (__builtin_constant_p (TRUE | never evaluated | FALSE | evaluated 4 times by 1 test |
| 0-4 |
949 | fsp->fs_nameTRUE | never evaluated | FALSE | evaluated 4 times by 1 test |
| 0-4 |
950 | ) && ((size_t)(const void *)((TRUE | never evaluated | FALSE | evaluated 4 times by 1 test |
| 0-4 |
951 | fsp->fs_nameTRUE | never evaluated | FALSE | evaluated 4 times by 1 test |
| 0-4 |
952 | ) + 1) - (size_t)(const void *)(TRUE | never evaluated | FALSE | evaluated 4 times by 1 test |
| 0-4 |
953 | fsp->fs_nameTRUE | never evaluated | FALSE | evaluated 4 times by 1 test |
| 0-4 |
954 | ) == 1) && (__s2_len = __builtin_strlen (TRUE | never evaluated | FALSE | evaluated 4 times by 1 test |
| 0-4 |
955 | fsp->fs_nameTRUE | never evaluated | FALSE | evaluated 4 times by 1 test |
| 0-4 |
956 | ), __s2_len < 4) ? (__builtin_constant_p (TRUE | never evaluated | FALSE | evaluated 4 times by 1 test |
| 0-4 |
957 | fstypeTRUE | never evaluated | FALSE | evaluated 4 times by 1 test |
| 0-4 |
958 | ) && ((size_t)(const void *)((TRUE | never evaluated | FALSE | evaluated 4 times by 1 test |
| 0-4 |
959 | fstypeTRUE | never evaluated | FALSE | evaluated 4 times by 1 test |
| 0-4 |
960 | ) + 1) - (size_t)(const void *)(TRUE | never evaluated | FALSE | evaluated 4 times by 1 test |
| 0-4 |
961 | fstypeTRUE | never evaluated | FALSE | evaluated 4 times by 1 test |
| 0-4 |
962 | ) == 1) ? __builtin_strcmp (TRUE | never evaluated | FALSE | evaluated 4 times by 1 test |
| 0-4 |
963 | fstypeTRUE | never evaluated | FALSE | evaluated 4 times by 1 test |
| 0-4 |
964 | , TRUE | never evaluated | FALSE | evaluated 4 times by 1 test |
| 0-4 |
965 | fsp->fs_nameTRUE | never evaluated | FALSE | evaluated 4 times by 1 test |
| 0-4 |
966 | ) : -(__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (TRUE | never evaluated | FALSE | evaluated 4 times by 1 test |
| 0-4 |
967 | fstypeTRUE | never evaluated | FALSE | evaluated 4 times by 1 test |
| 0-4 |
968 | ); int __result = (((const unsigned char *) (const char *) (TRUE | never evaluated | FALSE | evaluated 4 times by 1 test |
| 0-4 |
969 | fsp->fs_nameTRUE | never evaluated | FALSE | evaluated 4 times by 1 test |
| 0-4 |
970 | ))[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 4 times by 1 test |
| 0-4 |
971 | fsp->fs_nameTRUE | never evaluated | FALSE | evaluated 4 times by 1 test |
| 0-4 |
972 | ))[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 4 times by 1 test |
| 0-4 |
973 | fsp->fs_nameTRUE | never evaluated | FALSE | evaluated 4 times by 1 test |
| 0-4 |
974 | ))[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 *) ( fsp->fs_name ))[3] - __s2[3]); TRUE | never evaluated | FALSE | evaluated 4 times by 1 test |
| 0-4 |
975 | fsp->fs_nameTRUE | never evaluated | FALSE | evaluated 4 times by 1 test |
never executed: __result = (((const unsigned char *) (const char *) ( fsp->fs_name ))[3] - __s2[3]); | 0-4 |
976 | ))[3] - __s2[3]);TRUE | never evaluated | FALSE | evaluated 4 times by 1 test |
never executed: __result = (((const unsigned char *) (const char *) ( fsp->fs_name ))[3] - __s2[3]); }never executed: end of block }never executed: end of block __result; }))) : __builtin_strcmp (TRUE | never evaluated | FALSE | evaluated 4 times by 1 test |
| 0-4 |
977 | fstypeTRUE | never evaluated | FALSE | evaluated 4 times by 1 test |
| 0-4 |
978 | , TRUE | never evaluated | FALSE | evaluated 4 times by 1 test |
| 0-4 |
979 | fsp->fs_nameTRUE | never evaluated | FALSE | evaluated 4 times by 1 test |
| 0-4 |
980 | )))); }) TRUE | never evaluated | FALSE | evaluated 4 times by 1 test |
| 0-4 |
981 | == 0)TRUE | never evaluated | FALSE | evaluated 4 times by 1 test |
) | 0-4 |
982 | return never executed: return 1 ; never executed: return 1 ; | 0 |
983 | 1 never executed: return 1 ; | 0 |
984 | ; never executed: return 1 ; | 0 |
985 | returnexecuted 3 times by 1 test: return 0 ; executed 3 times by 1 test: return 0 ; | 3 |
986 | 0executed 3 times by 1 test: return 0 ; | 3 |
987 | ;executed 3 times by 1 test: return 0 ; | 3 |
988 | } | - |
989 | | - |
990 | | - |
991 | | - |
992 | static | - |
993 | _Bool __attribute__ ((__pure__)) | - |
994 | | - |
995 | excluded_fstype (const char *fstype) | - |
996 | { | - |
997 | const struct fs_type_list *fsp; | - |
998 | | - |
999 | if (fs_exclude_list == TRUE | evaluated 1025 times by 1 test | FALSE | never evaluated |
| 0-1025 |
1000 | ((void *)0)TRUE | evaluated 1025 times by 1 test | FALSE | never evaluated |
| 0-1025 |
1001 | || fstype == TRUE | never evaluated | FALSE | never evaluated |
| 0 |
1002 | ((void *)0)TRUE | never evaluated | FALSE | never evaluated |
| 0 |
1003 | ) | - |
1004 | returnexecuted 1025 times by 1 test: return 0 ; executed 1025 times by 1 test: return 0 ; | 1025 |
1005 | 0executed 1025 times by 1 test: return 0 ; | 1025 |
1006 | ;executed 1025 times by 1 test: return 0 ; | 1025 |
1007 | for (fsp = fs_exclude_list; fspTRUE | never evaluated | FALSE | never evaluated |
; fsp = fsp->fs_next) | 0 |
1008 | if ((TRUE | never evaluated | FALSE | never evaluated |
| 0 |
1009 | __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (TRUE | never evaluated | FALSE | never evaluated |
| 0 |
1010 | fstypeTRUE | never evaluated | FALSE | never evaluated |
| 0 |
1011 | ) && __builtin_constant_p (TRUE | never evaluated | FALSE | never evaluated |
| 0 |
1012 | fsp->fs_nameTRUE | never evaluated | FALSE | never evaluated |
| 0 |
1013 | ) && (__s1_len = __builtin_strlen (TRUE | never evaluated | FALSE | never evaluated |
| 0 |
1014 | fstypeTRUE | never evaluated | FALSE | never evaluated |
| 0 |
1015 | ), __s2_len = __builtin_strlen (TRUE | never evaluated | FALSE | never evaluated |
| 0 |
1016 | fsp->fs_nameTRUE | never evaluated | FALSE | never evaluated |
| 0 |
1017 | ), (!((size_t)(const void *)((TRUE | never evaluated | FALSE | never evaluated |
| 0 |
1018 | fstypeTRUE | never evaluated | FALSE | never evaluated |
| 0 |
1019 | ) + 1) - (size_t)(const void *)(TRUE | never evaluated | FALSE | never evaluated |
| 0 |
1020 | fstypeTRUE | never evaluated | FALSE | never evaluated |
| 0 |
1021 | ) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((TRUE | never evaluated | FALSE | never evaluated |
| 0 |
1022 | fsp->fs_nameTRUE | never evaluated | FALSE | never evaluated |
| 0 |
1023 | ) + 1) - (size_t)(const void *)(TRUE | never evaluated | FALSE | never evaluated |
| 0 |
1024 | fsp->fs_nameTRUE | never evaluated | FALSE | never evaluated |
| 0 |
1025 | ) == 1) || __s2_len >= 4)) ? __builtin_strcmp (TRUE | never evaluated | FALSE | never evaluated |
| 0 |
1026 | fstypeTRUE | never evaluated | FALSE | never evaluated |
| 0 |
1027 | , TRUE | never evaluated | FALSE | never evaluated |
| 0 |
1028 | fsp->fs_nameTRUE | never evaluated | FALSE | never evaluated |
| 0 |
1029 | ) : (__builtin_constant_p (TRUE | never evaluated | FALSE | never evaluated |
| 0 |
1030 | fstypeTRUE | never evaluated | FALSE | never evaluated |
| 0 |
1031 | ) && ((size_t)(const void *)((TRUE | never evaluated | FALSE | never evaluated |
| 0 |
1032 | fstypeTRUE | never evaluated | FALSE | never evaluated |
| 0 |
1033 | ) + 1) - (size_t)(const void *)(TRUE | never evaluated | FALSE | never evaluated |
| 0 |
1034 | fstypeTRUE | never evaluated | FALSE | never evaluated |
| 0 |
1035 | ) == 1) && (__s1_len = __builtin_strlen (TRUE | never evaluated | FALSE | never evaluated |
| 0 |
1036 | fstypeTRUE | never evaluated | FALSE | never evaluated |
| 0 |
1037 | ), __s1_len < 4) ? (__builtin_constant_p (TRUE | never evaluated | FALSE | never evaluated |
| 0 |
1038 | fsp->fs_nameTRUE | never evaluated | FALSE | never evaluated |
| 0 |
1039 | ) && ((size_t)(const void *)((TRUE | never evaluated | FALSE | never evaluated |
| 0 |
1040 | fsp->fs_nameTRUE | never evaluated | FALSE | never evaluated |
| 0 |
1041 | ) + 1) - (size_t)(const void *)(TRUE | never evaluated | FALSE | never evaluated |
| 0 |
1042 | fsp->fs_nameTRUE | never evaluated | FALSE | never evaluated |
| 0 |
1043 | ) == 1) ? __builtin_strcmp (TRUE | never evaluated | FALSE | never evaluated |
| 0 |
1044 | fstypeTRUE | never evaluated | FALSE | never evaluated |
| 0 |
1045 | , TRUE | never evaluated | FALSE | never evaluated |
| 0 |
1046 | fsp->fs_nameTRUE | never evaluated | FALSE | never evaluated |
| 0 |
1047 | ) : (__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (TRUE | never evaluated | FALSE | never evaluated |
| 0 |
1048 | fsp->fs_nameTRUE | never evaluated | FALSE | never evaluated |
| 0 |
1049 | ); int __result = (((const unsigned char *) (const char *) (TRUE | never evaluated | FALSE | never evaluated |
| 0 |
1050 | fstypeTRUE | never evaluated | FALSE | never evaluated |
| 0 |
1051 | ))[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 | never evaluated |
| 0 |
1052 | fstypeTRUE | never evaluated | FALSE | never evaluated |
| 0 |
1053 | ))[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 | never evaluated |
| 0 |
1054 | fstypeTRUE | never evaluated | FALSE | never evaluated |
| 0 |
1055 | ))[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 *) ( fstype ))[3] - __s2[3]); | 0 |
1056 | fstypeTRUE | never evaluated | FALSE | never evaluated |
never executed: __result = (((const unsigned char *) (const char *) ( fstype ))[3] - __s2[3]); | 0 |
1057 | ))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p (TRUE | never evaluated | FALSE | never evaluated |
| 0 |
1058 | fsp->fs_nameTRUE | never evaluated | FALSE | never evaluated |
| 0 |
1059 | ) && ((size_t)(const void *)((TRUE | never evaluated | FALSE | never evaluated |
| 0 |
1060 | fsp->fs_nameTRUE | never evaluated | FALSE | never evaluated |
| 0 |
1061 | ) + 1) - (size_t)(const void *)(TRUE | never evaluated | FALSE | never evaluated |
| 0 |
1062 | fsp->fs_nameTRUE | never evaluated | FALSE | never evaluated |
| 0 |
1063 | ) == 1) && (__s2_len = __builtin_strlen (TRUE | never evaluated | FALSE | never evaluated |
| 0 |
1064 | fsp->fs_nameTRUE | never evaluated | FALSE | never evaluated |
| 0 |
1065 | ), __s2_len < 4) ? (__builtin_constant_p (TRUE | never evaluated | FALSE | never evaluated |
| 0 |
1066 | fstypeTRUE | never evaluated | FALSE | never evaluated |
| 0 |
1067 | ) && ((size_t)(const void *)((TRUE | never evaluated | FALSE | never evaluated |
| 0 |
1068 | fstypeTRUE | never evaluated | FALSE | never evaluated |
| 0 |
1069 | ) + 1) - (size_t)(const void *)(TRUE | never evaluated | FALSE | never evaluated |
| 0 |
1070 | fstypeTRUE | never evaluated | FALSE | never evaluated |
| 0 |
1071 | ) == 1) ? __builtin_strcmp (TRUE | never evaluated | FALSE | never evaluated |
| 0 |
1072 | fstypeTRUE | never evaluated | FALSE | never evaluated |
| 0 |
1073 | , TRUE | never evaluated | FALSE | never evaluated |
| 0 |
1074 | fsp->fs_nameTRUE | never evaluated | FALSE | never evaluated |
| 0 |
1075 | ) : -(__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (TRUE | never evaluated | FALSE | never evaluated |
| 0 |
1076 | fstypeTRUE | never evaluated | FALSE | never evaluated |
| 0 |
1077 | ); int __result = (((const unsigned char *) (const char *) (TRUE | never evaluated | FALSE | never evaluated |
| 0 |
1078 | fsp->fs_nameTRUE | never evaluated | FALSE | never evaluated |
| 0 |
1079 | ))[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 | never evaluated |
| 0 |
1080 | fsp->fs_nameTRUE | never evaluated | FALSE | never evaluated |
| 0 |
1081 | ))[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 | never evaluated |
| 0 |
1082 | fsp->fs_nameTRUE | never evaluated | FALSE | never evaluated |
| 0 |
1083 | ))[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 *) ( fsp->fs_name ))[3] - __s2[3]); | 0 |
1084 | fsp->fs_nameTRUE | never evaluated | FALSE | never evaluated |
never executed: __result = (((const unsigned char *) (const char *) ( fsp->fs_name ))[3] - __s2[3]); | 0 |
1085 | ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp (TRUE | never evaluated | FALSE | never evaluated |
| 0 |
1086 | fstypeTRUE | never evaluated | FALSE | never evaluated |
| 0 |
1087 | , TRUE | never evaluated | FALSE | never evaluated |
| 0 |
1088 | fsp->fs_nameTRUE | never evaluated | FALSE | never evaluated |
| 0 |
1089 | )))); }) TRUE | never evaluated | FALSE | never evaluated |
| 0 |
1090 | == 0)TRUE | never evaluated | FALSE | never evaluated |
) | 0 |
1091 | return never executed: return 1 ; never executed: return 1 ; | 0 |
1092 | 1 never executed: return 1 ; | 0 |
1093 | ; never executed: return 1 ; | 0 |
1094 | return never executed: return 0 ; never executed: return 0 ; | 0 |
1095 | 0 never executed: return 0 ; | 0 |
1096 | ; never executed: return 0 ; | 0 |
1097 | } | - |
1098 | | - |
1099 | static size_t | - |
1100 | devlist_hash (void const *x, size_t table_size) | - |
1101 | { | - |
1102 | struct devlist const *p = x; | - |
1103 | returnexecuted 1127 times by 1 test: return (uintmax_t) p->dev_num % table_size; (uintmax_t) p->dev_num % table_size;executed 1127 times by 1 test: return (uintmax_t) p->dev_num % table_size; | 1127 |
1104 | } | - |
1105 | | - |
1106 | static | - |
1107 | _Bool | - |
1108 | | - |
1109 | devlist_compare (void const *x, void const *y) | - |
1110 | { | - |
1111 | struct devlist const *a = x; | - |
1112 | struct devlist const *b = y; | - |
1113 | returnexecuted 87 times by 1 test: return a->dev_num == b->dev_num; a->dev_num == b->dev_num;executed 87 times by 1 test: return a->dev_num == b->dev_num; | 87 |
1114 | } | - |
1115 | | - |
1116 | static struct devlist * | - |
1117 | devlist_for_dev (dev_t dev) | - |
1118 | { | - |
1119 | if (devlist_table == TRUE | never evaluated | FALSE | evaluated 525 times by 1 test |
| 0-525 |
1120 | ((void *)0)TRUE | never evaluated | FALSE | evaluated 525 times by 1 test |
| 0-525 |
1121 | ) | - |
1122 | return never executed: return ((void *)0) ; never executed: return ((void *)0) ; | 0 |
1123 | ((void *)0) never executed: return ((void *)0) ; | 0 |
1124 | ; never executed: return ((void *)0) ; | 0 |
1125 | struct devlist dev_entry; | - |
1126 | dev_entry.dev_num = dev; | - |
1127 | returnexecuted 525 times by 1 test: return hash_lookup (devlist_table, &dev_entry); hash_lookup (devlist_table, &dev_entry);executed 525 times by 1 test: return hash_lookup (devlist_table, &dev_entry); | 525 |
1128 | } | - |
1129 | | - |
1130 | static void | - |
1131 | devlist_free (void *p) | - |
1132 | { | - |
1133 | free (p); | - |
1134 | }executed 567 times by 1 test: end of block | 567 |
1135 | static void | - |
1136 | filter_mount_list ( | - |
1137 | _Bool | - |
1138 | devices_only) | - |
1139 | { | - |
1140 | struct mount_entry *me; | - |
1141 | | - |
1142 | | - |
1143 | struct devlist *device_list = | - |
1144 | ((void *)0) | - |
1145 | ; | - |
1146 | int mount_list_size = 0; | - |
1147 | | - |
1148 | for (me = mount_list; meTRUE | evaluated 623 times by 1 test | FALSE | evaluated 27 times by 1 test |
; me = me->me_next) | 27-623 |
1149 | mount_list_size++;executed 623 times by 1 test: mount_list_size++; | 623 |
1150 | | - |
1151 | devlist_table = hash_initialize (mount_list_size, | - |
1152 | ((void *)0) | - |
1153 | , | - |
1154 | devlist_hash, | - |
1155 | devlist_compare, | - |
1156 | devlist_free); | - |
1157 | if (devlist_table == TRUE | never evaluated | FALSE | evaluated 27 times by 1 test |
| 0-27 |
1158 | ((void *)0)TRUE | never evaluated | FALSE | evaluated 27 times by 1 test |
| 0-27 |
1159 | ) | - |
1160 | xalloc_die (); never executed: xalloc_die (); | 0 |
1161 | | - |
1162 | | - |
1163 | for (me = mount_list; meTRUE | evaluated 623 times by 1 test | FALSE | evaluated 27 times by 1 test |
;) | 27-623 |
1164 | { | - |
1165 | struct stat buf; | - |
1166 | struct mount_entry *discard_me = | - |
1167 | ((void *)0) | - |
1168 | ; | - |
1169 | | - |
1170 | | - |
1171 | | - |
1172 | | - |
1173 | if ((me->me_remoteTRUE | evaluated 15 times by 1 test | FALSE | evaluated 608 times by 1 test |
&& show_local_fsTRUE | never evaluated | FALSE | evaluated 15 times by 1 test |
) | 0-608 |
1174 | || (me->me_dummyTRUE | evaluated 132 times by 1 test | FALSE | evaluated 491 times by 1 test |
&& !show_all_fsTRUE | evaluated 126 times by 1 test | FALSE | evaluated 6 times by 1 test |
&& !show_listed_fsTRUE | evaluated 126 times by 1 test | FALSE | never evaluated |
) | 0-491 |
1175 | || (!selected_fstype (me->me_type)TRUE | never evaluated | FALSE | evaluated 497 times by 1 test |
|| excluded_fstype (me->me_type)TRUE | never evaluated | FALSE | evaluated 497 times by 1 test |
) | 0-497 |
1176 | || -TRUE | evaluated 6 times by 1 test | FALSE | evaluated 491 times by 1 test |
1 == stat (me->me_mountdir, &buf)TRUE | evaluated 6 times by 1 test | FALSE | evaluated 491 times by 1 test |
) | 6-491 |
1177 | { | - |
1178 | | - |
1179 | | - |
1180 | | - |
1181 | buf.st_dev = me->me_dev; | - |
1182 | }executed 132 times by 1 test: end of block | 132 |
1183 | else | - |
1184 | { | - |
1185 | | - |
1186 | struct devlist *seen_dev = devlist_for_dev (buf.st_dev); | - |
1187 | | - |
1188 | if (seen_devTRUE | evaluated 25 times by 1 test | FALSE | evaluated 466 times by 1 test |
) | 25-466 |
1189 | { | - |
1190 | | - |
1191 | _Bool | - |
1192 | target_nearer_root = strlen (seen_dev->me->me_mountdir) | - |
1193 | > strlen (me->me_mountdir); | - |
1194 | | - |
1195 | | - |
1196 | _Bool | - |
1197 | source_below_root = seen_dev->me->me_mntroot != TRUE | never evaluated | FALSE | evaluated 25 times by 1 test |
| 0-25 |
1198 | ((void *)0)TRUE | never evaluated | FALSE | evaluated 25 times by 1 test |
| 0-25 |
1199 | | - |
1200 | && me->me_mntroot != TRUE | never evaluated | FALSE | never evaluated |
| 0 |
1201 | ((void *)0)TRUE | never evaluated | FALSE | never evaluated |
| 0 |
1202 | | - |
1203 | && (TRUE | never evaluated | FALSE | never evaluated |
strlen (seen_dev->me->me_mntroot)TRUE | never evaluated | FALSE | never evaluated |
| 0 |
1204 | < strlen (me->me_mntroot))TRUE | never evaluated | FALSE | never evaluated |
; | 0 |
1205 | if (! print_grand_totalTRUE | evaluated 20 times by 1 test | FALSE | evaluated 5 times by 1 test |
| 5-20 |
1206 | && me->me_remoteTRUE | evaluated 8 times by 1 test | FALSE | evaluated 12 times by 1 test |
&& seen_dev->me->me_remoteTRUE | evaluated 8 times by 1 test | FALSE | never evaluated |
| 0-12 |
1207 | && ! (TRUE | evaluated 4 times by 1 test | FALSE | evaluated 4 times by 1 test |
| 4 |
1208 | __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (TRUE | evaluated 4 times by 1 test | FALSE | evaluated 4 times by 1 test |
| 4 |
1209 | seen_dev->me->me_devnameTRUE | evaluated 4 times by 1 test | FALSE | evaluated 4 times by 1 test |
| 4 |
1210 | ) && __builtin_constant_p (TRUE | evaluated 4 times by 1 test | FALSE | evaluated 4 times by 1 test |
| 4 |
1211 | me->me_devnameTRUE | evaluated 4 times by 1 test | FALSE | evaluated 4 times by 1 test |
| 4 |
1212 | ) && (__s1_len = __builtin_strlen (TRUE | evaluated 4 times by 1 test | FALSE | evaluated 4 times by 1 test |
| 4 |
1213 | seen_dev->me->me_devnameTRUE | evaluated 4 times by 1 test | FALSE | evaluated 4 times by 1 test |
| 4 |
1214 | ), __s2_len = __builtin_strlen (TRUE | evaluated 4 times by 1 test | FALSE | evaluated 4 times by 1 test |
| 4 |
1215 | me->me_devnameTRUE | evaluated 4 times by 1 test | FALSE | evaluated 4 times by 1 test |
| 4 |
1216 | ), (!((size_t)(const void *)((TRUE | evaluated 4 times by 1 test | FALSE | evaluated 4 times by 1 test |
| 4 |
1217 | seen_dev->me->me_devnameTRUE | evaluated 4 times by 1 test | FALSE | evaluated 4 times by 1 test |
| 4 |
1218 | ) + 1) - (size_t)(const void *)(TRUE | evaluated 4 times by 1 test | FALSE | evaluated 4 times by 1 test |
| 4 |
1219 | seen_dev->me->me_devnameTRUE | evaluated 4 times by 1 test | FALSE | evaluated 4 times by 1 test |
| 4 |
1220 | ) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((TRUE | evaluated 4 times by 1 test | FALSE | evaluated 4 times by 1 test |
| 4 |
1221 | me->me_devnameTRUE | evaluated 4 times by 1 test | FALSE | evaluated 4 times by 1 test |
| 4 |
1222 | ) + 1) - (size_t)(const void *)(TRUE | evaluated 4 times by 1 test | FALSE | evaluated 4 times by 1 test |
| 4 |
1223 | me->me_devnameTRUE | evaluated 4 times by 1 test | FALSE | evaluated 4 times by 1 test |
| 4 |
1224 | ) == 1) || __s2_len >= 4)) ? __builtin_strcmp (TRUE | evaluated 4 times by 1 test | FALSE | evaluated 4 times by 1 test |
| 4 |
1225 | seen_dev->me->me_devnameTRUE | evaluated 4 times by 1 test | FALSE | evaluated 4 times by 1 test |
| 4 |
1226 | , TRUE | evaluated 4 times by 1 test | FALSE | evaluated 4 times by 1 test |
| 4 |
1227 | me->me_devnameTRUE | evaluated 4 times by 1 test | FALSE | evaluated 4 times by 1 test |
| 4 |
1228 | ) : (__builtin_constant_p (TRUE | evaluated 4 times by 1 test | FALSE | evaluated 4 times by 1 test |
| 4 |
1229 | seen_dev->me->me_devnameTRUE | evaluated 4 times by 1 test | FALSE | evaluated 4 times by 1 test |
| 4 |
1230 | ) && ((size_t)(const void *)((TRUE | evaluated 4 times by 1 test | FALSE | evaluated 4 times by 1 test |
| 4 |
1231 | seen_dev->me->me_devnameTRUE | evaluated 4 times by 1 test | FALSE | evaluated 4 times by 1 test |
| 4 |
1232 | ) + 1) - (size_t)(const void *)(TRUE | evaluated 4 times by 1 test | FALSE | evaluated 4 times by 1 test |
| 4 |
1233 | seen_dev->me->me_devnameTRUE | evaluated 4 times by 1 test | FALSE | evaluated 4 times by 1 test |
| 4 |
1234 | ) == 1) && (__s1_len = __builtin_strlen (TRUE | evaluated 4 times by 1 test | FALSE | evaluated 4 times by 1 test |
| 4 |
1235 | seen_dev->me->me_devnameTRUE | evaluated 4 times by 1 test | FALSE | evaluated 4 times by 1 test |
| 4 |
1236 | ), __s1_len < 4) ? (__builtin_constant_p (TRUE | evaluated 4 times by 1 test | FALSE | evaluated 4 times by 1 test |
| 4 |
1237 | me->me_devnameTRUE | evaluated 4 times by 1 test | FALSE | evaluated 4 times by 1 test |
| 4 |
1238 | ) && ((size_t)(const void *)((TRUE | evaluated 4 times by 1 test | FALSE | evaluated 4 times by 1 test |
| 4 |
1239 | me->me_devnameTRUE | evaluated 4 times by 1 test | FALSE | evaluated 4 times by 1 test |
| 4 |
1240 | ) + 1) - (size_t)(const void *)(TRUE | evaluated 4 times by 1 test | FALSE | evaluated 4 times by 1 test |
| 4 |
1241 | me->me_devnameTRUE | evaluated 4 times by 1 test | FALSE | evaluated 4 times by 1 test |
| 4 |
1242 | ) == 1) ? __builtin_strcmp (TRUE | evaluated 4 times by 1 test | FALSE | evaluated 4 times by 1 test |
| 4 |
1243 | seen_dev->me->me_devnameTRUE | evaluated 4 times by 1 test | FALSE | evaluated 4 times by 1 test |
| 4 |
1244 | , TRUE | evaluated 4 times by 1 test | FALSE | evaluated 4 times by 1 test |
| 4 |
1245 | me->me_devnameTRUE | evaluated 4 times by 1 test | FALSE | evaluated 4 times by 1 test |
| 4 |
1246 | ) : (__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (TRUE | evaluated 4 times by 1 test | FALSE | evaluated 4 times by 1 test |
| 4 |
1247 | me->me_devnameTRUE | evaluated 4 times by 1 test | FALSE | evaluated 4 times by 1 test |
| 4 |
1248 | ); int __result = (((const unsigned char *) (const char *) (TRUE | evaluated 4 times by 1 test | FALSE | evaluated 4 times by 1 test |
| 4 |
1249 | seen_dev->me->me_devnameTRUE | evaluated 4 times by 1 test | FALSE | evaluated 4 times by 1 test |
| 4 |
1250 | ))[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 4 times by 1 test | FALSE | evaluated 4 times by 1 test |
| 0-4 |
1251 | seen_dev->me->me_devnameTRUE | evaluated 4 times by 1 test | FALSE | evaluated 4 times by 1 test |
| 4 |
1252 | ))[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 4 times by 1 test | FALSE | evaluated 4 times by 1 test |
| 0-4 |
1253 | seen_dev->me->me_devnameTRUE | evaluated 4 times by 1 test | FALSE | evaluated 4 times by 1 test |
| 4 |
1254 | ))[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 *) ( seen_dev->me->me_devname ))[3] - __s2[3]); TRUE | evaluated 4 times by 1 test | FALSE | evaluated 4 times by 1 test |
| 0-4 |
1255 | seen_dev->me->me_devnameTRUE | evaluated 4 times by 1 test | FALSE | evaluated 4 times by 1 test |
never executed: __result = (((const unsigned char *) (const char *) ( seen_dev->me->me_devname ))[3] - __s2[3]); | 0-4 |
1256 | ))[3] - __s2[3]);TRUE | evaluated 4 times by 1 test | FALSE | evaluated 4 times by 1 test |
never executed: __result = (((const unsigned char *) (const char *) ( seen_dev->me->me_devname ))[3] - __s2[3]); }never executed: end of block }never executed: end of block __result; }))) : (__builtin_constant_p (TRUE | evaluated 4 times by 1 test | FALSE | evaluated 4 times by 1 test |
| 0-4 |
1257 | me->me_devnameTRUE | evaluated 4 times by 1 test | FALSE | evaluated 4 times by 1 test |
| 4 |
1258 | ) && ((size_t)(const void *)((TRUE | evaluated 4 times by 1 test | FALSE | evaluated 4 times by 1 test |
| 4 |
1259 | me->me_devnameTRUE | evaluated 4 times by 1 test | FALSE | evaluated 4 times by 1 test |
| 4 |
1260 | ) + 1) - (size_t)(const void *)(TRUE | evaluated 4 times by 1 test | FALSE | evaluated 4 times by 1 test |
| 4 |
1261 | me->me_devnameTRUE | evaluated 4 times by 1 test | FALSE | evaluated 4 times by 1 test |
| 4 |
1262 | ) == 1) && (__s2_len = __builtin_strlen (TRUE | evaluated 4 times by 1 test | FALSE | evaluated 4 times by 1 test |
| 4 |
1263 | me->me_devnameTRUE | evaluated 4 times by 1 test | FALSE | evaluated 4 times by 1 test |
| 4 |
1264 | ), __s2_len < 4) ? (__builtin_constant_p (TRUE | evaluated 4 times by 1 test | FALSE | evaluated 4 times by 1 test |
| 4 |
1265 | seen_dev->me->me_devnameTRUE | evaluated 4 times by 1 test | FALSE | evaluated 4 times by 1 test |
| 4 |
1266 | ) && ((size_t)(const void *)((TRUE | evaluated 4 times by 1 test | FALSE | evaluated 4 times by 1 test |
| 4 |
1267 | seen_dev->me->me_devnameTRUE | evaluated 4 times by 1 test | FALSE | evaluated 4 times by 1 test |
| 4 |
1268 | ) + 1) - (size_t)(const void *)(TRUE | evaluated 4 times by 1 test | FALSE | evaluated 4 times by 1 test |
| 4 |
1269 | seen_dev->me->me_devnameTRUE | evaluated 4 times by 1 test | FALSE | evaluated 4 times by 1 test |
| 4 |
1270 | ) == 1) ? __builtin_strcmp (TRUE | evaluated 4 times by 1 test | FALSE | evaluated 4 times by 1 test |
| 4 |
1271 | seen_dev->me->me_devnameTRUE | evaluated 4 times by 1 test | FALSE | evaluated 4 times by 1 test |
| 4 |
1272 | , TRUE | evaluated 4 times by 1 test | FALSE | evaluated 4 times by 1 test |
| 4 |
1273 | me->me_devnameTRUE | evaluated 4 times by 1 test | FALSE | evaluated 4 times by 1 test |
| 4 |
1274 | ) : -(__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (TRUE | evaluated 4 times by 1 test | FALSE | evaluated 4 times by 1 test |
| 4 |
1275 | seen_dev->me->me_devnameTRUE | evaluated 4 times by 1 test | FALSE | evaluated 4 times by 1 test |
| 4 |
1276 | ); int __result = (((const unsigned char *) (const char *) (TRUE | evaluated 4 times by 1 test | FALSE | evaluated 4 times by 1 test |
| 4 |
1277 | me->me_devnameTRUE | evaluated 4 times by 1 test | FALSE | evaluated 4 times by 1 test |
| 4 |
1278 | ))[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 4 times by 1 test | FALSE | evaluated 4 times by 1 test |
| 0-4 |
1279 | me->me_devnameTRUE | evaluated 4 times by 1 test | FALSE | evaluated 4 times by 1 test |
| 4 |
1280 | ))[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 4 times by 1 test | FALSE | evaluated 4 times by 1 test |
| 0-4 |
1281 | me->me_devnameTRUE | evaluated 4 times by 1 test | FALSE | evaluated 4 times by 1 test |
| 4 |
1282 | ))[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 *) ( me->me_devname ))[3] - __s2[3]); TRUE | evaluated 4 times by 1 test | FALSE | evaluated 4 times by 1 test |
| 0-4 |
1283 | me->me_devnameTRUE | evaluated 4 times by 1 test | FALSE | evaluated 4 times by 1 test |
never executed: __result = (((const unsigned char *) (const char *) ( me->me_devname ))[3] - __s2[3]); | 0-4 |
1284 | ))[3] - __s2[3]);TRUE | evaluated 4 times by 1 test | FALSE | evaluated 4 times by 1 test |
never executed: __result = (((const unsigned char *) (const char *) ( me->me_devname ))[3] - __s2[3]); }never executed: end of block }never executed: end of block __result; }))) : __builtin_strcmp (TRUE | evaluated 4 times by 1 test | FALSE | evaluated 4 times by 1 test |
| 0-4 |
1285 | seen_dev->me->me_devnameTRUE | evaluated 4 times by 1 test | FALSE | evaluated 4 times by 1 test |
| 4 |
1286 | , TRUE | evaluated 4 times by 1 test | FALSE | evaluated 4 times by 1 test |
| 4 |
1287 | me->me_devnameTRUE | evaluated 4 times by 1 test | FALSE | evaluated 4 times by 1 test |
| 4 |
1288 | )))); }) TRUE | evaluated 4 times by 1 test | FALSE | evaluated 4 times by 1 test |
| 4 |
1289 | == 0)TRUE | evaluated 4 times by 1 test | FALSE | evaluated 4 times by 1 test |
) | 4 |
1290 | { | - |
1291 | | - |
1292 | | - |
1293 | | - |
1294 | | - |
1295 | }executed 4 times by 1 test: end of block | 4 |
1296 | else if (( | - |
1297 | (TRUE | evaluated 10 times by 1 test | FALSE | evaluated 11 times by 1 test |
__extension__ (__builtin_constant_p (TRUE | evaluated 21 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 10 times by 1 test | FALSE | evaluated 11 times by 1 test |
| 0-21 |
1298 | '/'TRUE | evaluated 21 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 10 times by 1 test | FALSE | evaluated 11 times by 1 test |
| 0-21 |
1299 | )TRUE | evaluated 21 times by 1 test | FALSE | never evaluated |
&& !__builtin_constant_p (TRUE | evaluated 21 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 10 times by 1 test | FALSE | evaluated 11 times by 1 test |
| 0-21 |
1300 | me->me_devnameTRUE | evaluated 21 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 10 times by 1 test | FALSE | evaluated 11 times by 1 test |
| 0-21 |
1301 | )TRUE | evaluated 21 times by 1 test | FALSE | never evaluated |
&& (TRUE | never evaluated | FALSE | evaluated 21 times by 1 test |
TRUE | evaluated 10 times by 1 test | FALSE | evaluated 11 times by 1 test |
| 0-21 |
1302 | '/'TRUE | never evaluated | FALSE | evaluated 21 times by 1 test |
TRUE | evaluated 10 times by 1 test | FALSE | evaluated 11 times by 1 test |
| 0-21 |
1303 | ) == '\0'TRUE | never evaluated | FALSE | evaluated 21 times by 1 test |
? (char *) __rawmemchr (TRUE | evaluated 10 times by 1 test | FALSE | evaluated 11 times by 1 test |
| 0-21 |
1304 | me->me_devnameTRUE | evaluated 10 times by 1 test | FALSE | evaluated 11 times by 1 test |
| 10-11 |
1305 | , TRUE | evaluated 10 times by 1 test | FALSE | evaluated 11 times by 1 test |
| 10-11 |
1306 | '/'TRUE | evaluated 10 times by 1 test | FALSE | evaluated 11 times by 1 test |
| 10-11 |
1307 | ) : __builtin_strchr (TRUE | evaluated 10 times by 1 test | FALSE | evaluated 11 times by 1 test |
| 10-11 |
1308 | me->me_devnameTRUE | evaluated 10 times by 1 test | FALSE | evaluated 11 times by 1 test |
| 10-11 |
1309 | , TRUE | evaluated 10 times by 1 test | FALSE | evaluated 11 times by 1 test |
| 10-11 |
1310 | '/'TRUE | evaluated 10 times by 1 test | FALSE | evaluated 11 times by 1 test |
| 10-11 |
1311 | )))TRUE | evaluated 10 times by 1 test | FALSE | evaluated 11 times by 1 test |
| 10-11 |
1312 | | - |
1313 | | - |
1314 | && ! TRUE | evaluated 5 times by 1 test | FALSE | evaluated 5 times by 1 test |
| 5 |
1315 | (__extension__ (__builtin_constant_p (TRUE | evaluated 10 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 5 times by 1 test | FALSE | evaluated 5 times by 1 test |
| 0-10 |
1316 | '/'TRUE | evaluated 10 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 5 times by 1 test | FALSE | evaluated 5 times by 1 test |
| 0-10 |
1317 | )TRUE | evaluated 10 times by 1 test | FALSE | never evaluated |
&& !__builtin_constant_p (TRUE | evaluated 10 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 5 times by 1 test | FALSE | evaluated 5 times by 1 test |
| 0-10 |
1318 | seen_dev->me->me_devnameTRUE | evaluated 10 times by 1 test | FALSE | never evaluated |
TRUE | evaluated 5 times by 1 test | FALSE | evaluated 5 times by 1 test |
| 0-10 |
1319 | )TRUE | evaluated 10 times by 1 test | FALSE | never evaluated |
&& (TRUE | never evaluated | FALSE | evaluated 10 times by 1 test |
TRUE | evaluated 5 times by 1 test | FALSE | evaluated 5 times by 1 test |
| 0-10 |
1320 | '/'TRUE | never evaluated | FALSE | evaluated 10 times by 1 test |
TRUE | evaluated 5 times by 1 test | FALSE | evaluated 5 times by 1 test |
| 0-10 |
1321 | ) == '\0'TRUE | never evaluated | FALSE | evaluated 10 times by 1 test |
? (char *) __rawmemchr ( |