OpenCoverage

du.c

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/coreutils/src/src/du.c
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3-
4extern -
5 _Bool -
6 fts_debug;-
7static struct di_set *di_files;-
8-
9-
10static struct di_set *di_mnt;-
11-
12-
13-
14static size_t prev_level;-
15-
16-
17struct duinfo-
18{-
19-
20 uintmax_t size;-
21-
22-
23 uintmax_t inodes;-
24-
25-
26-
27 struct timespec tmax;-
28};-
29-
30-
31static inline void-
32duinfo_init (struct duinfo *a)-
33{-
34 a->size = 0;-
35 a->inodes = 0;-
36 a->tmax.tv_sec = ((time_t) ~ ((time_t) (! (! ((time_t) 0 < (time_t) -1)) ? (time_t) -1 : ((((time_t) 1 << ((sizeof (time_t) * 8) - 2)) - 1) * 2 + 1))));-
37 a->tmax.tv_nsec = -1;-
38}
executed 2598 times by 1 test: end of block
Executed by:
  • du
2598
39-
40-
41static inline void-
42duinfo_set (struct duinfo *a, uintmax_t size, struct timespec tmax)-
43{-
44 a->size = size;-
45 a->inodes = 1;-
46 a->tmax = tmax;-
47}
executed 211133 times by 1 test: end of block
Executed by:
  • du
211133
48-
49-
50static inline void-
51duinfo_add (struct duinfo *a, struct duinfo const *b)-
52{-
53 uintmax_t sum = a->size + b->size;-
54 a->size = a->size <= sum
a->size <= sumDescription
TRUEevaluated 428459 times by 1 test
Evaluated by:
  • du
FALSEnever evaluated
? sum :
0-428459
55 (18446744073709551615UL)-
56 ;-
57 a->inodes = a->inodes + b->inodes;-
58 if (timespec_cmp (a->tmax, b->tmax) < 0
timespec_cmp (..., b->tmax) < 0Description
TRUEevaluated 7138 times by 1 test
Evaluated by:
  • du
FALSEevaluated 421321 times by 1 test
Evaluated by:
  • du
)
7138-421321
59 a->tmax = b->tmax;
executed 7138 times by 1 test: a->tmax = b->tmax;
Executed by:
  • du
7138
60}
executed 428459 times by 1 test: end of block
Executed by:
  • du
428459
61-
62-
63struct dulevel-
64{-
65-
66 struct duinfo ent;-
67-
68-
69 struct duinfo subdir;-
70};-
71-
72-
73static -
74 _Bool -
75 opt_all = -
76 0-
77 ;-
78-
79-
80-
81static -
82 _Bool -
83 apparent_size = -
84 0-
85 ;-
86-
87-
88static -
89 _Bool -
90 opt_count_all = -
91 0-
92 ;-
93-
94-
95static -
96 _Bool -
97 hash_all;-
98-
99-
100static -
101 _Bool -
102 opt_nul_terminate_output = -
103 0-
104 ;-
105-
106-
107static -
108 _Bool -
109 print_grand_total = -
110 0-
111 ;-
112-
113-
114static -
115 _Bool -
116 opt_separate_dirs = -
117 0-
118 ;-
119-
120-
121-
122-
123static size_t max_depth = -
124 (18446744073709551615UL)-
125 ;-
126-
127-
128-
129static intmax_t opt_threshold = 0;-
130-
131-
132static int human_output_opts;-
133-
134-
135static -
136 _Bool -
137 opt_inodes = -
138 0-
139 ;-
140-
141-
142static -
143 _Bool -
144 opt_time = -
145 0-
146 ;-
147-
148-
149-
150enum time_type-
151 {-
152 time_mtime,-
153 time_ctime,-
154 time_atime-
155 };-
156-
157static enum time_type time_type = time_mtime;-
158-
159-
160static char const *time_style = -
161 ((void *)0)-
162 ;-
163-
164-
165static char const *time_format = -
166 ((void *)0)-
167 ;-
168-
169-
170static timezone_t localtz;-
171-
172-
173static uintmax_t output_block_size;-
174-
175-
176static struct exclude *exclude;-
177-
178-
179static struct duinfo tot_dui;-
180-
181-
182-
183-
184-
185-
186-
187enum-
188{-
189 APPARENT_SIZE_OPTION = 0x7f + 1,-
190 EXCLUDE_OPTION,-
191 FILES0_FROM_OPTION,-
192 HUMAN_SI_OPTION,-
193 FTS_DEBUG,-
194 TIME_OPTION,-
195 TIME_STYLE_OPTION,-
196 INODES_OPTION-
197};-
198-
199static struct option const long_options[] =-
200{-
201 {"all", -
202 0-
203 , -
204 ((void *)0)-
205 , 'a'},-
206 {"apparent-size", -
207 0-
208 , -
209 ((void *)0)-
210 , APPARENT_SIZE_OPTION},-
211 {"block-size", -
212 1-
213 , -
214 ((void *)0)-
215 , 'B'},-
216 {"bytes", -
217 0-
218 , -
219 ((void *)0)-
220 , 'b'},-
221 {"count-links", -
222 0-
223 , -
224 ((void *)0)-
225 , 'l'},-
226-
227 {"dereference", -
228 0-
229 , -
230 ((void *)0)-
231 , 'L'},-
232 {"dereference-args", -
233 0-
234 , -
235 ((void *)0)-
236 , 'D'},-
237 {"exclude", -
238 1-
239 , -
240 ((void *)0)-
241 , EXCLUDE_OPTION},-
242 {"exclude-from", -
243 1-
244 , -
245 ((void *)0)-
246 , 'X'},-
247 {"files0-from", -
248 1-
249 , -
250 ((void *)0)-
251 , FILES0_FROM_OPTION},-
252 {"human-readable", -
253 0-
254 , -
255 ((void *)0)-
256 , 'h'},-
257 {"inodes", -
258 0-
259 , -
260 ((void *)0)-
261 , INODES_OPTION},-
262 {"si", -
263 0-
264 , -
265 ((void *)0)-
266 , HUMAN_SI_OPTION},-
267 {"max-depth", -
268 1-
269 , -
270 ((void *)0)-
271 , 'd'},-
272 {"null", -
273 0-
274 , -
275 ((void *)0)-
276 , '0'},-
277 {"no-dereference", -
278 0-
279 , -
280 ((void *)0)-
281 , 'P'},-
282 {"one-file-system", -
283 0-
284 , -
285 ((void *)0)-
286 , 'x'},-
287 {"separate-dirs", -
288 0-
289 , -
290 ((void *)0)-
291 , 'S'},-
292 {"summarize", -
293 0-
294 , -
295 ((void *)0)-
296 , 's'},-
297 {"total", -
298 0-
299 , -
300 ((void *)0)-
301 , 'c'},-
302 {"threshold", -
303 1-
304 , -
305 ((void *)0)-
306 , 't'},-
307 {"time", -
308 2-
309 , -
310 ((void *)0)-
311 , TIME_OPTION},-
312 {"time-style", -
313 1-
314 , -
315 ((void *)0)-
316 , TIME_STYLE_OPTION},-
317 {"help", -
318 0-
319 , -
320 ((void *)0)-
321 , GETOPT_HELP_CHAR},-
322 {"version", -
323 0-
324 , -
325 ((void *)0)-
326 , GETOPT_VERSION_CHAR},-
327 {-
328 ((void *)0)-
329 , 0, -
330 ((void *)0)-
331 , 0}-
332};-
333-
334static char const *const time_args[] =-
335{-
336 "atime", "access", "use", "ctime", "status", -
337 ((void *)0)-
338-
339};-
340static enum time_type const time_types[] =-
341{-
342 time_atime, time_atime, time_atime, time_ctime, time_ctime-
343};-
344_Static_assert ((sizeof (time_args) / sizeof *(time_args)) == (sizeof (time_types) / sizeof *(time_types)) + 1, "verify (" "ARRAY_CARDINALITY (time_args) == ARRAY_CARDINALITY (time_types) + 1" ")");-
345-
346-
347-
348-
349enum time_style-
350 {-
351 full_iso_time_style,-
352 long_iso_time_style,-
353 iso_time_style-
354 };-
355-
356static char const *const time_style_args[] =-
357{-
358 "full-iso", "long-iso", "iso", -
359 ((void *)0)-
360-
361};-
362static enum time_style const time_style_types[] =-
363{-
364 full_iso_time_style, long_iso_time_style, iso_time_style-
365};-
366_Static_assert ((sizeof (time_style_args) / sizeof *(time_style_args)) == (sizeof (time_style_types) / sizeof *(time_style_types)) + 1, "verify (" "ARRAY_CARDINALITY (time_style_args) == ARRAY_CARDINALITY (time_style_types) + 1" ")");-
367-
368void-
369usage (int status)-
370{-
371 if (status !=
status != 0Description
TRUEevaluated 5 times by 1 test
Evaluated by:
  • du
FALSEevaluated 43 times by 1 test
Evaluated by:
  • du
5-43
372 0
status != 0Description
TRUEevaluated 5 times by 1 test
Evaluated by:
  • du
FALSEevaluated 43 times by 1 test
Evaluated by:
  • du
5-43
373 )-
374 do { fprintf (-
375 stderr-
376 , -
377 dcgettext (((void *)0), -
378 "Try '%s --help' for more information.\n"-
379 , 5)-
380 , program_name); }
executed 5 times by 1 test: end of block
Executed by:
  • du
while (0);
5
381 else-
382 {-
383 printf (-
384 dcgettext (((void *)0), -
385 "Usage: %s [OPTION]... [FILE]...\n or: %s [OPTION]... --files0-from=F\n"-
386 , 5)-
387-
388-
389 -
390 , program_name, program_name);-
391 fputs_unlocked (-
392 dcgettext (((void *)0), -
393 "Summarize disk usage of the set of FILEs, recursively for directories.\n"-
394 , 5)-
395 ,-
396 stdout-
397 )-
398-
399 ;-
400-
401 emit_mandatory_arg_note ();-
402-
403 fputs_unlocked (-
404 dcgettext (((void *)0), -
405 " -0, --null end each output line with NUL, not newline\n -a, --all write counts for all files, not just directories\n --apparent-size print apparent sizes, rather than disk usage; although\n the apparent size is usually smaller, it may be\n larger due to holes in ('sparse') files, internal\n fragmentation, indirect blocks, and the like\n"-
406 , 5)-
407 ,-
408 stdout-
409 )-
410-
411-
412-
413-
414-
415-
416-
417 ;-
418 fputs_unlocked (-
419 dcgettext (((void *)0), -
420 " -B, --block-size=SIZE scale sizes by SIZE before printing them; e.g.,\n '-BM' prints sizes in units of 1,048,576 bytes;\n see SIZE format below\n -b, --bytes equivalent to '--apparent-size --block-size=1'\n -c, --total produce a grand total\n -D, --dereference-args dereference only symlinks that are listed on the\n command line\n -d, --max-depth=N print the total for a directory (or file, with --all)\n only if it is N or fewer levels below the command\n line argument; --max-depth=0 is the same as\n --summarize\n"-
421 , 5)-
422 ,-
423 stdout-
424 )-
425 ;-
426 fputs_unlocked (-
427 dcgettext (((void *)0), -
428 " --files0-from=F summarize disk usage of the\n NUL-terminated file names specified in file F;\n if F is -, then read names from standard input\n -H equivalent to --dereference-args (-D)\n -h, --human-readable print sizes in human readable format (e.g., 1K 234M 2G)\n --inodes list inode usage information instead of block usage\n"-
429 , 5)-
430 ,-
431 stdout-
432 )-
433-
434-
435-
436-
437-
438-
439-
440 ;-
441 fputs_unlocked (-
442 dcgettext (((void *)0), -
443 " -k like --block-size=1K\n -L, --dereference dereference all symbolic links\n -l, --count-links count sizes many times if hard linked\n -m like --block-size=1M\n"-
444 , 5)-
445 ,-
446 stdout-
447 )-
448-
449-
450-
451-
452 ;-
453 fputs_unlocked (-
454 dcgettext (((void *)0), -
455 " -P, --no-dereference don't follow any symbolic links (this is the default)\n -S, --separate-dirs for directories do not include size of subdirectories\n --si like -h, but use powers of 1000 not 1024\n -s, --summarize display only a total for each argument\n"-
456 , 5)-
457 ,-
458 stdout-
459 )-
460-
461-
462-
463-
464 ;-
465 fputs_unlocked (-
466 dcgettext (((void *)0), -
467 " -t, --threshold=SIZE exclude entries smaller than SIZE if positive,\n or entries greater than SIZE if negative\n --time show time of the last modification of any file in the\n directory, or any of its subdirectories\n --time=WORD show time as WORD instead of modification time:\n atime, access, use, ctime or status\n --time-style=STYLE show times using STYLE, which can be:\n full-iso, long-iso, iso, or +FORMAT;\n FORMAT is interpreted like in 'date'\n"-
468 , 5)-
469 ,-
470 stdout-
471 )-
472 ;-
473 fputs_unlocked (-
474 dcgettext (((void *)0), -
475 " -X, --exclude-from=FILE exclude files that match any pattern in FILE\n --exclude=PATTERN exclude files that match PATTERN\n -x, --one-file-system skip directories on different file systems\n"-
476 , 5)-
477 ,-
478 stdout-
479 )-
480-
481-
482-
483 ;-
484 fputs_unlocked (-
485 dcgettext (((void *)0), -
486 " --help display this help and exit\n"-
487 , 5)-
488 ,-
489 stdout-
490 );-
491 fputs_unlocked (-
492 dcgettext (((void *)0), -
493 " --version output version information and exit\n"-
494 , 5)-
495 ,-
496 stdout-
497 );-
498 emit_blocksize_note ("DU");-
499 emit_size_note ();-
500 emit_ancillary_info ("du");-
501 }
executed 43 times by 1 test: end of block
Executed by:
  • du
43
502 exit (status);
executed 48 times by 1 test: exit (status);
Executed by:
  • du
48
503}-
504-
505-
506-
507-
508static -
509 _Bool-
510-
511hash_ins (struct di_set *di_set, ino_t ino, dev_t dev)-
512{-
513 int inserted = di_set_insert (di_set, dev, ino);-
514 if (inserted < 0
inserted < 0Description
TRUEnever evaluated
FALSEevaluated 2607 times by 1 test
Evaluated by:
  • du
)
0-2607
515 xalloc_die ();
never executed: xalloc_die ();
0
516 return
executed 2607 times by 1 test: return inserted;
Executed by:
  • du
inserted;
executed 2607 times by 1 test: return inserted;
Executed by:
  • du
2607
517}-
518-
519-
520-
521-
522-
523static void-
524show_date (const char *format, struct timespec when, timezone_t tz)-
525{-
526 struct tm tm;-
527 if (localtime_rz (tz, &when.tv_sec, &tm)
localtime_rz (...n.tv_sec, &tm)Description
TRUEevaluated 20 times by 1 test
Evaluated by:
  • du
FALSEevaluated 1 time by 1 test
Evaluated by:
  • du
)
1-20
528 fprintftime (
executed 20 times by 1 test: fprintftime ( stdout , format, &tm, tz, when.tv_nsec);
Executed by:
  • du
20
529 stdout
executed 20 times by 1 test: fprintftime ( stdout , format, &tm, tz, when.tv_nsec);
Executed by:
  • du
20
530 , format, &tm, tz, when.tv_nsec);
executed 20 times by 1 test: fprintftime ( stdout , format, &tm, tz, when.tv_nsec);
Executed by:
  • du
20
531 else-
532 {-
533 char buf[((((((sizeof (intmax_t) * 8) - (! ((__typeof__ (intmax_t)) 0 < (__typeof__ (intmax_t)) -1))) * 146 + 484) / 485) + (! ((__typeof__ (intmax_t)) 0 < (__typeof__ (intmax_t)) -1))) + 1)];-
534 char *when_str = timetostr (when.tv_sec, buf);-
535 error (0, 0, -
536 dcgettext (((void *)0), -
537 "time %s is out of range"-
538 , 5)-
539 , quote (when_str));-
540 fputs_unlocked (when_str,-
541 stdout-
542 );-
543 }
executed 1 time by 1 test: end of block
Executed by:
  • du
1
544}-
545-
546-
547-
548static void-
549print_only_size (uintmax_t n_bytes)-
550{-
551 char buf[((2 * sizeof (uintmax_t) * 8 * 146 / 485 + 1) * (-
552 16 -
553 + 1) - -
554 16 -
555 + 1 + 3) + 1];-
556 fputs_unlocked ((n_bytes == -
557 (18446744073709551615UL) -
558 ? -
559 dcgettext (((void *)0), -
560 "Infinity"-
561 , 5) -
562 : human_readable (n_bytes, buf, human_output_opts, 1, output_block_size)),-
563 stdout-
564 )-
565-
566-
567-
568 ;-
569}
executed 3204 times by 1 test: end of block
Executed by:
  • du
3204
570-
571-
572-
573static void-
574print_size (const struct duinfo *pdui, const char *string)-
575{-
576 print_only_size (opt_inodes-
577 ? pdui->inodes-
578 : pdui->size);-
579-
580 if (opt_time
opt_timeDescription
TRUEevaluated 21 times by 1 test
Evaluated by:
  • du
FALSEevaluated 3183 times by 1 test
Evaluated by:
  • du
)
21-3183
581 {-
582 putchar_unlocked ('\t');-
583 show_date (time_format, pdui->tmax, localtz);-
584 }
executed 21 times by 1 test: end of block
Executed by:
  • du
21
585 printf ("\t%s%c", string, opt_nul_terminate_output ? '\0' : '\n');-
586 fflush_unlocked (-
587 stdout-
588 );-
589}
executed 3204 times by 1 test: end of block
Executed by:
  • du
3204
590-
591-
592-
593static void-
594fill_mount_table (void)-
595{-
596 struct mount_entry *mnt_ent = read_file_system_list (-
597 0-
598 );-
599 while (mnt_ent
mnt_entDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
600 {-
601 struct mount_entry *mnt_free;-
602 if (!mnt_ent->me_remote
!mnt_ent->me_remoteDescription
TRUEnever evaluated
FALSEnever evaluated
&& !mnt_ent->me_dummy
!mnt_ent->me_dummyDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
603 {-
604 struct stat buf;-
605 if (!stat (mnt_ent->me_mountdir, &buf)
!stat (mnt_ent...ountdir, &buf)Description
TRUEnever evaluated
FALSEnever evaluated
)
0
606 hash_ins (di_mnt, buf.st_ino, buf.st_dev);
never executed: hash_ins (di_mnt, buf.st_ino, buf.st_dev);
0
607 else-
608 {-
609-
610-
611 }
never executed: end of block
0
612 }-
613-
614 mnt_free = mnt_ent;-
615 mnt_ent = mnt_ent->me_next;-
616 free_mount_entry (mnt_free);-
617 }
never executed: end of block
0
618}
never executed: end of block
0
619-
620-
621-
622-
623static -
624 _Bool-
625-
626mount_point_in_fts_cycle (FTSENT const *ent)-
627{-
628 FTSENT const *cycle_ent = ent->fts_cycle;-
629-
630 if (!di_mnt
!di_mntDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
631 {-
632-
633 di_mnt = di_set_alloc ();-
634 if (!di_mnt
!di_mntDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
635 xalloc_die ();
never executed: xalloc_die ();
0
636-
637 fill_mount_table ();-
638 }
never executed: end of block
0
639-
640 while (ent
entDescription
TRUEnever evaluated
FALSEnever evaluated
&& ent != cycle_ent
ent != cycle_entDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
641 {-
642 if (di_set_lookup (di_mnt, ent->fts_statp->st_dev,
di_set_lookup ...p->st_ino) > 0Description
TRUEnever evaluated
FALSEnever evaluated
0
643 ent->fts_statp->st_ino) > 0
di_set_lookup ...p->st_ino) > 0Description
TRUEnever evaluated
FALSEnever evaluated
)
0
644 {-
645 return
never executed: return 1 ;
never executed: return 1 ;
0
646 1
never executed: return 1 ;
0
647 ;
never executed: return 1 ;
0
648 }-
649 ent = ent->fts_parent;-
650 }
never executed: end of block
0
651-
652 return
never executed: return 0 ;
never executed: return 0 ;
0
653 0
never executed: return 0 ;
0
654 ;
never executed: return 0 ;
0
655}-
656-
657-
658-
659-
660-
661-
662static -
663 _Bool-
664-
665process_file (FTS *fts, FTSENT *ent)-
666{-
667 -
668 _Bool -
669 ok = -
670 1-
671 ;-
672 struct duinfo dui;-
673 struct duinfo dui_to_print;-
674 size_t level;-
675 static size_t n_alloc;-
676 static struct dulevel *dulvl;-
677-
678 const char *file = ent->fts_path;-
679 const struct stat *sb = ent->fts_statp;-
680 int info = ent->fts_info;-
681-
682 if (info == 4
info == 4Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • du
FALSEevaluated 213116 times by 1 test
Evaluated by:
  • du
)
2-213116
683 {-
684-
685 error (0, ent->fts_errno, -
686 dcgettext (((void *)0), -
687 "cannot read directory %s"-
688 , 5)-
689 , quotearg_style (shell_escape_always_quoting_style, file));-
690 ok = -
691 0-
692 ;-
693 }
executed 2 times by 1 test: end of block
Executed by:
  • du
2
694 else if (info != 6
info != 6Description
TRUEevaluated 211196 times by 1 test
Evaluated by:
  • du
FALSEevaluated 1920 times by 1 test
Evaluated by:
  • du
)
1920-211196
695 {-
696 -
697 _Bool -
698 excluded = excluded_file_name (exclude, file);-
699 if (! excluded
! excludedDescription
TRUEevaluated 211162 times by 1 test
Evaluated by:
  • du
FALSEevaluated 34 times by 1 test
Evaluated by:
  • du
)
34-211162
700 {-
701-
702-
703 if (info == 11
info == 11Description
TRUEevaluated 207877 times by 1 test
Evaluated by:
  • du
FALSEevaluated 3285 times by 1 test
Evaluated by:
  • du
)
3285-207877
704 {-
705 fts_set (fts, ent, 1);-
706 FTSENT const *e = fts_read (fts);-
707 -
708 ((-
709 e == ent-
710 ) ? (void) (0) : __assert_fail (-
711 "e == ent"-
712 , "src/du.c", 526, __PRETTY_FUNCTION__))-
713 ;-
714 info = ent->fts_info;-
715 }
executed 207877 times by 1 test: end of block
Executed by:
  • du
207877
716-
717 if (info == 10
info == 10Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • du
FALSEevaluated 211159 times by 1 test
Evaluated by:
  • du
|| info == 13
info == 13Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • du
FALSEevaluated 211158 times by 1 test
Evaluated by:
  • du
)
1-211159
718 {-
719 error (0, ent->fts_errno, -
720 dcgettext (((void *)0), -
721 "cannot access %s"-
722 , 5)-
723 , quotearg_style (shell_escape_always_quoting_style, file));-
724 return
executed 4 times by 1 test: return 0 ;
Executed by:
  • du
executed 4 times by 1 test: return 0 ;
Executed by:
  • du
4
725 0
executed 4 times by 1 test: return 0 ;
Executed by:
  • du
4
726 ;
executed 4 times by 1 test: return 0 ;
Executed by:
  • du
4
727 }-
728-
729-
730-
731-
732-
733-
734 if (fts->fts_options & 0x0040
fts->fts_options & 0x0040Description
TRUEevaluated 9 times by 1 test
Evaluated by:
  • du
FALSEevaluated 211149 times by 1 test
Evaluated by:
  • du
9-211149
735 && 0 < ent->fts_level
0 < ent->fts_levelDescription
TRUEevaluated 3 times by 1 test
Evaluated by:
  • du
FALSEevaluated 6 times by 1 test
Evaluated by:
  • du
3-6
736 && fts->fts_dev != sb->st_dev
fts->fts_dev != sb->st_devDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • du
FALSEevaluated 2 times by 1 test
Evaluated by:
  • du
)
1-2
737 excluded =
executed 1 time by 1 test: excluded = 1 ;
Executed by:
  • du
1
738 1
executed 1 time by 1 test: excluded = 1 ;
Executed by:
  • du
1
739 ;
executed 1 time by 1 test: excluded = 1 ;
Executed by:
  • du
1
740 }
executed 211158 times by 1 test: end of block
Executed by:
  • du
211158
741-
742 if (excluded
excludedDescription
TRUEevaluated 35 times by 1 test
Evaluated by:
  • du
FALSEevaluated 211157 times by 1 test
Evaluated by:
  • du
35-211157
743 || (! opt_count_all
! opt_count_allDescription
TRUEevaluated 211143 times by 1 test
Evaluated by:
  • du
FALSEevaluated 14 times by 1 test
Evaluated by:
  • du
14-211143
744 && (hash_all
hash_allDescription
TRUEevaluated 2593 times by 1 test
Evaluated by:
  • du
FALSEevaluated 208550 times by 1 test
Evaluated by:
  • du
|| (!
! (((( sb->st_... == (0040000))Description
TRUEevaluated 207904 times by 1 test
Evaluated by:
  • du
FALSEevaluated 646 times by 1 test
Evaluated by:
  • du
646-208550
745 ((((
! (((( sb->st_... == (0040000))Description
TRUEevaluated 207904 times by 1 test
Evaluated by:
  • du
FALSEevaluated 646 times by 1 test
Evaluated by:
  • du
646-207904
746 sb->st_mode
! (((( sb->st_... == (0040000))Description
TRUEevaluated 207904 times by 1 test
Evaluated by:
  • du
FALSEevaluated 646 times by 1 test
Evaluated by:
  • du
646-207904
747 )) & 0170000) == (0040000))
! (((( sb->st_... == (0040000))Description
TRUEevaluated 207904 times by 1 test
Evaluated by:
  • du
FALSEevaluated 646 times by 1 test
Evaluated by:
  • du
646-207904
748 && 1 < sb->st_nlink
1 < sb->st_nlinkDescription
TRUEevaluated 14 times by 1 test
Evaluated by:
  • du
FALSEevaluated 207890 times by 1 test
Evaluated by:
  • du
))
14-207890
749 && ! hash_ins (di_files, sb->st_ino, sb->st_dev)
! hash_ins (di...o, sb->st_dev)Description
TRUEevaluated 19 times by 1 test
Evaluated by:
  • du
FALSEevaluated 2588 times by 1 test
Evaluated by:
  • du
))
19-2588
750 {-
751-
752-
753-
754 if (info == 1
info == 1Description
TRUEevaluated 34 times by 1 test
Evaluated by:
  • du
FALSEevaluated 20 times by 1 test
Evaluated by:
  • du
)
20-34
755 {-
756 fts_set (fts, ent, 4);-
757 FTSENT const *e = fts_read (fts);-
758 -
759 ((-
760 e == ent-
761 ) ? (void) (0) : __assert_fail (-
762 "e == ent"-
763 , "src/du.c", 559, __PRETTY_FUNCTION__))-
764 ;-
765 }
executed 34 times by 1 test: end of block
Executed by:
  • du
34
766-
767 return
executed 54 times by 1 test: return 1 ;
Executed by:
  • du
executed 54 times by 1 test: return 1 ;
Executed by:
  • du
54
768 1
executed 54 times by 1 test: return 1 ;
Executed by:
  • du
54
769 ;
executed 54 times by 1 test: return 1 ;
Executed by:
  • du
54
770 }-
771-
772 switch (info)-
773 {-
774 case
executed 1926 times by 1 test: case 1:
Executed by:
  • du
1:
executed 1926 times by 1 test: case 1:
Executed by:
  • du
1926
775 return
executed 1926 times by 1 test: return 1 ;
Executed by:
  • du
executed 1926 times by 1 test: return 1 ;
Executed by:
  • du
1926
776 1
executed 1926 times by 1 test: return 1 ;
Executed by:
  • du
1926
777 ;
executed 1926 times by 1 test: return 1 ;
Executed by:
  • du
1926
778-
779 case
never executed: case 7:
7:
never executed: case 7:
0
780-
781 error (0, ent->fts_errno, "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, file));-
782 ok = -
783 0-
784 ;-
785 break;
never executed: break;
0
786-
787 case
executed 1 time by 1 test: case 2:
Executed by:
  • du
2:
executed 1 time by 1 test: case 2:
Executed by:
  • du
1
788-
789 if (cycle_warning_required (fts, ent)
cycle_warning_...red (fts, ent)Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • du
0-1
790 && ! mount_point_in_fts_cycle (ent)
! mount_point_...ts_cycle (ent)Description
TRUEnever evaluated
FALSEnever evaluated
)
0
791 {-
792 do { error (0, 0, -
793 dcgettext (((void *)0), -
794 "WARNING: Circular directory structure.\nThis almost certainly means that you have a corrupted file system.\nNOTIFY YOUR SYSTEM MANAGER.\nThe following directory is part of the cycle:\n %s\n"-
795 , 5)-
796 , quotearg_n_style_colon (0, shell_escape_quoting_style, file)); } while (0);-
797 return
never executed: return 0 ;
never executed: return 0 ;
0
798 0
never executed: return 0 ;
0
799 ;
never executed: return 0 ;
0
800 }-
801 return
executed 1 time by 1 test: return 1 ;
Executed by:
  • du
executed 1 time by 1 test: return 1 ;
Executed by:
  • du
1
802 1
executed 1 time by 1 test: return 1 ;
Executed by:
  • du
1
803 ;
executed 1 time by 1 test: return 1 ;
Executed by:
  • du
1
804 }-
805 }
executed 209211 times by 1 test: end of block
Executed by:
  • du
209211
806-
807 duinfo_set (&dui,-
808 (apparent_size-
809 ? -
810 (((-
811 0-
812 )>(-
813 sb->st_size-
814 ))?(-
815 0-
816 ):(-
817 sb->st_size-
818 ))-
819 -
820 : (uintmax_t) ((*sb).st_blocks) * -
821 512-
822 ),-
823 (time_type == time_mtime ? get_stat_mtime (sb)-
824 : time_type == time_atime ? get_stat_atime (sb)-
825 : get_stat_ctime (sb)));-
826-
827 level = ent->fts_level;-
828 dui_to_print = dui;-
829-
830 if (n_alloc == 0
n_alloc == 0Description
TRUEevaluated 273 times by 1 test
Evaluated by:
  • du
FALSEevaluated 210860 times by 1 test
Evaluated by:
  • du
)
273-210860
831 {-
832 n_alloc = level + 10;-
833 dulvl = xcalloc (n_alloc, sizeof *dulvl);-
834 }
executed 273 times by 1 test: end of block
Executed by:
  • du
273
835 else-
836 {-
837 if (level == prev_level
level == prev_levelDescription
TRUEevaluated 208983 times by 1 test
Evaluated by:
  • du
FALSEevaluated 1877 times by 1 test
Evaluated by:
  • du
)
1877-208983
838 {-
839-
840 }
executed 208983 times by 1 test: end of block
Executed by:
  • du
208983
841 else if (level > prev_level
level > prev_levelDescription
TRUEevaluated 221 times by 1 test
Evaluated by:
  • du
FALSEevaluated 1656 times by 1 test
Evaluated by:
  • du
)
221-1656
842 {-
843-
844-
845-
846-
847-
848 if (n_alloc <= level
n_alloc <= levelDescription
TRUEnever evaluated
FALSEevaluated 221 times by 1 test
Evaluated by:
  • du
)
0-221
849 {-
850 dulvl = xnrealloc (dulvl, level, 2 * sizeof *dulvl);-
851 n_alloc = level * 2;-
852 }
never executed: end of block
0
853-
854 for (size_t i = prev_level + 1; i <= level
i <= levelDescription
TRUEevaluated 1299 times by 1 test
Evaluated by:
  • du
FALSEevaluated 221 times by 1 test
Evaluated by:
  • du
; i++)
221-1299
855 {-
856 duinfo_init (&dulvl[i].ent);-
857 duinfo_init (&dulvl[i].subdir);-
858 }
executed 1299 times by 1 test: end of block
Executed by:
  • du
1299
859 }
executed 221 times by 1 test: end of block
Executed by:
  • du
221
860 else-
861 {-
862-
863-
864-
865-
866-
867-
868 -
869 ((-
870 level == prev_level - 1-
871 ) ? (void) (0) : __assert_fail (-
872 "level == prev_level - 1"-
873 , "src/du.c", 637, __PRETTY_FUNCTION__))-
874 ;-
875 duinfo_add (&dui_to_print, &dulvl[prev_level].ent);-
876 if (!opt_separate_dirs
!opt_separate_dirsDescription
TRUEevaluated 1483 times by 1 test
Evaluated by:
  • du
FALSEevaluated 173 times by 1 test
Evaluated by:
  • du
)
173-1483
877 duinfo_add (&dui_to_print, &dulvl[prev_level].subdir);
executed 1483 times by 1 test: duinfo_add (&dui_to_print, &dulvl[prev_level].subdir);
Executed by:
  • du
1483
878 duinfo_add (&dulvl[level].subdir, &dulvl[prev_level].ent);-
879 duinfo_add (&dulvl[level].subdir, &dulvl[prev_level].subdir);-
880 }
executed 1656 times by 1 test: end of block
Executed by:
  • du
1656
881 }-
882-
883 prev_level = level;-
884-
885-
886-
887 if (! (opt_separate_dirs
opt_separate_dirsDescription
TRUEevaluated 598 times by 1 test
Evaluated by:
  • du
FALSEevaluated 210535 times by 1 test
Evaluated by:
  • du
&& ((
(info) == 6Description
TRUEevaluated 258 times by 1 test
Evaluated by:
  • du
FALSEevaluated 340 times by 1 test
Evaluated by:
  • du
info) == 6
(info) == 6Description
TRUEevaluated 258 times by 1 test
Evaluated by:
  • du
FALSEevaluated 340 times by 1 test
Evaluated by:
  • du
|| (
(info) == 4Description
TRUEnever evaluated
FALSEevaluated 340 times by 1 test
Evaluated by:
  • du
info) == 4
(info) == 4Description
TRUEnever evaluated
FALSEevaluated 340 times by 1 test
Evaluated by:
  • du
)))
0-210535
888 duinfo_add (&dulvl[level].ent, &dui);
executed 210875 times by 1 test: duinfo_add (&dulvl[level].ent, &dui);
Executed by:
  • du
210875
889-
890-
891-
892 duinfo_add (&tot_dui, &dui);-
893-
894 if ((((
(info) == 6Description
TRUEevaluated 1920 times by 1 test
Evaluated by:
  • du
FALSEevaluated 209213 times by 1 test
Evaluated by:
  • du
info) == 6
(info) == 6Description
TRUEevaluated 1920 times by 1 test
Evaluated by:
  • du
FALSEevaluated 209213 times by 1 test
Evaluated by:
  • du
|| (
(info) == 4Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • du
FALSEevaluated 209211 times by 1 test
Evaluated by:
  • du
info) == 4
(info) == 4Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • du
FALSEevaluated 209211 times by 1 test
Evaluated by:
  • du
) && level <= max_depth
level <= max_depthDescription
TRUEevaluated 1862 times by 1 test
Evaluated by:
  • du
FALSEevaluated 60 times by 1 test
Evaluated by:
  • du
)
2-209213
895 || (opt_all
opt_allDescription
TRUEevaluated 351 times by 1 test
Evaluated by:
  • du
FALSEevaluated 208920 times by 1 test
Evaluated by:
  • du
&& level <= max_depth
level <= max_depthDescription
TRUEevaluated 351 times by 1 test
Evaluated by:
  • du
FALSEnever evaluated
)
0-208920
896 || level == 0
level == 0Description
TRUEevaluated 1337 times by 1 test
Evaluated by:
  • du
FALSEevaluated 207583 times by 1 test
Evaluated by:
  • du
)
1337-207583
897 {-
898-
899 uintmax_t v = opt_inodes
opt_inodesDescription
TRUEevaluated 27 times by 1 test
Evaluated by:
  • du
FALSEevaluated 3523 times by 1 test
Evaluated by:
  • du
? dui_to_print.inodes : dui_to_print.size;
27-3523
900 if (opt_threshold < 0
opt_threshold < 0Description
TRUEevaluated 401 times by 1 test
Evaluated by:
  • du
FALSEevaluated 3149 times by 1 test
Evaluated by:
  • du
opt_threshold ... opt_thresholdDescription
TRUEevaluated 3203 times by 1 test
Evaluated by:
  • du
FALSEevaluated 347 times by 1 test
Evaluated by:
  • du
347-3203
901 ? v <= -opt_threshold
opt_threshold ... opt_thresholdDescription
TRUEevaluated 3203 times by 1 test
Evaluated by:
  • du
FALSEevaluated 347 times by 1 test
Evaluated by:
  • du
347-3203
902 : v >= opt_threshold
opt_threshold ... opt_thresholdDescription
TRUEevaluated 3203 times by 1 test
Evaluated by:
  • du
FALSEevaluated 347 times by 1 test
Evaluated by:
  • du
)
347-3203
903 print_size (&dui_to_print, file);
executed 3203 times by 1 test: print_size (&dui_to_print, file);
Executed by:
  • du
3203
904 }
executed 3550 times by 1 test: end of block
Executed by:
  • du
3550
905-
906 return
executed 211133 times by 1 test: return ok;
Executed by:
  • du
ok;
executed 211133 times by 1 test: return ok;
Executed by:
  • du
211133
907}-
908-
909-
910-
911-
912-
913-
914static -
915 _Bool-
916-
917du_files (char **files, int bit_flags)-
918{-
919 -
920 _Bool -
921 ok = -
922 1-
923 ;-
924-
925 if (*
*filesDescription
TRUEevaluated 1581 times by 1 test
Evaluated by:
  • du
FALSEnever evaluated
files
*filesDescription
TRUEevaluated 1581 times by 1 test
Evaluated by:
  • du
FALSEnever evaluated
)
0-1581
926 {-
927 FTS *fts = xfts_open (files, bit_flags, -
928 ((void *)0)-
929 );-
930-
931 while (1)-
932 {-
933 FTSENT *ent;-
934-
935 ent = fts_read (fts);-
936 if (ent ==
ent == ((void *)0)Description
TRUEevaluated 1581 times by 1 test
Evaluated by:
  • du
FALSEevaluated 213118 times by 1 test
Evaluated by:
  • du
1581-213118
937 ((void *)0)
ent == ((void *)0)Description
TRUEevaluated 1581 times by 1 test
Evaluated by:
  • du
FALSEevaluated 213118 times by 1 test
Evaluated by:
  • du
1581-213118
938 )-
939 {-
940 if (-
941 (*
(*__errno_location ()) != 0Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • du
FALSEevaluated 1580 times by 1 test
Evaluated by:
  • du
__errno_location ())
(*__errno_location ()) != 0Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • du
FALSEevaluated 1580 times by 1 test
Evaluated by:
  • du
1-1580
942 != 0
(*__errno_location ()) != 0Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • du
FALSEevaluated 1580 times by 1 test
Evaluated by:
  • du
)
1-1580
943 {-
944 error (0, -
945 (*__errno_location ())-
946 , -
947 dcgettext (((void *)0), -
948 "fts_read failed: %s"-
949 , 5)-
950 ,-
951 quotearg_n_style_colon (0, shell_escape_quoting_style, fts->fts_path));-
952 ok = -
953 0-
954 ;-
955 }
executed 1 time by 1 test: end of block
Executed by:
  • du
1
956-
957-
958-
959-
960 prev_level = 0;-
961 break;
executed 1581 times by 1 test: break;
Executed by:
  • du
1581
962 }-
963 ;-
964-
965 ok &= process_file (fts, ent);-
966 }
executed 213118 times by 1 test: end of block
Executed by:
  • du
213118
967-
968 if (fts_close (fts) != 0
fts_close (fts) != 0Description
TRUEnever evaluated
FALSEevaluated 1581 times by 1 test
Evaluated by:
  • du
)
0-1581
969 {-
970 error (0, -
971 (*__errno_location ())-
972 , -
973 dcgettext (((void *)0), -
974 "fts_close failed"-
975 , 5)-
976 );-
977 ok = -
978 0-
979 ;-
980 }
never executed: end of block
0
981 }
executed 1581 times by 1 test: end of block
Executed by:
  • du
1581
982-
983 return
executed 1581 times by 1 test: return ok;
Executed by:
  • du
ok;
executed 1581 times by 1 test: return ok;
Executed by:
  • du
1581
984}-
985-
986int-
987main (int argc, char **argv)-
988{-
989 char *cwd_only[2];-
990 -
991 _Bool -
992 max_depth_specified = -
993 0-
994 ;-
995 -
996 _Bool -
997 ok = -
998 1-
999 ;-
1000 char *files_from = -
1001 ((void *)0)-
1002 ;-
1003-
1004-
1005 int bit_flags = 0x0008;-
1006-
1007-
1008-
1009 int symlink_deref_bits = 0x0010;-
1010-
1011-
1012 -
1013 _Bool -
1014 opt_summarize_only = -
1015 0-
1016 ;-
1017-
1018 cwd_only[0] = bad_cast (".");-
1019 cwd_only[1] = -
1020 ((void *)0)-
1021 ;-
1022-
1023 ;-
1024 set_program_name (argv[0]);-
1025 setlocale (-
1026 6-
1027 , "");-
1028 bindtextdomain ("coreutils", "/usr/local/share/locale");-
1029 textdomain ("coreutils");-
1030-
1031 atexit (close_stdout);-
1032-
1033 exclude = new_exclude ();-
1034-
1035 human_options (getenv ("DU_BLOCK_SIZE"),-
1036 &human_output_opts, &output_block_size);-
1037-
1038 while (-
1039 1-
1040 )-
1041 {-
1042 int oi = -1;-
1043 int c = getopt_long (argc, argv, "0abd:chHklmst:xB:DLPSX:",-
1044 long_options, &oi);-
1045 if (c == -1
c == -1Description
TRUEevaluated 287 times by 1 test
Evaluated by:
  • du
FALSEevaluated 892 times by 1 test
Evaluated by:
  • du
)
287-892
1046 break;
executed 287 times by 1 test: break;
Executed by:
  • du
287
1047-
1048 switch (c)-
1049 {-
1050-
1051-
1052-
1053-
1054-
1055-
1056 case
executed 2 times by 1 test: case '0':
Executed by:
  • du
'0':
executed 2 times by 1 test: case '0':
Executed by:
  • du
2
1057 opt_nul_terminate_output = -
1058 1-
1059 ;-
1060 break;
executed 2 times by 1 test: break;
Executed by:
  • du
2
1061-
1062 case
executed 98 times by 1 test: case 'a':
Executed by:
  • du
'a':
executed 98 times by 1 test: case 'a':
Executed by:
  • du
98
1063 opt_all = -
1064 1-
1065 ;-
1066 break;
executed 98 times by 1 test: break;
Executed by:
  • du
98
1067-
1068 case
executed 87 times by 1 test: case APPARENT_SIZE_OPTION:
Executed by:
  • du
APPARENT_SIZE_OPTION:
executed 87 times by 1 test: case APPARENT_SIZE_OPTION:
Executed by:
  • du
87
1069 apparent_size = -
1070 1-
1071 ;-
1072 break;
executed 87 times by 1 test: break;
Executed by:
  • du
87
1073-
1074 case
executed 4 times by 1 test: case 'b':
Executed by:
  • du
'b':
executed 4 times by 1 test: case 'b':
Executed by:
  • du
4
1075 apparent_size = -
1076 1-
1077 ;-
1078 human_output_opts = 0;-
1079 output_block_size = 1;-
1080 break;
executed 4 times by 1 test: break;
Executed by:
  • du
4
1081-
1082 case
executed 3 times by 1 test: case 'c':
Executed by:
  • du
'c':
executed 3 times by 1 test: case 'c':
Executed by:
  • du
3
1083 print_grand_total = -
1084 1-
1085 ;-
1086 break;
executed 3 times by 1 test: break;
Executed by:
  • du
3
1087-
1088 case
executed 8 times by 1 test: case 'h':
Executed by:
  • du
'h':
executed 8 times by 1 test: case 'h':
Executed by:
  • du
8
1089 human_output_opts = human_autoscale | human_SI | human_base_1024;-
1090 output_block_size = 1;-
1091 break;
executed 8 times by 1 test: break;
Executed by:
  • du
8
1092-
1093 case
executed 2 times by 1 test: case HUMAN_SI_OPTION:
Executed by:
  • du
HUMAN_SI_OPTION:
executed 2 times by 1 test: case HUMAN_SI_OPTION:
Executed by:
  • du
2
1094 human_output_opts = human_autoscale | human_SI;-
1095 output_block_size = 1;-
1096 break;
executed 2 times by 1 test: break;
Executed by:
  • du
2
1097-
1098 case
executed 13 times by 1 test: case 'k':
Executed by:
  • du
'k':
executed 13 times by 1 test: case 'k':
Executed by:
  • du
13
1099 human_output_opts = 0;-
1100 output_block_size = 1024;-
1101 break;
executed 13 times by 1 test: break;
Executed by:
  • du
13
1102-
1103 case
executed 4 times by 1 test: case 'd':
Executed by:
  • du
'd':
executed 4 times by 1 test: case 'd':
Executed by:
  • du
4
1104 {-
1105 unsigned long int tmp_ulong;-
1106 if (xstrtoul (optarg,
xstrtoul (opta... == LONGINT_OKDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • du
FALSEevaluated 2 times by 1 test
Evaluated by:
  • du
2
1107 ((void *)0)
xstrtoul (opta... == LONGINT_OKDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • du
FALSEevaluated 2 times by 1 test
Evaluated by:
  • du
2
1108 , 0, &tmp_ulong,
xstrtoul (opta... == LONGINT_OKDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • du
FALSEevaluated 2 times by 1 test
Evaluated by:
  • du
2
1109 ((void *)0)
xstrtoul (opta... == LONGINT_OKDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • du
FALSEevaluated 2 times by 1 test
Evaluated by:
  • du
2
1110 ) == LONGINT_OK
xstrtoul (opta... == LONGINT_OKDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • du
FALSEevaluated 2 times by 1 test
Evaluated by:
  • du
2
1111 && tmp_ulong <=
tmp_ulong <= (...73709551615UL)Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • du
FALSEnever evaluated
0-2
1112 (18446744073709551615UL)
tmp_ulong <= (...73709551615UL)Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • du
FALSEnever evaluated
0-2
1113 )-
1114 {-
1115 max_depth_specified = -
1116 1-
1117 ;-
1118 max_depth = tmp_ulong;-
1119 }
executed 2 times by 1 test: end of block
Executed by:
  • du
2
1120 else-
1121 {-
1122 error (0, 0, -
1123 dcgettext (((void *)0), -
1124 "invalid maximum depth %s"-
1125 , 5)-
1126 ,-
1127 quote (optarg));-
1128 ok = -
1129 0-
1130 ;-
1131 }
executed 2 times by 1 test: end of block
Executed by:
  • du
2
1132 }-
1133 break;
executed 4 times by 1 test: break;
Executed by:
  • du
4
1134-
1135 case
executed 1 time by 1 test: case 'm':
Executed by:
  • du
'm':
executed 1 time by 1 test: case 'm':
Executed by:
  • du
1
1136 human_output_opts = 0;-
1137 output_block_size = 1024 * 1024;-
1138 break;
executed 1 time by 1 test: break;
Executed by:
  • du
1
1139-
1140 case
executed 6 times by 1 test: case 'l':
Executed by:
  • du
'l':
executed 6 times by 1 test: case 'l':
Executed by:
  • du
6
1141 opt_count_all = -
1142 1-
1143 ;-
1144 break;
executed 6 times by 1 test: break;
Executed by:
  • du
6
1145-
1146 case
executed 21 times by 1 test: case 's':
Executed by:
  • du
's':
executed 21 times by 1 test: case 's':
Executed by:
  • du
21
1147 opt_summarize_only = -
1148 1-
1149 ;-
1150 break;
executed 21 times by 1 test: break;
Executed by:
  • du
21
1151-
1152 case
executed 178 times by 1 test: case 't':
Executed by:
  • du
't':
executed 178 times by 1 test: case 't':
Executed by:
  • du
178
1153 {-
1154 enum strtol_error e;-
1155 e = xstrtoimax (optarg, -
1156 ((void *)0)-
1157 , 0, &opt_threshold, "kKmMGTPEZY0");-
1158 if (e != LONGINT_OK
e != LONGINT_OKDescription
TRUEevaluated 5 times by 1 test
Evaluated by:
  • du
FALSEevaluated 173 times by 1 test
Evaluated by:
  • du
)
5-173
1159 xstrtol_fatal (e, oi, c, long_options, optarg);
executed 5 times by 1 test: xstrtol_fatal (e, oi, c, long_options, optarg);
Executed by:
  • du
5
1160 if (opt_threshold == 0
opt_threshold == 0Description
TRUEevaluated 11 times by 1 test
Evaluated by:
  • du
FALSEevaluated 162 times by 1 test
Evaluated by:
  • du
&& *
*optarg == '-'Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • du
FALSEevaluated 8 times by 1 test
Evaluated by:
  • du
optarg == '-'
*optarg == '-'Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • du
FALSEevaluated 8 times by 1 test
Evaluated by:
  • du
)
3-162
1161 {-
1162-
1163 ((!!sizeof (struct { _Static_assert (-
1164 1-
1165 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"invalid --threshold argument '-0'\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error (-
1166 1-
1167 , 0, -
1168 dcgettext (((void *)0), -
1169 "invalid --threshold argument '-0'"-
1170 , 5)-
1171 ), ((-
1172 0-
1173 ) ? (void) 0 : __builtin_unreachable ()))) : ((error (-
1174 1-
1175 , 0, -
1176 dcgettext (((void *)0), -
1177 "invalid --threshold argument '-0'"-
1178 , 5)-
1179 ), ((-
1180 0-
1181 ) ? (void) 0 : __builtin_unreachable ()))));-
1182 }
never executed: end of block
0
1183 }-
1184 break;
executed 170 times by 1 test: break;
Executed by:
  • du
170
1185-
1186 case
executed 7 times by 1 test: case 'x':
Executed by:
  • du
'x':
executed 7 times by 1 test: case 'x':
Executed by:
  • du
7
1187 bit_flags |= 0x0040;-
1188 break;
executed 7 times by 1 test: break;
Executed by:
  • du
7
1189-
1190 case
executed 177 times by 1 test: case 'B':
Executed by:
  • du
'B':
executed 177 times by 1 test: case 'B':
Executed by:
  • du
177
1191 {-
1192 enum strtol_error e = human_options (optarg, &human_output_opts,-
1193 &output_block_size);-
1194 if (e != LONGINT_OK
e != LONGINT_OKDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • du
FALSEevaluated 175 times by 1 test
Evaluated by:
  • du
)
2-175
1195 xstrtol_fatal (e, oi, c, long_options, optarg);
executed 2 times by 1 test: xstrtol_fatal (e, oi, c, long_options, optarg);
Executed by:
  • du
2
1196 }-
1197 break;
executed 175 times by 1 test: break;
Executed by:
  • du
175
1198-
1199 case
executed 1 time by 1 test: case 'H':
Executed by:
  • du
'H':
executed 1 time by 1 test: case 'H':
Executed by:
  • du
1
1200 case
executed 6 times by 1 test: case 'D':
Executed by:
  • du
'D':
executed 6 times by 1 test: case 'D':
Executed by:
  • du
6
1201 symlink_deref_bits = 0x0001 | 0x0010;-
1202 break;
executed 7 times by 1 test: break;
Executed by:
  • du
7
1203-
1204 case
executed 11 times by 1 test: case 'L':
Executed by:
  • du
'L':
executed 11 times by 1 test: case 'L':
Executed by:
  • du
11
1205 symlink_deref_bits = 0x0002;-
1206 break;
executed 11 times by 1 test: break;
Executed by:
  • du
11
1207-
1208 case
executed 2 times by 1 test: case 'P':
Executed by:
  • du
'P':
executed 2 times by 1 test: case 'P':
Executed by:
  • du
2
1209 symlink_deref_bits = 0x0010;-
1210 break;
executed 2 times by 1 test: break;
Executed by:
  • du
2
1211-
1212 case
executed 89 times by 1 test: case 'S':
Executed by:
  • du
'S':
executed 89 times by 1 test: case 'S':
Executed by:
  • du
89
1213 opt_separate_dirs = -
1214 1-
1215 ;-
1216 break;
executed 89 times by 1 test: break;
Executed by:
  • du
89
1217-
1218 case
executed 3 times by 1 test: case 'X':
Executed by:
  • du
'X':
executed 3 times by 1 test: case 'X':
Executed by:
  • du
3
1219 if (add_exclude_file (add_exclude, exclude, optarg,
add_exclude_fi... << 28), '\n')Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • du
FALSEevaluated 1 time by 1 test
Evaluated by:
  • du
1-2
1220 (1 << 28), '\n')
add_exclude_fi... << 28), '\n')Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • du
FALSEevaluated 1 time by 1 test
Evaluated by:
  • du
)
1-2
1221 {-
1222 error (0, -
1223 (*__errno_location ())-
1224 , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, optarg));-
1225 ok = -
1226 0-
1227 ;-
1228 }
executed 2 times by 1 test: end of block
Executed by:
  • du
2
1229 break;
executed 3 times by 1 test: break;
Executed by:
  • du
3
1230-
1231 case
executed 14 times by 1 test: case FILES0_FROM_OPTION:
Executed by:
  • du
FILES0_FROM_OPTION:
executed 14 times by 1 test: case FILES0_FROM_OPTION:
Executed by:
  • du
14
1232 files_from = optarg;-
1233 break;
executed 14 times by 1 test: break;
Executed by:
  • du
14
1234-
1235 case
executed 11 times by 1 test: case EXCLUDE_OPTION:
Executed by:
  • du
EXCLUDE_OPTION:
executed 11 times by 1 test: case EXCLUDE_OPTION:
Executed by:
  • du
11
1236 add_exclude (exclude, optarg, (1 << 28));-
1237 break;
executed 11 times by 1 test: break;
Executed by:
  • du
11
1238-
1239 case
executed 19 times by 1 test: case INODES_OPTION:
Executed by:
  • du
INODES_OPTION:
executed 19 times by 1 test: case INODES_OPTION:
Executed by:
  • du
19
1240 opt_inodes = -
1241 1-
1242 ;-
1243 break;
executed 19 times by 1 test: break;
Executed by:
  • du
19
1244-
1245 case
executed 23 times by 1 test: case TIME_OPTION:
Executed by:
  • du
TIME_OPTION:
executed 23 times by 1 test: case TIME_OPTION:
Executed by:
  • du
23
1246 opt_time = -
1247 1-
1248 ;-
1249 time_type =-
1250 (optarg
optargDescription
TRUEnever evaluated
FALSEevaluated 23 times by 1 test
Evaluated by:
  • du
0-23
1251 ? ((time_types) [__xargmatch_internal ("--time", optarg, time_args, (char const *) (time_types), sizeof *(time_types), argmatch_die)])-
1252 : time_mtime);-
1253 localtz = tzalloc (getenv ("TZ"));-
1254 break;
executed 23 times by 1 test: break;
Executed by:
  • du
23
1255-
1256 case
executed 21 times by 1 test: case TIME_STYLE_OPTION:
Executed by:
  • du
TIME_STYLE_OPTION:
executed 21 times by 1 test: case TIME_STYLE_OPTION:
Executed by:
  • du
21
1257 time_style = optarg;-
1258 break;
executed 21 times by 1 test: break;
Executed by:
  • du
21
1259-
1260 case
executed 43 times by 1 test: case GETOPT_HELP_CHAR:
Executed by:
  • du
GETOPT_HELP_CHAR:
executed 43 times by 1 test: case GETOPT_HELP_CHAR:
Executed by:
  • du
usage (
43
1261 0-
1262 ); break;
never executed: break;
;
0
1263-
1264 case
executed 34 times by 1 test: case GETOPT_VERSION_CHAR:
Executed by:
  • du
GETOPT_VERSION_CHAR:
executed 34 times by 1 test: case GETOPT_VERSION_CHAR:
Executed by:
  • du
version_etc (
34
1265 stdout-
1266 , "du", "GNU coreutils", Version, ("Torbjorn Granlund"), ("David MacKenzie"), ("Paul Eggert"), ("Jim Meyering"), (char *) -
1267 ((void *)0)-
1268 ); exit (
executed 34 times by 1 test: exit ( 0 );
Executed by:
  • du
34
1269 0
executed 34 times by 1 test: exit ( 0 );
Executed by:
  • du
34
1270 );
executed 34 times by 1 test: exit ( 0 );
Executed by:
  • du
break;
never executed: break;
;
0-34
1271-
1272 default
executed 4 times by 1 test: default:
Executed by:
  • du
:
executed 4 times by 1 test: default:
Executed by:
  • du
4
1273 ok = -
1274 0-
1275 ;-
1276 }
executed 4 times by 1 test: end of block
Executed by:
  • du
4
1277 }-
1278-
1279 if (!ok
!okDescription
TRUEevaluated 4 times by 1 test
Evaluated by:
  • du
FALSEevaluated 283 times by 1 test
Evaluated by:
  • du
)
4-283
1280 usage (
executed 4 times by 1 test: usage ( 1 );
Executed by:
  • du
4
1281 1
executed 4 times by 1 test: usage ( 1 );
Executed by:
  • du
4
1282 );
executed 4 times by 1 test: usage ( 1 );
Executed by:
  • du
4
1283-
1284 if (opt_all
opt_allDescription
TRUEevaluated 96 times by 1 test
Evaluated by:
  • du
FALSEevaluated 187 times by 1 test
Evaluated by:
  • du
&& opt_summarize_only
opt_summarize_onlyDescription
TRUEnever evaluated
FALSEevaluated 96 times by 1 test
Evaluated by:
  • du
)
0-187
1285 {-
1286 error (0, 0, -
1287 dcgettext (((void *)0), -
1288 "cannot both summarize and show all entries"-
1289 , 5)-
1290 );-
1291 usage (-
1292 1-
1293 );-
1294 }
never executed: end of block
0
1295-
1296 if (opt_summarize_only
opt_summarize_onlyDescription
TRUEevaluated 19 times by 1 test
Evaluated by:
  • du
FALSEevaluated 264 times by 1 test
Evaluated by:
  • du
&& max_depth_specified
max_depth_specifiedDescription
TRUEnever evaluated
FALSEevaluated 19 times by 1 test
Evaluated by:
  • du
&& max_depth == 0
max_depth == 0Description
TRUEnever evaluated
FALSEnever evaluated
)
0-264
1297 {-
1298 error (0, 0,-
1299 -
1300 dcgettext (((void *)0), -
1301 "warning: summarizing is the same as using --max-depth=0"-
1302 , 5)-
1303 );-
1304 }
never executed: end of block
0
1305-
1306 if (opt_summarize_only
opt_summarize_onlyDescription
TRUEevaluated 19 times by 1 test
Evaluated by:
  • du
FALSEevaluated 264 times by 1 test
Evaluated by:
  • du
&& max_depth_specified
max_depth_specifiedDescription
TRUEnever evaluated
FALSEevaluated 19 times by 1 test
Evaluated by:
  • du
&& max_depth != 0
max_depth != 0Description
TRUEnever evaluated
FALSEnever evaluated
)
0-264
1307 {-
1308 unsigned long int d = max_depth;-
1309 error (0, 0, -
1310 dcgettext (((void *)0), -
1311 "warning: summarizing conflicts with --max-depth=%lu"-
1312 , 5)-
1313 , d);-
1314 usage (-
1315 1-
1316 );-
1317 }
never executed: end of block
0
1318-
1319 if (opt_summarize_only
opt_summarize_onlyDescription
TRUEevaluated 19 times by 1 test
Evaluated by:
  • du
FALSEevaluated 264 times by 1 test
Evaluated by:
  • du
)
19-264
1320 max_depth = 0;
executed 19 times by 1 test: max_depth = 0;
Executed by:
  • du
19
1321-
1322 if (opt_inodes
opt_inodesDescription
TRUEevaluated 18 times by 1 test
Evaluated by:
  • du
FALSEevaluated 265 times by 1 test
Evaluated by:
  • du
)
18-265
1323 {-
1324 if (apparent_size
apparent_sizeDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • du
FALSEevaluated 16 times by 1 test
Evaluated by:
  • du
)
2-16
1325 {-
1326 error (0, 0, -
1327 dcgettext (((void *)0), -
1328 "warning: options --apparent-size and -b are " "ineffective with --inodes"-
1329 , 5)-
1330 -
1331 );-
1332 }
executed 2 times by 1 test: end of block
Executed by:
  • du
2
1333 output_block_size = 1;-
1334 }
executed 18 times by 1 test: end of block
Executed by:
  • du
18
1335-
1336-
1337 if (opt_time
opt_timeDescription
TRUEevaluated 21 times by 1 test
Evaluated by:
  • du
FALSEevaluated 262 times by 1 test
Evaluated by:
  • du
)
21-262
1338 {-
1339 if (! time_style
! time_styleDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • du
FALSEevaluated 20 times by 1 test
Evaluated by:
  • du
)
1-20
1340 {-
1341 time_style = getenv ("TIME_STYLE");-
1342-
1343-
1344 if (! time_style
! time_styleDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • du
FALSEnever evaluated
|| (
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0-1
1345 __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
1346 time_style
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
1347 ) && __builtin_constant_p (
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
1348 "locale"
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
1349 ) && (__s1_len = __builtin_strlen (
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
1350 time_style
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
1351 ), __s2_len = __builtin_strlen (
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
1352 "locale"
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
1353 ), (!((size_t)(const void *)((
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
1354 time_style
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
1355 ) + 1) - (size_t)(const void *)(
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
1356 time_style
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
1357 ) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
1358 "locale"
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
1359 ) + 1) - (size_t)(const void *)(
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
1360 "locale"
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
1361 ) == 1) || __s2_len >= 4)) ? __builtin_strcmp (
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
1362 time_style
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
1363 ,
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
1364 "locale"
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
1365 ) : (__builtin_constant_p (
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
1366 time_style
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
1367 ) && ((size_t)(const void *)((
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
1368 time_style
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
1369 ) + 1) - (size_t)(const void *)(
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
1370 time_style
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
1371 ) == 1) && (__s1_len = __builtin_strlen (
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
1372 time_style
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
1373 ), __s1_len < 4) ? (__builtin_constant_p (
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
1374 "locale"
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
1375 ) && ((size_t)(const void *)((
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
1376 "locale"
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
1377 ) + 1) - (size_t)(const void *)(
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
1378 "locale"
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
1379 ) == 1) ? __builtin_strcmp (
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
1380 time_style
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
1381 ,
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
1382 "locale"
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
1383 ) : (__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
1384 "locale"
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
1385 ); int __result = (((const unsigned char *) (const char *) (
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
1386 time_style
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
1387 ))[0] - __s2[0]); if (__s1_len > 0
__s1_len > 0Description
TRUEnever evaluated
FALSEnever evaluated
&& __result == 0
__result == 0Description
TRUEnever evaluated
FALSEnever evaluated
) { __result = (((const unsigned char *) (const char *) (
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
1388 time_style
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
1389 ))[1] - __s2[1]); if (__s1_len > 1
__s1_len > 1Description
TRUEnever evaluated
FALSEnever evaluated
&& __result == 0
__result == 0Description
TRUEnever evaluated
FALSEnever evaluated
) { __result = (((const unsigned char *) (const char *) (
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
1390 time_style
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
1391 ))[2] - __s2[2]); if (__s1_len > 2
__s1_len > 2Description
TRUEnever evaluated
FALSEnever evaluated
&& __result == 0
__result == 0Description
TRUEnever evaluated
FALSEnever evaluated
) __result = (((const unsigned char *) (const char *) (
never executed: __result = (((const unsigned char *) (const char *) ( time_style ))[3] - __s2[3]);
0
1392 time_style
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
never executed: __result = (((const unsigned char *) (const char *) ( time_style ))[3] - __s2[3]);
0
1393 ))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p (
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
1394 "locale"
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
1395 ) && ((size_t)(const void *)((
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
1396 "locale"
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
1397 ) + 1) - (size_t)(const void *)(
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
1398 "locale"
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
1399 ) == 1) && (__s2_len = __builtin_strlen (
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
1400 "locale"
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
1401 ), __s2_len < 4) ? (__builtin_constant_p (
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
1402 time_style
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
1403 ) && ((size_t)(const void *)((
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
1404 time_style
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
1405 ) + 1) - (size_t)(const void *)(
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
1406 time_style
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
1407 ) == 1) ? __builtin_strcmp (
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
1408 time_style
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
1409 ,
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
1410 "locale"
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
1411 ) : -(__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
1412 time_style
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
1413 ); int __result = (((const unsigned char *) (const char *) (
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
1414 "locale"
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
1415 ))[0] - __s2[0]); if (__s2_len > 0
__s2_len > 0Description
TRUEnever evaluated
FALSEnever evaluated
&& __result == 0
__result == 0Description
TRUEnever evaluated
FALSEnever evaluated
) { __result = (((const unsigned char *) (const char *) (
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
1416 "locale"
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
1417 ))[1] - __s2[1]); if (__s2_len > 1
__s2_len > 1Description
TRUEnever evaluated
FALSEnever evaluated
&& __result == 0
__result == 0Description
TRUEnever evaluated
FALSEnever evaluated
) { __result = (((const unsigned char *) (const char *) (
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
1418 "locale"
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
1419 ))[2] - __s2[2]); if (__s2_len > 2
__s2_len > 2Description
TRUEnever evaluated
FALSEnever evaluated
&& __result == 0
__result == 0Description
TRUEnever evaluated
FALSEnever evaluated
) __result = (((const unsigned char *) (const char *) (
never executed: __result = (((const unsigned char *) (const char *) ( "locale" ))[3] - __s2[3]);
0
1420 "locale"
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
never executed: __result = (((const unsigned char *) (const char *) ( "locale" ))[3] - __s2[3]);
0
1421 ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp (
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
1422 time_style
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
1423 ,
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
1424 "locale"
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
1425 )))); })
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
1426 == 0)
( __extension_...)))); }) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
)
0
1427 time_style = "long-iso";
executed 1 time by 1 test: time_style = "long-iso";
Executed by:
  • du
1
1428 else if (*
*time_style == '+'Description
TRUEnever evaluated
FALSEnever evaluated
time_style == '+'
*time_style == '+'Description
TRUEnever evaluated
FALSEnever evaluated
)
0
1429 {-
1430-
1431-
1432 char *p = -
1433 (__extension__ (__builtin_constant_p (
__builtin_constant_p ( '\n' )Description
TRUEnever evaluated
FALSEnever evaluated
0
1434 '\n'
__builtin_constant_p ( '\n' )Description
TRUEnever evaluated
FALSEnever evaluated
0
1435 )
__builtin_constant_p ( '\n' )Description
TRUEnever evaluated
FALSEnever evaluated
&& !__builtin_constant_p (
!__builtin_con...( time_style )Description
TRUEnever evaluated
FALSEnever evaluated
0
1436 time_style
!__builtin_con...( time_style )Description
TRUEnever evaluated
FALSEnever evaluated
0
1437 )
!__builtin_con...( time_style )Description
TRUEnever evaluated
FALSEnever evaluated
&& (
( '\n' ) == '\0'Description
TRUEnever evaluated
FALSEnever evaluated
0
1438 '\n'
( '\n' ) == '\0'Description
TRUEnever evaluated
FALSEnever evaluated
0
1439 ) == '\0'
( '\n' ) == '\0'Description
TRUEnever evaluated
FALSEnever evaluated
? (char *) __rawmemchr (
0
1440 time_style-
1441 , -
1442 '\n'-
1443 ) : __builtin_strchr (-
1444 time_style-
1445 , -
1446 '\n'-
1447 )))-
1448 ;-
1449 if (p
pDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
1450 *
never executed: *p = '\0';
p = '\0';
never executed: *p = '\0';
0
1451 }
never executed: end of block
0
1452 else-
1453 {-
1454-
1455 static char const posix_prefix[] = "posix-";-
1456 static const size_t prefix_len = sizeof posix_prefix - 1;-
1457 while ((
( (__extension..._len ))) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
1458 (__extension__ (__builtin_constant_p (
__builtin_cons...( prefix_len )Description
TRUEnever evaluated
FALSEnever evaluated
( (__extension..._len ))) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
1459 prefix_len
__builtin_cons...( prefix_len )Description
TRUEnever evaluated
FALSEnever evaluated
( (__extension..._len ))) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
1460 )
__builtin_cons...( prefix_len )Description
TRUEnever evaluated
FALSEnever evaluated
&& ((__builtin_constant_p (
__builtin_cons...( time_style )Description
TRUEnever evaluated
FALSEnever evaluated
( (__extension..._len ))) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
1461 time_style
__builtin_cons...( time_style )Description
TRUEnever evaluated
FALSEnever evaluated
( (__extension..._len ))) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
1462 )
__builtin_cons...( time_style )Description
TRUEnever evaluated
FALSEnever evaluated
&& strlen (
strlen ( time_... prefix_len ))Description
TRUEnever evaluated
FALSEnever evaluated
( (__extension..._len ))) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
1463 time_style
strlen ( time_... prefix_len ))Description
TRUEnever evaluated
FALSEnever evaluated
( (__extension..._len ))) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
1464 ) < ((size_t) (
strlen ( time_... prefix_len ))Description
TRUEnever evaluated
FALSEnever evaluated
( (__extension..._len ))) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
1465 prefix_len
strlen ( time_... prefix_len ))Description
TRUEnever evaluated
FALSEnever evaluated
( (__extension..._len ))) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
1466 ))
strlen ( time_... prefix_len ))Description
TRUEnever evaluated
FALSEnever evaluated
) || (__builtin_constant_p (
__builtin_cons...posix_prefix )Description
TRUEnever evaluated
FALSEnever evaluated
( (__extension..._len ))) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
1467 posix_prefix
__builtin_cons...posix_prefix )Description
TRUEnever evaluated
FALSEnever evaluated
( (__extension..._len ))) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
1468 )
__builtin_cons...posix_prefix )Description
TRUEnever evaluated
FALSEnever evaluated
&& strlen (
strlen ( posix... prefix_len ))Description
TRUEnever evaluated
FALSEnever evaluated
( (__extension..._len ))) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
1469 posix_prefix
strlen ( posix... prefix_len ))Description
TRUEnever evaluated
FALSEnever evaluated
( (__extension..._len ))) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
1470 ) < ((size_t) (
strlen ( posix... prefix_len ))Description
TRUEnever evaluated
FALSEnever evaluated
( (__extension..._len ))) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
1471 prefix_len
strlen ( posix... prefix_len ))Description
TRUEnever evaluated
FALSEnever evaluated
( (__extension..._len ))) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
1472 ))
strlen ( posix... prefix_len ))Description
TRUEnever evaluated
FALSEnever evaluated
)) ? __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (
( (__extension..._len ))) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
1473 time_style
( (__extension..._len ))) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
1474 ) && __builtin_constant_p (
( (__extension..._len ))) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
1475 posix_prefix
( (__extension..._len ))) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
1476 ) && (__s1_len = __builtin_strlen (
( (__extension..._len ))) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
1477 time_style
( (__extension..._len ))) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
1478 ), __s2_len = __builtin_strlen (
( (__extension..._len ))) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
1479 posix_prefix
( (__extension..._len ))) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
1480 ), (!((size_t)(const void *)((
( (__extension..._len ))) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
1481 time_style
( (__extension..._len ))) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
1482 ) + 1) - (size_t)(const void *)(
( (__extension..._len ))) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
1483 time_style
( (__extension..._len ))) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
1484 ) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((
( (__extension..._len ))) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
1485 posix_prefix
( (__extension..._len ))) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
1486 ) + 1) - (size_t)(const void *)(
( (__extension..._len ))) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
1487 posix_prefix
( (__extension..._len ))) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
1488 ) == 1) || __s2_len >= 4)) ? __builtin_strcmp (
( (__extension..._len ))) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
1489 time_style
( (__extension..._len ))) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
1490 ,
( (__extension..._len ))) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
1491 posix_prefix
( (__extension..._len ))) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
1492 ) : (__builtin_constant_p (
( (__extension..._len ))) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
1493 time_style
( (__extension..._len ))) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
1494 ) && ((size_t)(const void *)((
( (__extension..._len ))) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
1495 time_style
( (__extension..._len ))) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
1496 ) + 1) - (size_t)(const void *)(
( (__extension..._len ))) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
1497 time_style
( (__extension..._len ))) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
1498 ) == 1) && (__s1_len = __builtin_strlen (
( (__extension..._len ))) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
1499 time_style
( (__extension..._len ))) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
1500 ), __s1_len < 4) ? (__builtin_constant_p (
( (__extension..._len ))) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
1501 posix_prefix
( (__extension..._len ))) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
1502 ) && ((size_t)(const void *)((
( (__extension..._len ))) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
1503 posix_prefix
( (__extension..._len ))) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
1504 ) + 1) - (size_t)(const void *)(
( (__extension..._len ))) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
1505 posix_prefix
( (__extension..._len ))) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
1506 ) == 1) ? __builtin_strcmp (
( (__extension..._len ))) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
1507 time_style
( (__extension..._len ))) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
1508 ,
( (__extension..._len ))) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
1509 posix_prefix
( (__extension..._len ))) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
1510 ) : (__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (
( (__extension..._len ))) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
1511 posix_prefix
( (__extension..._len ))) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
1512 ); int __result = (((const unsigned char *) (const char *) (
( (__extension..._len ))) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
1513 time_style
( (__extension..._len ))) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
1514 ))[0] - __s2[0]); if (__s1_len > 0
__s1_len > 0Description
TRUEnever evaluated
FALSEnever evaluated
&& __result == 0
__result == 0Description
TRUEnever evaluated
FALSEnever evaluated
) { __result = (((const unsigned char *) (const char *) (
( (__extension..._len ))) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
1515 time_style
( (__extension..._len ))) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
1516 ))[1] - __s2[1]); if (__s1_len > 1
__s1_len > 1Description
TRUEnever evaluated
FALSEnever evaluated
&& __result == 0
__result == 0Description
TRUEnever evaluated
FALSEnever evaluated
) { __result = (((const unsigned char *) (const char *) (
( (__extension..._len ))) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
1517 time_style
( (__extension..._len ))) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
1518 ))[2] - __s2[2]); if (__s1_len > 2
__s1_len > 2Description
TRUEnever evaluated
FALSEnever evaluated
&& __result == 0
__result == 0Description
TRUEnever evaluated
FALSEnever evaluated
) __result = (((const unsigned char *) (const char *) (
never executed: __result = (((const unsigned char *) (const char *) ( time_style ))[3] - __s2[3]);
0
1519 time_style
( (__extension..._len ))) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
never executed: __result = (((const unsigned char *) (const char *) ( time_style ))[3] - __s2[3]);
0
1520 ))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p (
( (__extension..._len ))) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
1521 posix_prefix
( (__extension..._len ))) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
1522 ) && ((size_t)(const void *)((
( (__extension..._len ))) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
1523 posix_prefix
( (__extension..._len ))) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
1524 ) + 1) - (size_t)(const void *)(
( (__extension..._len ))) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
1525 posix_prefix
( (__extension..._len ))) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
1526 ) == 1) && (__s2_len = __builtin_strlen (
( (__extension..._len ))) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
1527 posix_prefix
( (__extension..._len ))) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
1528 ), __s2_len < 4) ? (__builtin_constant_p (
( (__extension..._len ))) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
1529 time_style
( (__extension..._len ))) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
1530 ) && ((size_t)(const void *)((
( (__extension..._len ))) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
1531 time_style
( (__extension..._len ))) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
1532 ) + 1) - (size_t)(const void *)(
( (__extension..._len ))) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
1533 time_style
( (__extension..._len ))) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
1534 ) == 1) ? __builtin_strcmp (
( (__extension..._len ))) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
1535 time_style
( (__extension..._len ))) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
1536 ,
( (__extension..._len ))) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
1537 posix_prefix
( (__extension..._len ))) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
1538 ) : -(__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (
( (__extension..._len ))) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
1539 time_style
( (__extension..._len ))) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
1540 ); int __result = (((const unsigned char *) (const char *) (
( (__extension..._len ))) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
1541 posix_prefix
( (__extension..._len ))) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
1542 ))[0] - __s2[0]); if (__s2_len > 0
__s2_len > 0Description
TRUEnever evaluated
FALSEnever evaluated
&& __result == 0
__result == 0Description
TRUEnever evaluated
FALSEnever evaluated
) { __result = (((const unsigned char *) (const char *) (
( (__extension..._len ))) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
1543 posix_prefix
( (__extension..._len ))) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
1544 ))[1] - __s2[1]); if (__s2_len > 1
__s2_len > 1Description
TRUEnever evaluated
FALSEnever evaluated
&& __result == 0
__result == 0Description
TRUEnever evaluated
FALSEnever evaluated
) { __result = (((const unsigned char *) (const char *) (
( (__extension..._len ))) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
1545 posix_prefix
( (__extension..._len ))) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
1546 ))[2] - __s2[2]); if (__s2_len > 2
__s2_len > 2Description
TRUEnever evaluated
FALSEnever evaluated
&& __result == 0
__result == 0Description
TRUEnever evaluated
FALSEnever evaluated
) __result = (((const unsigned char *) (const char *) (
never executed: __result = (((const unsigned char *) (const char *) ( posix_prefix ))[3] - __s2[3]);
0
1547 posix_prefix
( (__extension..._len ))) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
never executed: __result = (((const unsigned char *) (const char *) ( posix_prefix ))[3] - __s2[3]);
0
1548 ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp (
( (__extension..._len ))) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
1549 time_style
( (__extension..._len ))) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
1550 ,
( (__extension..._len ))) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
1551 posix_prefix
( (__extension..._len ))) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
1552 )))); }) : strncmp (
( (__extension..._len ))) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
1553 time_style
( (__extension..._len ))) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
1554 ,
( (__extension..._len ))) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
1555 posix_prefix
( (__extension..._len ))) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
1556 ,
( (__extension..._len ))) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
1557 prefix_len
( (__extension..._len ))) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
1558 )))
( (__extension..._len ))) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
0
1559 == 0)
( (__extension..._len ))) == 0)Description
TRUEnever evaluated
FALSEnever evaluated
)
0
1560 time_style += prefix_len;
never executed: time_style += prefix_len;
0
1561 }
never executed: end of block
0
1562 }-
1563-
1564 if (*
*time_style == '+'Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • du
FALSEevaluated 13 times by 1 test
Evaluated by:
  • du
time_style == '+'
*time_style == '+'Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • du
FALSEevaluated 13 times by 1 test
Evaluated by:
  • du
)
8-13
1565 time_format = time_style + 1;
executed 8 times by 1 test: time_format = time_style + 1;
Executed by:
  • du
8
1566 else-
1567 {-
1568 switch (((time_style_types) [__xargmatch_internal ("time style", time_style, time_style_args, (char const *) (time_style_types), sizeof *(time_style_types), argmatch_die)])-
1569 )-
1570 {-
1571 case
executed 4 times by 1 test: case full_iso_time_style:
Executed by:
  • du
full_iso_time_style:
executed 4 times by 1 test: case full_iso_time_style:
Executed by:
  • du
4
1572 time_format = "%Y-%m-%d %H:%M:%S.%N %z";-
1573 break;
executed 4 times by 1 test: break;
Executed by:
  • du
4
1574-
1575 case
executed 5 times by 1 test: case long_iso_time_style:
Executed by:
  • du
long_iso_time_style:
executed 5 times by 1 test: case long_iso_time_style:
Executed by:
  • du
5
1576 time_format = "%Y-%m-%d %H:%M";-
1577 break;
executed 5 times by 1 test: break;
Executed by:
  • du
5
1578-
1579 case
executed 4 times by 1 test: case iso_time_style:
Executed by:
  • du
iso_time_style:
executed 4 times by 1 test: case iso_time_style:
Executed by:
  • du
4
1580 time_format = "%Y-%m-%d";-
1581 break;
executed 4 times by 1 test: break;
Executed by:
  • du
4
1582 }-
1583 }
executed 13 times by 1 test: end of block
Executed by:
  • du
13
1584 }-
1585-
1586 struct argv_iterator *ai;-
1587 if (files_from
files_fromDescription
TRUEevaluated 13 times by 1 test
Evaluated by:
  • du
FALSEevaluated 270 times by 1 test
Evaluated by:
  • du
)
13-270
1588 {-
1589-
1590-
1591 if (optind < argc
optind < argcDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • du
FALSEevaluated 12 times by 1 test
Evaluated by:
  • du
)
1-12
1592 {-
1593 error (0, 0, -
1594 dcgettext (((void *)0), -
1595 "extra operand %s"-
1596 , 5)-
1597 , quote (argv[optind]));-
1598 fprintf (-
1599 stderr-
1600 , "%s\n",-
1601 -
1602 dcgettext (((void *)0), -
1603 "file operands cannot be combined with --files0-from"-
1604 , 5)-
1605 );-
1606 usage (-
1607 1-
1608 );-
1609 }
never executed: end of block
0
1610-
1611 if (! ((
( __extension_...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • du
FALSEevaluated 4 times by 1 test
Evaluated by:
  • du
4-8
1612 __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (
( __extension_...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • du
FALSEevaluated 4 times by 1 test
Evaluated by:
  • du
4-8
1613 files_from
( __extension_...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • du
FALSEevaluated 4 times by 1 test
Evaluated by:
  • du
4-8
1614 ) && __builtin_constant_p (
( __extension_...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • du
FALSEevaluated 4 times by 1 test
Evaluated by:
  • du
4-8
1615 "-"
( __extension_...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • du
FALSEevaluated 4 times by 1 test
Evaluated by:
  • du
4-8
1616 ) && (__s1_len = __builtin_strlen (
( __extension_...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • du
FALSEevaluated 4 times by 1 test
Evaluated by:
  • du
4-8
1617 files_from
( __extension_...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • du
FALSEevaluated 4 times by 1 test
Evaluated by:
  • du
4-8
1618 ), __s2_len = __builtin_strlen (
( __extension_...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • du
FALSEevaluated 4 times by 1 test
Evaluated by:
  • du
4-8
1619 "-"
( __extension_...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • du
FALSEevaluated 4 times by 1 test
Evaluated by:
  • du
4-8
1620 ), (!((size_t)(const void *)((
( __extension_...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • du
FALSEevaluated 4 times by 1 test
Evaluated by:
  • du
4-8
1621 files_from
( __extension_...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • du
FALSEevaluated 4 times by 1 test
Evaluated by:
  • du
4-8
1622 ) + 1) - (size_t)(const void *)(
( __extension_...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • du
FALSEevaluated 4 times by 1 test
Evaluated by:
  • du
4-8
1623 files_from
( __extension_...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • du
FALSEevaluated 4 times by 1 test
Evaluated by:
  • du
4-8
1624 ) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((
( __extension_...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • du
FALSEevaluated 4 times by 1 test
Evaluated by:
  • du
4-8
1625 "-"
( __extension_...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • du
FALSEevaluated 4 times by 1 test
Evaluated by:
  • du
4-8
1626 ) + 1) - (size_t)(const void *)(
( __extension_...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • du
FALSEevaluated 4 times by 1 test
Evaluated by:
  • du
4-8
1627 "-"
( __extension_...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • du
FALSEevaluated 4 times by 1 test
Evaluated by:
  • du
4-8
1628 ) == 1) || __s2_len >= 4)) ? __builtin_strcmp (
( __extension_...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • du
FALSEevaluated 4 times by 1 test
Evaluated by:
  • du
4-8
1629 files_from
( __extension_...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • du
FALSEevaluated 4 times by 1 test
Evaluated by:
  • du
4-8
1630 ,
( __extension_...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • du
FALSEevaluated 4 times by 1 test
Evaluated by:
  • du
4-8
1631 "-"
( __extension_...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • du
FALSEevaluated 4 times by 1 test
Evaluated by:
  • du
4-8
1632 ) : (__builtin_constant_p (
( __extension_...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • du
FALSEevaluated 4 times by 1 test
Evaluated by:
  • du
4-8
1633 files_from
( __extension_...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • du
FALSEevaluated 4 times by 1 test
Evaluated by:
  • du
4-8
1634 ) && ((size_t)(const void *)((
( __extension_...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • du
FALSEevaluated 4 times by 1 test
Evaluated by:
  • du
4-8
1635 files_from
( __extension_...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • du
FALSEevaluated 4 times by 1 test
Evaluated by:
  • du
4-8
1636 ) + 1) - (size_t)(const void *)(
( __extension_...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • du
FALSEevaluated 4 times by 1 test
Evaluated by:
  • du
4-8
1637 files_from
( __extension_...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • du
FALSEevaluated 4 times by 1 test
Evaluated by:
  • du
4-8
1638 ) == 1) && (__s1_len = __builtin_strlen (
( __extension_...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • du
FALSEevaluated 4 times by 1 test
Evaluated by:
  • du
4-8
1639 files_from
( __extension_...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • du
FALSEevaluated 4 times by 1 test
Evaluated by:
  • du
4-8
1640 ), __s1_len < 4) ? (__builtin_constant_p (
( __extension_...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • du
FALSEevaluated 4 times by 1 test
Evaluated by:
  • du
4-8
1641 "-"
( __extension_...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • du
FALSEevaluated 4 times by 1 test
Evaluated by:
  • du
4-8
1642 ) && ((size_t)(const void *)((
( __extension_...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • du
FALSEevaluated 4 times by 1 test
Evaluated by:
  • du
4-8
1643 "-"
( __extension_...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • du
FALSEevaluated 4 times by 1 test
Evaluated by:
  • du
4-8
1644 ) + 1) - (size_t)(const void *)(
( __extension_...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • du
FALSEevaluated 4 times by 1 test
Evaluated by:
  • du
4-8
1645 "-"
( __extension_...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • du
FALSEevaluated 4 times by 1 test
Evaluated by:
  • du
4-8
1646 ) == 1) ? __builtin_strcmp (
( __extension_...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • du
FALSEevaluated 4 times by 1 test
Evaluated by:
  • du
4-8
1647 files_from
( __extension_...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • du
FALSEevaluated 4 times by 1 test
Evaluated by:
  • du
4-8
1648 ,
( __extension_...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • du
FALSEevaluated 4 times by 1 test
Evaluated by:
  • du
4-8
1649 "-"
( __extension_...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • du
FALSEevaluated 4 times by 1 test
Evaluated by:
  • du
4-8
1650 ) : (__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (
( __extension_...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • du
FALSEevaluated 4 times by 1 test
Evaluated by:
  • du
4-8
1651 "-"
( __extension_...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • du
FALSEevaluated 4 times by 1 test
Evaluated by:
  • du
4-8
1652 ); int __result = (((const unsigned char *) (const char *) (
( __extension_...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • du
FALSEevaluated 4 times by 1 test
Evaluated by:
  • du
4-8
1653 files_from
( __extension_...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • du
FALSEevaluated 4 times by 1 test
Evaluated by:
  • du
4-8
1654 ))[0] - __s2[0]); if (__s1_len > 0
__s1_len > 0Description
TRUEnever evaluated
FALSEnever evaluated
&& __result == 0
__result == 0Description
TRUEnever evaluated
FALSEnever evaluated
) { __result = (((const unsigned char *) (const char *) (
( __extension_...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • du
FALSEevaluated 4 times by 1 test
Evaluated by:
  • du
0-8
1655 files_from
( __extension_...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • du
FALSEevaluated 4 times by 1 test
Evaluated by:
  • du
4-8
1656 ))[1] - __s2[1]); if (__s1_len > 1
__s1_len > 1Description
TRUEnever evaluated
FALSEnever evaluated
&& __result == 0
__result == 0Description
TRUEnever evaluated
FALSEnever evaluated
) { __result = (((const unsigned char *) (const char *) (
( __extension_...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • du
FALSEevaluated 4 times by 1 test
Evaluated by:
  • du
0-8
1657 files_from
( __extension_...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • du
FALSEevaluated 4 times by 1 test
Evaluated by:
  • du
4-8
1658 ))[2] - __s2[2]); if (__s1_len > 2
__s1_len > 2Description
TRUEnever evaluated
FALSEnever evaluated
&& __result == 0
__result == 0Description
TRUEnever evaluated
FALSEnever evaluated
) __result = (((const unsigned char *) (const char *) (
never executed: __result = (((const unsigned char *) (const char *) ( files_from ))[3] - __s2[3]);
( __extension_...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • du
FALSEevaluated 4 times by 1 test
Evaluated by:
  • du
0-8
1659 files_from
( __extension_...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • du
FALSEevaluated 4 times by 1 test
Evaluated by:
  • du
never executed: __result = (((const unsigned char *) (const char *) ( files_from ))[3] - __s2[3]);
0-8
1660 ))[3] - __s2[3]);
( __extension_...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • du
FALSEevaluated 4 times by 1 test
Evaluated by:
  • du
never executed: __result = (((const unsigned char *) (const char *) ( files_from ))[3] - __s2[3]);
}
never executed: end of block
}
never executed: end of block
__result; }))) : (__builtin_constant_p (
( __extension_...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • du
FALSEevaluated 4 times by 1 test
Evaluated by:
  • du
0-8
1661 "-"
( __extension_...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • du
FALSEevaluated 4 times by 1 test
Evaluated by:
  • du
4-8
1662 ) && ((size_t)(const void *)((
( __extension_...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • du
FALSEevaluated 4 times by 1 test
Evaluated by:
  • du
4-8
1663 "-"
( __extension_...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • du
FALSEevaluated 4 times by 1 test
Evaluated by:
  • du
4-8
1664 ) + 1) - (size_t)(const void *)(
( __extension_...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • du
FALSEevaluated 4 times by 1 test
Evaluated by:
  • du
4-8
1665 "-"
( __extension_...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • du
FALSEevaluated 4 times by 1 test
Evaluated by:
  • du
4-8
1666 ) == 1) && (__s2_len = __builtin_strlen (
( __extension_...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • du
FALSEevaluated 4 times by 1 test
Evaluated by:
  • du
4-8
1667 "-"
( __extension_...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • du
FALSEevaluated 4 times by 1 test
Evaluated by:
  • du
4-8
1668 ), __s2_len < 4) ? (__builtin_constant_p (
( __extension_...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • du
FALSEevaluated 4 times by 1 test
Evaluated by:
  • du
4-8
1669 files_from
( __extension_...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • du
FALSEevaluated 4 times by 1 test
Evaluated by:
  • du
4-8
1670 ) && ((size_t)(const void *)((
( __extension_...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • du
FALSEevaluated 4 times by 1 test
Evaluated by:
  • du
4-8
1671 files_from
( __extension_...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • du
FALSEevaluated 4 times by 1 test
Evaluated by:
  • du
4-8
1672 ) + 1) - (size_t)(const void *)(
( __extension_...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • du
FALSEevaluated 4 times by 1 test
Evaluated by:
  • du
4-8
1673 files_from
( __extension_...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • du
FALSEevaluated 4 times by 1 test
Evaluated by:
  • du
4-8
1674 ) == 1) ? __builtin_strcmp (
( __extension_...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • du
FALSEevaluated 4 times by 1 test
Evaluated by:
  • du
4-8
1675 files_from
( __extension_...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • du
FALSEevaluated 4 times by 1 test
Evaluated by:
  • du
4-8
1676 ,
( __extension_...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • du
FALSEevaluated 4 times by 1 test
Evaluated by:
  • du
4-8
1677 "-"
( __extension_...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • du
FALSEevaluated 4 times by 1 test
Evaluated by:
  • du
4-8
1678 ) : -(__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (
( __extension_...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • du
FALSEevaluated 4 times by 1 test
Evaluated by:
  • du
4-8
1679 files_from
( __extension_...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • du
FALSEevaluated 4 times by 1 test
Evaluated by:
  • du
4-8
1680 ); int __result = (((const unsigned char *) (const char *) (
( __extension_...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • du
FALSEevaluated 4 times by 1 test
Evaluated by:
  • du
4-8
1681 "-"
( __extension_...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • du
FALSEevaluated 4 times by 1 test
Evaluated by:
  • du
4-8
1682 ))[0] - __s2[0]); if (__s2_len > 0
__s2_len > 0Description
TRUEevaluated 12 times by 1 test
Evaluated by:
  • du
FALSEnever evaluated
&& __result == 0
__result == 0Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • du
FALSEevaluated 4 times by 1 test
Evaluated by:
  • du
) { __result = (((const unsigned char *) (const char *) (
( __extension_...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • du
FALSEevaluated 4 times by 1 test
Evaluated by:
  • du
0-12
1683 "-"
( __extension_...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • du
FALSEevaluated 4 times by 1 test
Evaluated by:
  • du
4-8
1684 ))[1] - __s2[1]); if (__s2_len > 1
__s2_len > 1Description
TRUEnever evaluated
FALSEevaluated 8 times by 1 test
Evaluated by:
  • du
&& __result == 0
__result == 0Description
TRUEnever evaluated
FALSEnever evaluated
) { __result = (((const unsigned char *) (const char *) (
( __extension_...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • du
FALSEevaluated 4 times by 1 test
Evaluated by:
  • du
0-8
1685 "-"
( __extension_...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • du
FALSEevaluated 4 times by 1 test
Evaluated by:
  • du
4-8
1686 ))[2] - __s2[2]); if (__s2_len > 2
__s2_len > 2Description
TRUEnever evaluated
FALSEnever evaluated
&& __result == 0
__result == 0Description
TRUEnever evaluated
FALSEnever evaluated
) __result = (((const unsigned char *) (const char *) (
never executed: __result = (((const unsigned char *) (const char *) ( "-" ))[3] - __s2[3]);
( __extension_...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • du
FALSEevaluated 4 times by 1 test
Evaluated by:
  • du
0-8
1687 "-"
( __extension_...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • du
FALSEevaluated 4 times by 1 test
Evaluated by:
  • du
never executed: __result = (((const unsigned char *) (const char *) ( "-" ))[3] - __s2[3]);
0-8
1688 ))[3] - __s2[3]);
( __extension_...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • du
FALSEevaluated 4 times by 1 test
Evaluated by:
  • du
never executed: __result = (((const unsigned char *) (const char *) ( "-" ))[3] - __s2[3]);
}
never executed: end of block
} __result; }))) : __builtin_strcmp (
( __extension_...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • du
FALSEevaluated 4 times by 1 test
Evaluated by:
  • du
0-8
1689 files_from
( __extension_...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • du
FALSEevaluated 4 times by 1 test
Evaluated by:
  • du
4-8
1690 ,
( __extension_...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • du
FALSEevaluated 4 times by 1 test
Evaluated by:
  • du
4-8
1691 "-"
( __extension_...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • du
FALSEevaluated 4 times by 1 test
Evaluated by:
  • du
4-8
1692 )))); })
( __extension_...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • du
FALSEevaluated 4 times by 1 test
Evaluated by:
  • du
4-8
1693 == 0)
( __extension_...)))); }) == 0)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • du
FALSEevaluated 4 times by 1 test
Evaluated by:
  • du
|| freopen_safer (files_from, "r",
freopen_safer ..., "r", stdin )Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • du
FALSEevaluated 1 time by 1 test
Evaluated by:
  • du
1-8
1694 stdin
freopen_safer ..., "r", stdin )Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • du
FALSEevaluated 1 time by 1 test
Evaluated by:
  • du
1-3
1695 )
freopen_safer ..., "r", stdin )Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • du
FALSEevaluated 1 time by 1 test
Evaluated by:
  • du
))
1-3
1696 ((
executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"cannot open %s for reading\", 5), quotearg_style (shell_escape_always_quoting_style, files_from)), assume (false))" ")"); int ...(void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "cannot open %s for reading" , 5) , quotearg_style (shell_escape_always_quoting_style, files_from)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • du
!!sizeof (struct { _Static_assert (
executed 1 time by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"cannot open %s for reading\", 5), quotearg_style (shell_escape_always_quoting_style, files_from)), assume (false))" ")"); int ...(void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "cannot open %s for reading" , 5) , quotearg_style (shell_escape_always_quoting_style, files_from)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ;
Executed by:
  • du