| Line | Source | Count |
| 1 | | - |
| 2 | | - |
| 3 | struct devlist | - |
| 4 | { | - |
| 5 | dev_t dev_num; | - |
| 6 | struct mount_entry *me; | - |
| 7 | struct devlist *next; | - |
| 8 | }; | - |
| 9 | | - |
| 10 | | - |
| 11 | | - |
| 12 | static Hash_table *devlist_table; | - |
| 13 | | - |
| 14 | | - |
| 15 | | - |
| 16 | static | - |
| 17 | _Bool | - |
| 18 | show_all_fs; | - |
| 19 | | - |
| 20 | | - |
| 21 | static | - |
| 22 | _Bool | - |
| 23 | show_local_fs; | - |
| 24 | | - |
| 25 | | - |
| 26 | | - |
| 27 | static | - |
| 28 | _Bool | - |
| 29 | show_listed_fs; | - |
| 30 | | - |
| 31 | | - |
| 32 | static int human_output_opts; | - |
| 33 | | - |
| 34 | | - |
| 35 | static uintmax_t output_block_size; | - |
| 36 | | - |
| 37 | | - |
| 38 | static | - |
| 39 | _Bool | - |
| 40 | file_systems_processed; | - |
| 41 | | - |
| 42 | | - |
| 43 | | - |
| 44 | | - |
| 45 | | - |
| 46 | static | - |
| 47 | _Bool | - |
| 48 | require_sync; | - |
| 49 | | - |
| 50 | | - |
| 51 | static int exit_status; | - |
| 52 | | - |
| 53 | | - |
| 54 | | - |
| 55 | struct fs_type_list | - |
| 56 | { | - |
| 57 | char *fs_name; | - |
| 58 | struct fs_type_list *fs_next; | - |
| 59 | }; | - |
| 60 | static struct fs_type_list *fs_select_list; | - |
| 61 | | - |
| 62 | | - |
| 63 | | - |
| 64 | | - |
| 65 | static struct fs_type_list *fs_exclude_list; | - |
| 66 | | - |
| 67 | | - |
| 68 | static struct mount_entry *mount_list; | - |
| 69 | | - |
| 70 | | - |
| 71 | static | - |
| 72 | _Bool | - |
| 73 | print_type; | - |
| 74 | | - |
| 75 | | - |
| 76 | static | - |
| 77 | _Bool | - |
| 78 | print_grand_total; | - |
| 79 | | - |
| 80 | | - |
| 81 | static struct fs_usage grand_fsu; | - |
| 82 | | - |
| 83 | | - |
| 84 | enum | - |
| 85 | { | - |
| 86 | DEFAULT_MODE, | - |
| 87 | INODES_MODE, | - |
| 88 | HUMAN_MODE, | - |
| 89 | POSIX_MODE, | - |
| 90 | OUTPUT_MODE | - |
| 91 | }; | - |
| 92 | static int header_mode = DEFAULT_MODE; | - |
| 93 | | - |
| 94 | | - |
| 95 | typedef enum | - |
| 96 | { | - |
| 97 | SOURCE_FIELD, | - |
| 98 | FSTYPE_FIELD, | - |
| 99 | SIZE_FIELD, | - |
| 100 | USED_FIELD, | - |
| 101 | AVAIL_FIELD, | - |
| 102 | PCENT_FIELD, | - |
| 103 | ITOTAL_FIELD, | - |
| 104 | IUSED_FIELD, | - |
| 105 | IAVAIL_FIELD, | - |
| 106 | IPCENT_FIELD, | - |
| 107 | TARGET_FIELD, | - |
| 108 | FILE_FIELD, | - |
| 109 | INVALID_FIELD | - |
| 110 | } display_field_t; | - |
| 111 | | - |
| 112 | | - |
| 113 | typedef enum | - |
| 114 | { | - |
| 115 | BLOCK_FLD, | - |
| 116 | INODE_FLD, | - |
| 117 | OTHER_FLD | - |
| 118 | } field_type_t; | - |
| 119 | | - |
| 120 | | - |
| 121 | struct field_data_t | - |
| 122 | { | - |
| 123 | display_field_t field; | - |
| 124 | char const *arg; | - |
| 125 | field_type_t field_type; | - |
| 126 | const char *caption; | - |
| 127 | size_t width; | - |
| 128 | mbs_align_t align; | - |
| 129 | | - |
| 130 | _Bool | - |
| 131 | used; | - |
| 132 | }; | - |
| 133 | | - |
| 134 | | - |
| 135 | static struct field_data_t field_data[] = { | - |
| 136 | [SOURCE_FIELD] = { SOURCE_FIELD, | - |
| 137 | "source", OTHER_FLD, "Filesystem", 14, MBS_ALIGN_LEFT, | - |
| 138 | 0 | - |
| 139 | }, | - |
| 140 | | - |
| 141 | [FSTYPE_FIELD] = { FSTYPE_FIELD, | - |
| 142 | "fstype", OTHER_FLD, "Type", 4, MBS_ALIGN_LEFT, | - |
| 143 | 0 | - |
| 144 | }, | - |
| 145 | | - |
| 146 | [SIZE_FIELD] = { SIZE_FIELD, | - |
| 147 | "size", BLOCK_FLD, "blocks", 5, MBS_ALIGN_RIGHT, | - |
| 148 | 0 | - |
| 149 | }, | - |
| 150 | | - |
| 151 | [USED_FIELD] = { USED_FIELD, | - |
| 152 | "used", BLOCK_FLD, "Used", 5, MBS_ALIGN_RIGHT, | - |
| 153 | 0 | - |
| 154 | }, | - |
| 155 | | - |
| 156 | [AVAIL_FIELD] = { AVAIL_FIELD, | - |
| 157 | "avail", BLOCK_FLD, "Available", 5, MBS_ALIGN_RIGHT, | - |
| 158 | 0 | - |
| 159 | }, | - |
| 160 | | - |
| 161 | [PCENT_FIELD] = { PCENT_FIELD, | - |
| 162 | "pcent", BLOCK_FLD, "Use%", 4, MBS_ALIGN_RIGHT, | - |
| 163 | 0 | - |
| 164 | }, | - |
| 165 | | - |
| 166 | [ITOTAL_FIELD] = { ITOTAL_FIELD, | - |
| 167 | "itotal", INODE_FLD, "Inodes", 5, MBS_ALIGN_RIGHT, | - |
| 168 | 0 | - |
| 169 | }, | - |
| 170 | | - |
| 171 | [IUSED_FIELD] = { IUSED_FIELD, | - |
| 172 | "iused", INODE_FLD, "IUsed", 5, MBS_ALIGN_RIGHT, | - |
| 173 | 0 | - |
| 174 | }, | - |
| 175 | | - |
| 176 | [IAVAIL_FIELD] = { IAVAIL_FIELD, | - |
| 177 | "iavail", INODE_FLD, "IFree", 5, MBS_ALIGN_RIGHT, | - |
| 178 | 0 | - |
| 179 | }, | - |
| 180 | | - |
| 181 | [IPCENT_FIELD] = { IPCENT_FIELD, | - |
| 182 | "ipcent", INODE_FLD, "IUse%", 4, MBS_ALIGN_RIGHT, | - |
| 183 | 0 | - |
| 184 | }, | - |
| 185 | | - |
| 186 | [TARGET_FIELD] = { TARGET_FIELD, | - |
| 187 | "target", OTHER_FLD, "Mounted on", 0, MBS_ALIGN_LEFT, | - |
| 188 | 0 | - |
| 189 | }, | - |
| 190 | | - |
| 191 | [FILE_FIELD] = { FILE_FIELD, | - |
| 192 | "file", OTHER_FLD, "File", 0, MBS_ALIGN_LEFT, | - |
| 193 | 0 | - |
| 194 | } | - |
| 195 | }; | - |
| 196 | | - |
| 197 | static char const *all_args_string = | - |
| 198 | "source,fstype,itotal,iused,iavail,ipcent,size," | - |
| 199 | "used,avail,pcent,file,target"; | - |
| 200 | | - |
| 201 | | - |
| 202 | static struct field_data_t **columns; | - |
| 203 | | - |
| 204 | | - |
| 205 | static size_t ncolumns; | - |
| 206 | | - |
| 207 | | - |
| 208 | struct field_values_t | - |
| 209 | { | - |
| 210 | uintmax_t input_units; | - |
| 211 | uintmax_t output_units; | - |
| 212 | uintmax_t total; | - |
| 213 | uintmax_t available; | - |
| 214 | | - |
| 215 | _Bool | - |
| 216 | negate_available; | - |
| 217 | uintmax_t available_to_root; | - |
| 218 | uintmax_t used; | - |
| 219 | | - |
| 220 | _Bool | - |
| 221 | negate_used; | - |
| 222 | }; | - |
| 223 | | - |
| 224 | | - |
| 225 | static char ***table; | - |
| 226 | | - |
| 227 | | - |
| 228 | static size_t nrows; | - |
| 229 | | - |
| 230 | | - |
| 231 | | - |
| 232 | enum | - |
| 233 | { | - |
| 234 | NO_SYNC_OPTION = 0x7f + 1, | - |
| 235 | SYNC_OPTION, | - |
| 236 | TOTAL_OPTION, | - |
| 237 | OUTPUT_OPTION | - |
| 238 | }; | - |
| 239 | | - |
| 240 | static struct option const long_options[] = | - |
| 241 | { | - |
| 242 | {"all", | - |
| 243 | 0 | - |
| 244 | , | - |
| 245 | ((void *)0) | - |
| 246 | , 'a'}, | - |
| 247 | {"block-size", | - |
| 248 | 1 | - |
| 249 | , | - |
| 250 | ((void *)0) | - |
| 251 | , 'B'}, | - |
| 252 | {"inodes", | - |
| 253 | 0 | - |
| 254 | , | - |
| 255 | ((void *)0) | - |
| 256 | , 'i'}, | - |
| 257 | {"human-readable", | - |
| 258 | 0 | - |
| 259 | , | - |
| 260 | ((void *)0) | - |
| 261 | , 'h'}, | - |
| 262 | {"si", | - |
| 263 | 0 | - |
| 264 | , | - |
| 265 | ((void *)0) | - |
| 266 | , 'H'}, | - |
| 267 | {"local", | - |
| 268 | 0 | - |
| 269 | , | - |
| 270 | ((void *)0) | - |
| 271 | , 'l'}, | - |
| 272 | {"output", | - |
| 273 | 2 | - |
| 274 | , | - |
| 275 | ((void *)0) | - |
| 276 | , OUTPUT_OPTION}, | - |
| 277 | {"portability", | - |
| 278 | 0 | - |
| 279 | , | - |
| 280 | ((void *)0) | - |
| 281 | , 'P'}, | - |
| 282 | {"print-type", | - |
| 283 | 0 | - |
| 284 | , | - |
| 285 | ((void *)0) | - |
| 286 | , 'T'}, | - |
| 287 | {"sync", | - |
| 288 | 0 | - |
| 289 | , | - |
| 290 | ((void *)0) | - |
| 291 | , SYNC_OPTION}, | - |
| 292 | {"no-sync", | - |
| 293 | 0 | - |
| 294 | , | - |
| 295 | ((void *)0) | - |
| 296 | , NO_SYNC_OPTION}, | - |
| 297 | {"total", | - |
| 298 | 0 | - |
| 299 | , | - |
| 300 | ((void *)0) | - |
| 301 | , TOTAL_OPTION}, | - |
| 302 | {"type", | - |
| 303 | 1 | - |
| 304 | , | - |
| 305 | ((void *)0) | - |
| 306 | , 't'}, | - |
| 307 | {"exclude-type", | - |
| 308 | 1 | - |
| 309 | , | - |
| 310 | ((void *)0) | - |
| 311 | , 'x'}, | - |
| 312 | {"help", | - |
| 313 | 0 | - |
| 314 | , | - |
| 315 | ((void *)0) | - |
| 316 | , GETOPT_HELP_CHAR}, | - |
| 317 | {"version", | - |
| 318 | 0 | - |
| 319 | , | - |
| 320 | ((void *)0) | - |
| 321 | , GETOPT_VERSION_CHAR}, | - |
| 322 | { | - |
| 323 | ((void *)0) | - |
| 324 | , 0, | - |
| 325 | ((void *)0) | - |
| 326 | , 0} | - |
| 327 | }; | - |
| 328 | | - |
| 329 | | - |
| 330 | | - |
| 331 | | - |
| 332 | | - |
| 333 | static char* | - |
| 334 | hide_problematic_chars (char *cell) | - |
| 335 | { | - |
| 336 | char *p = cell; | - |
| 337 | while (*| TRUE | evaluated 9734 times by 1 test | | FALSE | evaluated 1712 times by 1 test |
p| TRUE | evaluated 9734 times by 1 test | | FALSE | evaluated 1712 times by 1 test |
) | 1712-9734 |
| 338 | { | - |
| 339 | if ( | - |
| 340 | ((*| TRUE | never evaluated | | FALSE | evaluated 9734 times by 1 test |
__ctype_b_loc ())[(int) ((| TRUE | never evaluated | | FALSE | evaluated 9734 times by 1 test |
| 0-9734 |
| 341 | to_uchar (*p)| TRUE | never evaluated | | FALSE | evaluated 9734 times by 1 test |
| 0-9734 |
| 342 | ))] & (unsigned short int) _IScntrl)| TRUE | never evaluated | | FALSE | evaluated 9734 times by 1 test |
| 0-9734 |
| 343 | ) | - |
| 344 | * never executed: *p = '?'; p = '?';never executed: *p = '?'; | 0 |
| 345 | p++; | - |
| 346 | }executed 9734 times by 1 test: end of block | 9734 |
| 347 | returnexecuted 1712 times by 1 test: return cell; cell;executed 1712 times by 1 test: return cell; | 1712 |
| 348 | } | - |
| 349 | | - |
| 350 | | - |
| 351 | | - |
| 352 | | - |
| 353 | static void | - |
| 354 | alloc_table_row (void) | - |
| 355 | { | - |
| 356 | nrows++; | - |
| 357 | table = xnrealloc (table, nrows, sizeof (char **)); | - |
| 358 | table[nrows - 1] = xnmalloc (ncolumns, sizeof (char *)); | - |
| 359 | }executed 315 times by 1 test: end of block | 315 |
| 360 | | - |
| 361 | | - |
| 362 | | - |
| 363 | | - |
| 364 | static void | - |
| 365 | print_table (void) | - |
| 366 | { | - |
| 367 | size_t row; | - |
| 368 | | - |
| 369 | for (row = 0; row < nrows| TRUE | evaluated 311 times by 1 test | | FALSE | evaluated 67 times by 1 test |
; row++) | 67-311 |
| 370 | { | - |
| 371 | size_t col; | - |
| 372 | for (col = 0; col < ncolumns| TRUE | evaluated 1688 times by 1 test | | FALSE | evaluated 311 times by 1 test |
; col++) | 311-1688 |
| 373 | { | - |
| 374 | char *cell = table[row][col]; | - |
| 375 | | - |
| 376 | | - |
| 377 | | - |
| 378 | | - |
| 379 | | - |
| 380 | if (col != 0| TRUE | evaluated 1377 times by 1 test | | FALSE | evaluated 311 times by 1 test |
) | 311-1377 |
| 381 | putchar_unlocked (' ');executed 1377 times by 1 test: putchar_unlocked (' '); | 1377 |
| 382 | | - |
| 383 | int flags = 0; | - |
| 384 | if (col == ncolumns - 1| TRUE | evaluated 311 times by 1 test | | FALSE | evaluated 1377 times by 1 test |
) | 311-1377 |
| 385 | flags = MBA_NO_RIGHT_PAD;executed 311 times by 1 test: flags = MBA_NO_RIGHT_PAD; | 311 |
| 386 | | - |
| 387 | size_t width = columns[col]->width; | - |
| 388 | cell = ambsalign (cell, &width, columns[col]->align, flags); | - |
| 389 | | - |
| 390 | fputs_unlocked (cell ? cell : table[row][col], | - |
| 391 | stdout | - |
| 392 | ); | - |
| 393 | free (cell); | - |
| 394 | | - |
| 395 | ; | - |
| 396 | }executed 1688 times by 1 test: end of block | 1688 |
| 397 | putchar_unlocked ('\n'); | - |
| 398 | ; | - |
| 399 | }executed 311 times by 1 test: end of block | 311 |
| 400 | | - |
| 401 | ; | - |
| 402 | }executed 67 times by 1 test: end of block | 67 |
| 403 | | - |
| 404 | | - |
| 405 | | - |
| 406 | | - |
| 407 | static void | - |
| 408 | alloc_field (int f, const char *c) | - |
| 409 | { | - |
| 410 | ncolumns++; | - |
| 411 | columns = xnrealloc (columns, ncolumns, sizeof (struct field_data_t *)); | - |
| 412 | columns[ncolumns - 1] = &field_data[f]; | - |
| 413 | if (c != | TRUE | evaluated 8 times by 1 test | | FALSE | evaluated 382 times by 1 test |
| 8-382 |
| 414 | ((void *)0)| TRUE | evaluated 8 times by 1 test | | FALSE | evaluated 382 times by 1 test |
| 8-382 |
| 415 | ) | - |
| 416 | columns[ncolumns - 1]->caption = c;executed 8 times by 1 test: columns[ncolumns - 1]->caption = c; | 8 |
| 417 | | - |
| 418 | if (field_data[f].used| TRUE | never evaluated | | FALSE | evaluated 390 times by 1 test |
) | 0-390 |
| 419 | | - |
| 420 | (( never executed: (( !"field used" ) ? (void) (0) : __assert_fail ( "!\"field used\"" , "src/df.c", 356, __PRETTY_FUNCTION__)) ; | 0 |
| 421 | !"field used" never executed: (( !"field used" ) ? (void) (0) : __assert_fail ( "!\"field used\"" , "src/df.c", 356, __PRETTY_FUNCTION__)) ; | 0 |
| 422 | ) ? (void) (0) : __assert_fail ( never executed: (( !"field used" ) ? (void) (0) : __assert_fail ( "!\"field used\"" , "src/df.c", 356, __PRETTY_FUNCTION__)) ; | 0 |
| 423 | "!\"field used\"" never executed: (( !"field used" ) ? (void) (0) : __assert_fail ( "!\"field used\"" , "src/df.c", 356, __PRETTY_FUNCTION__)) ; | 0 |
| 424 | , "src/df.c", 356, __PRETTY_FUNCTION__)) never executed: (( !"field used" ) ? (void) (0) : __assert_fail ( "!\"field used\"" , "src/df.c", 356, __PRETTY_FUNCTION__)) ; | 0 |
| 425 | ; never executed: (( !"field used" ) ? (void) (0) : __assert_fail ( "!\"field used\"" , "src/df.c", 356, __PRETTY_FUNCTION__)) ; | 0 |
| 426 | | - |
| 427 | | - |
| 428 | field_data[f].used = | - |
| 429 | 1 | - |
| 430 | ; | - |
| 431 | }executed 390 times by 1 test: end of block | 390 |
| 432 | | - |
| 433 | | - |
| 434 | | - |
| 435 | | - |
| 436 | static void | - |
| 437 | decode_output_arg (char const *arg) | - |
| 438 | { | - |
| 439 | char *arg_writable = xstrdup (arg); | - |
| 440 | char *s = arg_writable; | - |
| 441 | do | - |
| 442 | { | - |
| 443 | | - |
| 444 | char *comma = | - |
| 445 | (__extension__ (__builtin_constant_p (| TRUE | evaluated 46 times by 1 test | | FALSE | never evaluated |
| 0-46 |
| 446 | ','| TRUE | evaluated 46 times by 1 test | | FALSE | never evaluated |
| 0-46 |
| 447 | )| TRUE | evaluated 46 times by 1 test | | FALSE | never evaluated |
&& !__builtin_constant_p (| TRUE | evaluated 46 times by 1 test | | FALSE | never evaluated |
| 0-46 |
| 448 | s| TRUE | evaluated 46 times by 1 test | | FALSE | never evaluated |
| 0-46 |
| 449 | )| TRUE | evaluated 46 times by 1 test | | FALSE | never evaluated |
&& (| TRUE | never evaluated | | FALSE | evaluated 46 times by 1 test |
| 0-46 |
| 450 | ','| TRUE | never evaluated | | FALSE | evaluated 46 times by 1 test |
| 0-46 |
| 451 | ) == '\0'| TRUE | never evaluated | | FALSE | evaluated 46 times by 1 test |
? (char *) __rawmemchr ( | 0-46 |
| 452 | s | - |
| 453 | , | - |
| 454 | ',' | - |
| 455 | ) : __builtin_strchr ( | - |
| 456 | s | - |
| 457 | , | - |
| 458 | ',' | - |
| 459 | ))) | - |
| 460 | ; | - |
| 461 | | - |
| 462 | | - |
| 463 | if (comma| TRUE | evaluated 28 times by 1 test | | FALSE | evaluated 18 times by 1 test |
) | 18-28 |
| 464 | *executed 28 times by 1 test: *comma++ = 0; comma++ = 0;executed 28 times by 1 test: *comma++ = 0; | 28 |
| 465 | | - |
| 466 | | - |
| 467 | display_field_t field = INVALID_FIELD; | - |
| 468 | for (unsigned int i = 0; i < (sizeof (field_data) / sizeof *(field_data))| TRUE | evaluated 302 times by 1 test | | FALSE | never evaluated |
; i++) | 0-302 |
| 469 | { | - |
| 470 | if ((| TRUE | evaluated 46 times by 1 test | | FALSE | evaluated 256 times by 1 test |
| 46-256 |
| 471 | __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (| TRUE | evaluated 46 times by 1 test | | FALSE | evaluated 256 times by 1 test |
| 46-256 |
| 472 | field_data[i].arg| TRUE | evaluated 46 times by 1 test | | FALSE | evaluated 256 times by 1 test |
| 46-256 |
| 473 | ) && __builtin_constant_p (| TRUE | evaluated 46 times by 1 test | | FALSE | evaluated 256 times by 1 test |
| 46-256 |
| 474 | s| TRUE | evaluated 46 times by 1 test | | FALSE | evaluated 256 times by 1 test |
| 46-256 |
| 475 | ) && (__s1_len = __builtin_strlen (| TRUE | evaluated 46 times by 1 test | | FALSE | evaluated 256 times by 1 test |
| 46-256 |
| 476 | field_data[i].arg| TRUE | evaluated 46 times by 1 test | | FALSE | evaluated 256 times by 1 test |
| 46-256 |
| 477 | ), __s2_len = __builtin_strlen (| TRUE | evaluated 46 times by 1 test | | FALSE | evaluated 256 times by 1 test |
| 46-256 |
| 478 | s| TRUE | evaluated 46 times by 1 test | | FALSE | evaluated 256 times by 1 test |
| 46-256 |
| 479 | ), (!((size_t)(const void *)((| TRUE | evaluated 46 times by 1 test | | FALSE | evaluated 256 times by 1 test |
| 46-256 |
| 480 | field_data[i].arg| TRUE | evaluated 46 times by 1 test | | FALSE | evaluated 256 times by 1 test |
| 46-256 |
| 481 | ) + 1) - (size_t)(const void *)(| TRUE | evaluated 46 times by 1 test | | FALSE | evaluated 256 times by 1 test |
| 46-256 |
| 482 | field_data[i].arg| TRUE | evaluated 46 times by 1 test | | FALSE | evaluated 256 times by 1 test |
| 46-256 |
| 483 | ) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((| TRUE | evaluated 46 times by 1 test | | FALSE | evaluated 256 times by 1 test |
| 46-256 |
| 484 | s| TRUE | evaluated 46 times by 1 test | | FALSE | evaluated 256 times by 1 test |
| 46-256 |
| 485 | ) + 1) - (size_t)(const void *)(| TRUE | evaluated 46 times by 1 test | | FALSE | evaluated 256 times by 1 test |
| 46-256 |
| 486 | s| TRUE | evaluated 46 times by 1 test | | FALSE | evaluated 256 times by 1 test |
| 46-256 |
| 487 | ) == 1) || __s2_len >= 4)) ? __builtin_strcmp (| TRUE | evaluated 46 times by 1 test | | FALSE | evaluated 256 times by 1 test |
| 46-256 |
| 488 | field_data[i].arg| TRUE | evaluated 46 times by 1 test | | FALSE | evaluated 256 times by 1 test |
| 46-256 |
| 489 | , | TRUE | evaluated 46 times by 1 test | | FALSE | evaluated 256 times by 1 test |
| 46-256 |
| 490 | s| TRUE | evaluated 46 times by 1 test | | FALSE | evaluated 256 times by 1 test |
| 46-256 |
| 491 | ) : (__builtin_constant_p (| TRUE | evaluated 46 times by 1 test | | FALSE | evaluated 256 times by 1 test |
| 46-256 |
| 492 | field_data[i].arg| TRUE | evaluated 46 times by 1 test | | FALSE | evaluated 256 times by 1 test |
| 46-256 |
| 493 | ) && ((size_t)(const void *)((| TRUE | evaluated 46 times by 1 test | | FALSE | evaluated 256 times by 1 test |
| 46-256 |
| 494 | field_data[i].arg| TRUE | evaluated 46 times by 1 test | | FALSE | evaluated 256 times by 1 test |
| 46-256 |
| 495 | ) + 1) - (size_t)(const void *)(| TRUE | evaluated 46 times by 1 test | | FALSE | evaluated 256 times by 1 test |
| 46-256 |
| 496 | field_data[i].arg| TRUE | evaluated 46 times by 1 test | | FALSE | evaluated 256 times by 1 test |
| 46-256 |
| 497 | ) == 1) && (__s1_len = __builtin_strlen (| TRUE | evaluated 46 times by 1 test | | FALSE | evaluated 256 times by 1 test |
| 46-256 |
| 498 | field_data[i].arg| TRUE | evaluated 46 times by 1 test | | FALSE | evaluated 256 times by 1 test |
| 46-256 |
| 499 | ), __s1_len < 4) ? (__builtin_constant_p (| TRUE | evaluated 46 times by 1 test | | FALSE | evaluated 256 times by 1 test |
| 46-256 |
| 500 | s| TRUE | evaluated 46 times by 1 test | | FALSE | evaluated 256 times by 1 test |
| 46-256 |
| 501 | ) && ((size_t)(const void *)((| TRUE | evaluated 46 times by 1 test | | FALSE | evaluated 256 times by 1 test |
| 46-256 |
| 502 | s| TRUE | evaluated 46 times by 1 test | | FALSE | evaluated 256 times by 1 test |
| 46-256 |
| 503 | ) + 1) - (size_t)(const void *)(| TRUE | evaluated 46 times by 1 test | | FALSE | evaluated 256 times by 1 test |
| 46-256 |
| 504 | s| TRUE | evaluated 46 times by 1 test | | FALSE | evaluated 256 times by 1 test |
| 46-256 |
| 505 | ) == 1) ? __builtin_strcmp (| TRUE | evaluated 46 times by 1 test | | FALSE | evaluated 256 times by 1 test |
| 46-256 |
| 506 | field_data[i].arg| TRUE | evaluated 46 times by 1 test | | FALSE | evaluated 256 times by 1 test |
| 46-256 |
| 507 | , | TRUE | evaluated 46 times by 1 test | | FALSE | evaluated 256 times by 1 test |
| 46-256 |
| 508 | s| TRUE | evaluated 46 times by 1 test | | FALSE | evaluated 256 times by 1 test |
| 46-256 |
| 509 | ) : (__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (| TRUE | evaluated 46 times by 1 test | | FALSE | evaluated 256 times by 1 test |
| 46-256 |
| 510 | s| TRUE | evaluated 46 times by 1 test | | FALSE | evaluated 256 times by 1 test |
| 46-256 |
| 511 | ); int __result = (((const unsigned char *) (const char *) (| TRUE | evaluated 46 times by 1 test | | FALSE | evaluated 256 times by 1 test |
| 46-256 |
| 512 | field_data[i].arg| TRUE | evaluated 46 times by 1 test | | FALSE | evaluated 256 times by 1 test |
| 46-256 |
| 513 | ))[0] - __s2[0]); if (__s1_len > 0| TRUE | never evaluated | | FALSE | never evaluated |
&& __result == 0| TRUE | never evaluated | | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (| TRUE | evaluated 46 times by 1 test | | FALSE | evaluated 256 times by 1 test |
| 0-256 |
| 514 | field_data[i].arg| TRUE | evaluated 46 times by 1 test | | FALSE | evaluated 256 times by 1 test |
| 46-256 |
| 515 | ))[1] - __s2[1]); if (__s1_len > 1| TRUE | never evaluated | | FALSE | never evaluated |
&& __result == 0| TRUE | never evaluated | | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (| TRUE | evaluated 46 times by 1 test | | FALSE | evaluated 256 times by 1 test |
| 0-256 |
| 516 | field_data[i].arg| TRUE | evaluated 46 times by 1 test | | FALSE | evaluated 256 times by 1 test |
| 46-256 |
| 517 | ))[2] - __s2[2]); if (__s1_len > 2| TRUE | never evaluated | | FALSE | never evaluated |
&& __result == 0| TRUE | never evaluated | | FALSE | never evaluated |
) __result = (((const unsigned char *) (const char *) (never executed: __result = (((const unsigned char *) (const char *) ( field_data[i].arg ))[3] - __s2[3]); | TRUE | evaluated 46 times by 1 test | | FALSE | evaluated 256 times by 1 test |
| 0-256 |
| 518 | field_data[i].arg| TRUE | evaluated 46 times by 1 test | | FALSE | evaluated 256 times by 1 test |
never executed: __result = (((const unsigned char *) (const char *) ( field_data[i].arg ))[3] - __s2[3]); | 0-256 |
| 519 | ))[3] - __s2[3]);| TRUE | evaluated 46 times by 1 test | | FALSE | evaluated 256 times by 1 test |
never executed: __result = (((const unsigned char *) (const char *) ( field_data[i].arg ))[3] - __s2[3]); }never executed: end of block }never executed: end of block __result; }))) : (__builtin_constant_p (| TRUE | evaluated 46 times by 1 test | | FALSE | evaluated 256 times by 1 test |
| 0-256 |
| 520 | s| TRUE | evaluated 46 times by 1 test | | FALSE | evaluated 256 times by 1 test |
| 46-256 |
| 521 | ) && ((size_t)(const void *)((| TRUE | evaluated 46 times by 1 test | | FALSE | evaluated 256 times by 1 test |
| 46-256 |
| 522 | s| TRUE | evaluated 46 times by 1 test | | FALSE | evaluated 256 times by 1 test |
| 46-256 |
| 523 | ) + 1) - (size_t)(const void *)(| TRUE | evaluated 46 times by 1 test | | FALSE | evaluated 256 times by 1 test |
| 46-256 |
| 524 | s| TRUE | evaluated 46 times by 1 test | | FALSE | evaluated 256 times by 1 test |
| 46-256 |
| 525 | ) == 1) && (__s2_len = __builtin_strlen (| TRUE | evaluated 46 times by 1 test | | FALSE | evaluated 256 times by 1 test |
| 46-256 |
| 526 | s| TRUE | evaluated 46 times by 1 test | | FALSE | evaluated 256 times by 1 test |
| 46-256 |
| 527 | ), __s2_len < 4) ? (__builtin_constant_p (| TRUE | evaluated 46 times by 1 test | | FALSE | evaluated 256 times by 1 test |
| 46-256 |
| 528 | field_data[i].arg| TRUE | evaluated 46 times by 1 test | | FALSE | evaluated 256 times by 1 test |
| 46-256 |
| 529 | ) && ((size_t)(const void *)((| TRUE | evaluated 46 times by 1 test | | FALSE | evaluated 256 times by 1 test |
| 46-256 |
| 530 | field_data[i].arg| TRUE | evaluated 46 times by 1 test | | FALSE | evaluated 256 times by 1 test |
| 46-256 |
| 531 | ) + 1) - (size_t)(const void *)(| TRUE | evaluated 46 times by 1 test | | FALSE | evaluated 256 times by 1 test |
| 46-256 |
| 532 | field_data[i].arg| TRUE | evaluated 46 times by 1 test | | FALSE | evaluated 256 times by 1 test |
| 46-256 |
| 533 | ) == 1) ? __builtin_strcmp (| TRUE | evaluated 46 times by 1 test | | FALSE | evaluated 256 times by 1 test |
| 46-256 |
| 534 | field_data[i].arg| TRUE | evaluated 46 times by 1 test | | FALSE | evaluated 256 times by 1 test |
| 46-256 |
| 535 | , | TRUE | evaluated 46 times by 1 test | | FALSE | evaluated 256 times by 1 test |
| 46-256 |
| 536 | s| TRUE | evaluated 46 times by 1 test | | FALSE | evaluated 256 times by 1 test |
| 46-256 |
| 537 | ) : -(__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (| TRUE | evaluated 46 times by 1 test | | FALSE | evaluated 256 times by 1 test |
| 46-256 |
| 538 | field_data[i].arg| TRUE | evaluated 46 times by 1 test | | FALSE | evaluated 256 times by 1 test |
| 46-256 |
| 539 | ); int __result = (((const unsigned char *) (const char *) (| TRUE | evaluated 46 times by 1 test | | FALSE | evaluated 256 times by 1 test |
| 46-256 |
| 540 | s| TRUE | evaluated 46 times by 1 test | | FALSE | evaluated 256 times by 1 test |
| 46-256 |
| 541 | ))[0] - __s2[0]); if (__s2_len > 0| TRUE | never evaluated | | FALSE | never evaluated |
&& __result == 0| TRUE | never evaluated | | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (| TRUE | evaluated 46 times by 1 test | | FALSE | evaluated 256 times by 1 test |
| 0-256 |
| 542 | s| TRUE | evaluated 46 times by 1 test | | FALSE | evaluated 256 times by 1 test |
| 46-256 |
| 543 | ))[1] - __s2[1]); if (__s2_len > 1| TRUE | never evaluated | | FALSE | never evaluated |
&& __result == 0| TRUE | never evaluated | | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (| TRUE | evaluated 46 times by 1 test | | FALSE | evaluated 256 times by 1 test |
| 0-256 |
| 544 | s| TRUE | evaluated 46 times by 1 test | | FALSE | evaluated 256 times by 1 test |
| 46-256 |
| 545 | ))[2] - __s2[2]); if (__s2_len > 2| TRUE | never evaluated | | FALSE | never evaluated |
&& __result == 0| TRUE | never evaluated | | FALSE | never evaluated |
) __result = (((const unsigned char *) (const char *) (never executed: __result = (((const unsigned char *) (const char *) ( s ))[3] - __s2[3]); | TRUE | evaluated 46 times by 1 test | | FALSE | evaluated 256 times by 1 test |
| 0-256 |
| 546 | s| TRUE | evaluated 46 times by 1 test | | FALSE | evaluated 256 times by 1 test |
never executed: __result = (((const unsigned char *) (const char *) ( s ))[3] - __s2[3]); | 0-256 |
| 547 | ))[3] - __s2[3]);| TRUE | evaluated 46 times by 1 test | | FALSE | evaluated 256 times by 1 test |
never executed: __result = (((const unsigned char *) (const char *) ( s ))[3] - __s2[3]); }never executed: end of block }never executed: end of block __result; }))) : __builtin_strcmp (| TRUE | evaluated 46 times by 1 test | | FALSE | evaluated 256 times by 1 test |
| 0-256 |
| 548 | field_data[i].arg| TRUE | evaluated 46 times by 1 test | | FALSE | evaluated 256 times by 1 test |
| 46-256 |
| 549 | , | TRUE | evaluated 46 times by 1 test | | FALSE | evaluated 256 times by 1 test |
| 46-256 |
| 550 | s| TRUE | evaluated 46 times by 1 test | | FALSE | evaluated 256 times by 1 test |
| 46-256 |
| 551 | )))); }) | TRUE | evaluated 46 times by 1 test | | FALSE | evaluated 256 times by 1 test |
| 46-256 |
| 552 | == 0)| TRUE | evaluated 46 times by 1 test | | FALSE | evaluated 256 times by 1 test |
) | 46-256 |
| 553 | { | - |
| 554 | field = i; | - |
| 555 | break;executed 46 times by 1 test: break; | 46 |
| 556 | } | - |
| 557 | }executed 256 times by 1 test: end of block | 256 |
| 558 | if (field == INVALID_FIELD| TRUE | never evaluated | | FALSE | evaluated 46 times by 1 test |
) | 0-46 |
| 559 | { | - |
| 560 | error (0, 0, | - |
| 561 | dcgettext (((void *)0), | - |
| 562 | "option --output: field %s unknown" | - |
| 563 | , 5) | - |
| 564 | , quote (s)); | - |
| 565 | usage ( | - |
| 566 | 1 | - |
| 567 | ); | - |
| 568 | } never executed: end of block | 0 |
| 569 | | - |
| 570 | if (field_data[field].used| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 44 times by 1 test |
) | 2-44 |
| 571 | { | - |
| 572 | | - |
| 573 | error (0, 0, | - |
| 574 | dcgettext (((void *)0), | - |
| 575 | "option --output: field %s used more than once" | - |
| 576 | , 5) | - |
| 577 | , | - |
| 578 | quote (field_data[field].arg)); | - |
| 579 | usage ( | - |
| 580 | 1 | - |
| 581 | ); | - |
| 582 | } never executed: end of block | 0 |
| 583 | | - |
| 584 | switch (field) | - |
| 585 | { | - |
| 586 | caseexecuted 10 times by 1 test: case SOURCE_FIELD: SOURCE_FIELD:executed 10 times by 1 test: case SOURCE_FIELD: | 10 |
| 587 | caseexecuted 3 times by 1 test: case FSTYPE_FIELD: FSTYPE_FIELD:executed 3 times by 1 test: case FSTYPE_FIELD: | 3 |
| 588 | caseexecuted 2 times by 1 test: case USED_FIELD: USED_FIELD:executed 2 times by 1 test: case USED_FIELD: | 2 |
| 589 | caseexecuted 2 times by 1 test: case PCENT_FIELD: PCENT_FIELD:executed 2 times by 1 test: case PCENT_FIELD: | 2 |
| 590 | caseexecuted 2 times by 1 test: case ITOTAL_FIELD: ITOTAL_FIELD:executed 2 times by 1 test: case ITOTAL_FIELD: | 2 |
| 591 | caseexecuted 2 times by 1 test: case IUSED_FIELD: IUSED_FIELD:executed 2 times by 1 test: case IUSED_FIELD: | 2 |
| 592 | caseexecuted 2 times by 1 test: case IAVAIL_FIELD: IAVAIL_FIELD:executed 2 times by 1 test: case IAVAIL_FIELD: | 2 |
| 593 | caseexecuted 2 times by 1 test: case IPCENT_FIELD: IPCENT_FIELD:executed 2 times by 1 test: case IPCENT_FIELD: | 2 |
| 594 | caseexecuted 11 times by 1 test: case TARGET_FIELD: TARGET_FIELD:executed 11 times by 1 test: case TARGET_FIELD: | 11 |
| 595 | caseexecuted 3 times by 1 test: case FILE_FIELD: FILE_FIELD:executed 3 times by 1 test: case FILE_FIELD: | 3 |
| 596 | alloc_field (field, | - |
| 597 | ((void *)0) | - |
| 598 | ); | - |
| 599 | break;executed 39 times by 1 test: break; | 39 |
| 600 | | - |
| 601 | caseexecuted 3 times by 1 test: case SIZE_FIELD: SIZE_FIELD:executed 3 times by 1 test: case SIZE_FIELD: | 3 |
| 602 | alloc_field (field, "Size"); | - |
| 603 | break;executed 3 times by 1 test: break; | 3 |
| 604 | | - |
| 605 | caseexecuted 2 times by 1 test: case AVAIL_FIELD: AVAIL_FIELD:executed 2 times by 1 test: case AVAIL_FIELD: | 2 |
| 606 | alloc_field (field, "Avail"); | - |
| 607 | break;executed 2 times by 1 test: break; | 2 |
| 608 | | - |
| 609 | default never executed: default: :never executed: default: | 0 |
| 610 | | - |
| 611 | (( | - |
| 612 | !"invalid field" | - |
| 613 | ) ? (void) (0) : __assert_fail ( | - |
| 614 | "!\"invalid field\"" | - |
| 615 | , "src/df.c", 427, __PRETTY_FUNCTION__)) | - |
| 616 | ; | - |
| 617 | } never executed: end of block | 0 |
| 618 | s = comma; | - |
| 619 | }executed 44 times by 1 test: end of block | 44 |
| 620 | while (s| TRUE | evaluated 28 times by 1 test | | FALSE | evaluated 16 times by 1 test |
); | 16-28 |
| 621 | | - |
| 622 | free (arg_writable); | - |
| 623 | }executed 16 times by 1 test: end of block | 16 |
| 624 | | - |
| 625 | | - |
| 626 | static void | - |
| 627 | get_field_list (void) | - |
| 628 | { | - |
| 629 | switch (header_mode) | - |
| 630 | { | - |
| 631 | caseexecuted 51 times by 1 test: case DEFAULT_MODE: DEFAULT_MODE:executed 51 times by 1 test: case DEFAULT_MODE: | 51 |
| 632 | alloc_field (SOURCE_FIELD, | - |
| 633 | ((void *)0) | - |
| 634 | ); | - |
| 635 | if (print_type| TRUE | evaluated 3 times by 1 test | | FALSE | evaluated 48 times by 1 test |
) | 3-48 |
| 636 | alloc_field (FSTYPE_FIELD, executed 3 times by 1 test: alloc_field (FSTYPE_FIELD, ((void *)0) ); | 3 |
| 637 | ((void *)0)executed 3 times by 1 test: alloc_field (FSTYPE_FIELD, ((void *)0) ); | 3 |
| 638 | );executed 3 times by 1 test: alloc_field (FSTYPE_FIELD, ((void *)0) ); | 3 |
| 639 | alloc_field (SIZE_FIELD, | - |
| 640 | ((void *)0) | - |
| 641 | ); | - |
| 642 | alloc_field (USED_FIELD, | - |
| 643 | ((void *)0) | - |
| 644 | ); | - |
| 645 | alloc_field (AVAIL_FIELD, | - |
| 646 | ((void *)0) | - |
| 647 | ); | - |
| 648 | alloc_field (PCENT_FIELD, | - |
| 649 | ((void *)0) | - |
| 650 | ); | - |
| 651 | alloc_field (TARGET_FIELD, | - |
| 652 | ((void *)0) | - |
| 653 | ); | - |
| 654 | break;executed 51 times by 1 test: break; | 51 |
| 655 | | - |
| 656 | case never executed: case HUMAN_MODE: HUMAN_MODE:never executed: case HUMAN_MODE: | 0 |
| 657 | alloc_field (SOURCE_FIELD, | - |
| 658 | ((void *)0) | - |
| 659 | ); | - |
| 660 | if (print_type| TRUE | never evaluated | | FALSE | never evaluated |
) | 0 |
| 661 | alloc_field (FSTYPE_FIELD, never executed: alloc_field (FSTYPE_FIELD, ((void *)0) ); | 0 |
| 662 | ((void *)0) never executed: alloc_field (FSTYPE_FIELD, ((void *)0) ); | 0 |
| 663 | ); never executed: alloc_field (FSTYPE_FIELD, ((void *)0) ); | 0 |
| 664 | | - |
| 665 | alloc_field (SIZE_FIELD, "Size"); | - |
| 666 | alloc_field (USED_FIELD, | - |
| 667 | ((void *)0) | - |
| 668 | ); | - |
| 669 | alloc_field (AVAIL_FIELD, "Avail"); | - |
| 670 | alloc_field (PCENT_FIELD, | - |
| 671 | ((void *)0) | - |
| 672 | ); | - |
| 673 | alloc_field (TARGET_FIELD, | - |
| 674 | ((void *)0) | - |
| 675 | ); | - |
| 676 | break; never executed: break; | 0 |
| 677 | | - |
| 678 | caseexecuted 3 times by 1 test: case INODES_MODE: INODES_MODE:executed 3 times by 1 test: case INODES_MODE: | 3 |
| 679 | alloc_field (SOURCE_FIELD, | - |
| 680 | ((void *)0) | - |
| 681 | ); | - |
| 682 | if (print_type| TRUE | evaluated 1 time by 1 test | | FALSE | evaluated 2 times by 1 test |
) | 1-2 |
| 683 | alloc_field (FSTYPE_FIELD, executed 1 time by 1 test: alloc_field (FSTYPE_FIELD, ((void *)0) ); | 1 |
| 684 | ((void *)0)executed 1 time by 1 test: alloc_field (FSTYPE_FIELD, ((void *)0) ); | 1 |
| 685 | );executed 1 time by 1 test: alloc_field (FSTYPE_FIELD, ((void *)0) ); | 1 |
| 686 | alloc_field (ITOTAL_FIELD, | - |
| 687 | ((void *)0) | - |
| 688 | ); | - |
| 689 | alloc_field (IUSED_FIELD, | - |
| 690 | ((void *)0) | - |
| 691 | ); | - |
| 692 | alloc_field (IAVAIL_FIELD, | - |
| 693 | ((void *)0) | - |
| 694 | ); | - |
| 695 | alloc_field (IPCENT_FIELD, | - |
| 696 | ((void *)0) | - |
| 697 | ); | - |
| 698 | alloc_field (TARGET_FIELD, | - |
| 699 | ((void *)0) | - |
| 700 | ); | - |
| 701 | break;executed 3 times by 1 test: break; | 3 |
| 702 | | - |
| 703 | caseexecuted 3 times by 1 test: case POSIX_MODE: POSIX_MODE:executed 3 times by 1 test: case POSIX_MODE: | 3 |
| 704 | alloc_field (SOURCE_FIELD, | - |
| 705 | ((void *)0) | - |
| 706 | ); | - |
| 707 | if (print_type| TRUE | never evaluated | | FALSE | evaluated 3 times by 1 test |
) | 0-3 |
| 708 | alloc_field (FSTYPE_FIELD, never executed: alloc_field (FSTYPE_FIELD, ((void *)0) ); | 0 |
| 709 | ((void *)0) never executed: alloc_field (FSTYPE_FIELD, ((void *)0) ); | 0 |
| 710 | ); never executed: alloc_field (FSTYPE_FIELD, ((void *)0) ); | 0 |
| 711 | alloc_field (SIZE_FIELD, | - |
| 712 | ((void *)0) | - |
| 713 | ); | - |
| 714 | alloc_field (USED_FIELD, | - |
| 715 | ((void *)0) | - |
| 716 | ); | - |
| 717 | alloc_field (AVAIL_FIELD, | - |
| 718 | ((void *)0) | - |
| 719 | ); | - |
| 720 | alloc_field (PCENT_FIELD, "Capacity"); | - |
| 721 | alloc_field (TARGET_FIELD, | - |
| 722 | ((void *)0) | - |
| 723 | ); | - |
| 724 | break;executed 3 times by 1 test: break; | 3 |
| 725 | | - |
| 726 | caseexecuted 14 times by 1 test: case OUTPUT_MODE: OUTPUT_MODE:executed 14 times by 1 test: case OUTPUT_MODE: | 14 |
| 727 | if (!ncolumns| TRUE | evaluated 1 time by 1 test | | FALSE | evaluated 13 times by 1 test |
) | 1-13 |
| 728 | { | - |
| 729 | | - |
| 730 | decode_output_arg (all_args_string); | - |
| 731 | }executed 1 time by 1 test: end of block | 1 |
| 732 | break;executed 14 times by 1 test: break; | 14 |
| 733 | | - |
| 734 | default never executed: default: :never executed: default: | 0 |
| 735 | | - |
| 736 | (( | - |
| 737 | !"invalid header_mode" | - |
| 738 | ) ? (void) (0) : __assert_fail ( | - |
| 739 | "!\"invalid header_mode\"" | - |
| 740 | , "src/df.c", 496, __PRETTY_FUNCTION__)) | - |
| 741 | ; | - |
| 742 | } never executed: end of block | 0 |
| 743 | } | - |
| 744 | | - |
| 745 | | - |
| 746 | | - |
| 747 | static void | - |
| 748 | get_header (void) | - |
| 749 | { | - |
| 750 | size_t col; | - |
| 751 | | - |
| 752 | alloc_table_row (); | - |
| 753 | | - |
| 754 | for (col = 0; col < ncolumns| TRUE | evaluated 386 times by 1 test | | FALSE | evaluated 71 times by 1 test |
; col++) | 71-386 |
| 755 | { | - |
| 756 | char *cell = | - |
| 757 | ((void *)0) | - |
| 758 | ; | - |
| 759 | char const *header = | - |
| 760 | dcgettext (((void *)0), | - |
| 761 | columns[col]->caption | - |
| 762 | , 5) | - |
| 763 | ; | - |
| 764 | | - |
| 765 | if (columns[col]->field == SIZE_FIELD| TRUE | evaluated 57 times by 1 test | | FALSE | evaluated 329 times by 1 test |
| 57-329 |
| 766 | && (header_mode == DEFAULT_MODE| TRUE | evaluated 51 times by 1 test | | FALSE | evaluated 6 times by 1 test |
| 6-51 |
| 767 | || (header_mode == OUTPUT_MODE| TRUE | evaluated 3 times by 1 test | | FALSE | evaluated 3 times by 1 test |
| 3 |
| 768 | && !(human_output_opts & human_autoscale)| TRUE | evaluated 1 time by 1 test | | FALSE | evaluated 2 times by 1 test |
))) | 1-2 |
| 769 | { | - |
| 770 | char buf[((2 * sizeof (uintmax_t) * 8 * 146 / 485 + 1) * ( | - |
| 771 | 16 | - |
| 772 | + 1) - | - |
| 773 | 16 | - |
| 774 | + 1 + 3) + 1]; | - |
| 775 | | - |
| 776 | int opts = (human_suppress_point_zero | - |
| 777 | | human_autoscale | human_SI | - |
| 778 | | (human_output_opts | - |
| 779 | & (human_group_digits | human_base_1024 | human_B))); | - |
| 780 | | - |
| 781 | | - |
| 782 | | - |
| 783 | | - |
| 784 | uintmax_t q1000 = output_block_size; | - |
| 785 | uintmax_t q1024 = output_block_size; | - |
| 786 | | - |
| 787 | _Bool | - |
| 788 | divisible_by_1000; | - |
| 789 | | - |
| 790 | _Bool | - |
| 791 | divisible_by_1024; | - |
| 792 | | - |
| 793 | do | - |
| 794 | { | - |
| 795 | divisible_by_1000 = q1000 % 1000 == 0; q1000 /= 1000; | - |
| 796 | divisible_by_1024 = q1024 % 1024 == 0; q1024 /= 1024; | - |
| 797 | }executed 52 times by 1 test: end of block | 52 |
| 798 | while (divisible_by_1000 & divisible_by_1024| TRUE | never evaluated | | FALSE | evaluated 52 times by 1 test |
); | 0-52 |
| 799 | | - |
| 800 | if (divisible_by_1000 < divisible_by_1024| TRUE | evaluated 52 times by 1 test | | FALSE | never evaluated |
) | 0-52 |
| 801 | opts |= human_base_1024;executed 52 times by 1 test: opts |= human_base_1024; | 52 |
| 802 | if (divisible_by_1024 < divisible_by_1000| TRUE | never evaluated | | FALSE | evaluated 52 times by 1 test |
) | 0-52 |
| 803 | opts &= ~human_base_1024; never executed: opts &= ~human_base_1024; | 0 |
| 804 | if (! (opts & human_base_1024)| TRUE | never evaluated | | FALSE | evaluated 52 times by 1 test |
) | 0-52 |
| 805 | opts |= human_B; never executed: opts |= human_B; | 0 |
| 806 | | - |
| 807 | char *num = human_readable (output_block_size, buf, opts, 1, 1); | - |
| 808 | | - |
| 809 | | - |
| 810 | header = | - |
| 811 | dcgettext (((void *)0), | - |
| 812 | "blocks" | - |
| 813 | , 5) | - |
| 814 | ; | - |
| 815 | | - |
| 816 | | - |
| 817 | if (asprintf (&cell, | TRUE | never evaluated | | FALSE | evaluated 52 times by 1 test |
| 0-52 |
| 818 | dcgettext (((void *)0), | TRUE | never evaluated | | FALSE | evaluated 52 times by 1 test |
| 0-52 |
| 819 | "%s-%s"| TRUE | never evaluated | | FALSE | evaluated 52 times by 1 test |
| 0-52 |
| 820 | , 5)| TRUE | never evaluated | | FALSE | evaluated 52 times by 1 test |
| 0-52 |
| 821 | , num, header) == -1| TRUE | never evaluated | | FALSE | evaluated 52 times by 1 test |
) | 0-52 |
| 822 | cell = never executed: cell = ((void *)0) ; | 0 |
| 823 | ((void *)0) never executed: cell = ((void *)0) ; | 0 |
| 824 | ; never executed: cell = ((void *)0) ; | 0 |
| 825 | }executed 52 times by 1 test: end of block | 52 |
| 826 | else if (header_mode == POSIX_MODE| TRUE | evaluated 18 times by 1 test | | FALSE | evaluated 316 times by 1 test |
&& columns[col]->field == SIZE_FIELD| TRUE | evaluated 3 times by 1 test | | FALSE | evaluated 15 times by 1 test |
) | 3-316 |
| 827 | { | - |
| 828 | char buf[((((((sizeof (uintmax_t) * 8) - (! ((__typeof__ (uintmax_t)) 0 < (__typeof__ (uintmax_t)) -1))) * 146 + 484) / 485) + (! ((__typeof__ (uintmax_t)) 0 < (__typeof__ (uintmax_t)) -1))) + 1)]; | - |
| 829 | char *num = umaxtostr (output_block_size, buf); | - |
| 830 | | - |
| 831 | | - |
| 832 | if (asprintf (&cell, | TRUE | never evaluated | | FALSE | evaluated 3 times by 1 test |
| 0-3 |
| 833 | dcgettext (((void *)0), | TRUE | never evaluated | | FALSE | evaluated 3 times by 1 test |
| 0-3 |
| 834 | "%s-%s"| TRUE | never evaluated | | FALSE | evaluated 3 times by 1 test |
| 0-3 |
| 835 | , 5)| TRUE | never evaluated | | FALSE | evaluated 3 times by 1 test |
| 0-3 |
| 836 | , num, header) == -1| TRUE | never evaluated | | FALSE | evaluated 3 times by 1 test |
) | 0-3 |
| 837 | cell = never executed: cell = ((void *)0) ; | 0 |
| 838 | ((void *)0) never executed: cell = ((void *)0) ; | 0 |
| 839 | ; never executed: cell = ((void *)0) ; | 0 |
| 840 | }executed 3 times by 1 test: end of block | 3 |
| 841 | else | - |
| 842 | cell = executed 331 times by 1 test: cell = (__extension__ (__builtin_constant_p ( header ) && ((size_t)(const void *)(( header ) + 1) - (size_t)(const void *)( header ) == 1) ? (((const char *) ( header ))[0] == '\0' ? (char *) calloc ((size_t) 1, (size_t) 1) : ({ size_t __len = strlen ( header ) + 1; char *__retval = (char *) malloc (__len); if (__retval != ((void *)0)) __retval = (char *) memcpy (__retval, header , __len); __retval; })) : __strdup ( header ))) ; | 331 |
| 843 | (__extension__ (__builtin_constant_p (| TRUE | never evaluated | | FALSE | evaluated 331 times by 1 test |
executed 331 times by 1 test: cell = (__extension__ (__builtin_constant_p ( header ) && ((size_t)(const void *)(( header ) + 1) - (size_t)(const void *)( header ) == 1) ? (((const char *) ( header ))[0] == '\0' ? (char *) calloc ((size_t) 1, (size_t) 1) : ({ size_t __len = strlen ( header ) + 1; char *__retval = (char *) malloc (__len); if (__retval != ((void *)0)) __retval = (char *) memcpy (__retval, header , __len); __retval; })) : __strdup ( header ))) ; | 0-331 |
| 844 | header| TRUE | never evaluated | | FALSE | evaluated 331 times by 1 test |
executed 331 times by 1 test: cell = (__extension__ (__builtin_constant_p ( header ) && ((size_t)(const void *)(( header ) + 1) - (size_t)(const void *)( header ) == 1) ? (((const char *) ( header ))[0] == '\0' ? (char *) calloc ((size_t) 1, (size_t) 1) : ({ size_t __len = strlen ( header ) + 1; char *__retval = (char *) malloc (__len); if (__retval != ((void *)0)) __retval = (char *) memcpy (__retval, header , __len); __retval; })) : __strdup ( header ))) ; | 0-331 |
| 845 | )| TRUE | never evaluated | | FALSE | evaluated 331 times by 1 test |
&& ((| TRUE | never evaluated | | FALSE | never evaluated |
size_t)(const void *)((| TRUE | never evaluated | | FALSE | never evaluated |
executed 331 times by 1 test: cell = (__extension__ (__builtin_constant_p ( header ) && ((size_t)(const void *)(( header ) + 1) - (size_t)(const void *)( header ) == 1) ? (((const char *) ( header ))[0] == '\0' ? (char *) calloc ((size_t) 1, (size_t) 1) : ({ size_t __len = strlen ( header ) + 1; char *__retval = (char *) malloc (__len); if (__retval != ((void *)0)) __retval = (char *) memcpy (__retval, header , __len); __retval; })) : __strdup ( header ))) ; | 0-331 |
| 846 | header| TRUE | never evaluated | | FALSE | never evaluated |
executed 331 times by 1 test: cell = (__extension__ (__builtin_constant_p ( header ) && ((size_t)(const void *)(( header ) + 1) - (size_t)(const void *)( header ) == 1) ? (((const char *) ( header ))[0] == '\0' ? (char *) calloc ((size_t) 1, (size_t) 1) : ({ size_t __len = strlen ( header ) + 1; char *__retval = (char *) malloc (__len); if (__retval != ((void *)0)) __retval = (char *) memcpy (__retval, header , __len); __retval; })) : __strdup ( header ))) ; | 0-331 |
| 847 | ) + 1) - (size_t)(const void *)(| TRUE | never evaluated | | FALSE | never evaluated |
executed 331 times by 1 test: cell = (__extension__ (__builtin_constant_p ( header ) && ((size_t)(const void *)(( header ) + 1) - (size_t)(const void *)( header ) == 1) ? (((const char *) ( header ))[0] == '\0' ? (char *) calloc ((size_t) 1, (size_t) 1) : ({ size_t __len = strlen ( header ) + 1; char *__retval = (char *) malloc (__len); if (__retval != ((void *)0)) __retval = (char *) memcpy (__retval, header , __len); __retval; })) : __strdup ( header ))) ; | 0-331 |
| 848 | header| TRUE | never evaluated | | FALSE | never evaluated |
executed 331 times by 1 test: cell = (__extension__ (__builtin_constant_p ( header ) && ((size_t)(const void *)(( header ) + 1) - (size_t)(const void *)( header ) == 1) ? (((const char *) ( header ))[0] == '\0' ? (char *) calloc ((size_t) 1, (size_t) 1) : ({ size_t __len = strlen ( header ) + 1; char *__retval = (char *) malloc (__len); if (__retval != ((void *)0)) __retval = (char *) memcpy (__retval, header , __len); __retval; })) : __strdup ( header ))) ; | 0-331 |
| 849 | ) == 1)| TRUE | never evaluated | | FALSE | never evaluated |
? (((const| TRUE | never evaluated | | FALSE | never evaluated |
char *) (| TRUE | never evaluated | | FALSE | never evaluated |
executed 331 times by 1 test: cell = (__extension__ (__builtin_constant_p ( header ) && ((size_t)(const void *)(( header ) + 1) - (size_t)(const void *)( header ) == 1) ? (((const char *) ( header ))[0] == '\0' ? (char *) calloc ((size_t) 1, (size_t) 1) : ({ size_t __len = strlen ( header ) + 1; char *__retval = (char *) malloc (__len); if (__retval != ((void *)0)) __retval = (char *) memcpy (__retval, header , __len); __retval; })) : __strdup ( header ))) ; | 0-331 |
| 850 | header| TRUE | never evaluated | | FALSE | never evaluated |
executed 331 times by 1 test: cell = (__extension__ (__builtin_constant_p ( header ) && ((size_t)(const void *)(( header ) + 1) - (size_t)(const void *)( header ) == 1) ? (((const char *) ( header ))[0] == '\0' ? (char *) calloc ((size_t) 1, (size_t) 1) : ({ size_t __len = strlen ( header ) + 1; char *__retval = (char *) malloc (__len); if (__retval != ((void *)0)) __retval = (char *) memcpy (__retval, header , __len); __retval; })) : __strdup ( header ))) ; | 0-331 |
| 851 | ))[0] == '\0'| TRUE | never evaluated | | FALSE | never evaluated |
? (char *) calloc ((size_t) 1, (size_t) 1) : ({ size_t __len = strlen (executed 331 times by 1 test: cell = (__extension__ (__builtin_constant_p ( header ) && ((size_t)(const void *)(( header ) + 1) - (size_t)(const void *)( header ) == 1) ? (((const char *) ( header ))[0] == '\0' ? (char *) calloc ((size_t) 1, (size_t) 1) : ({ size_t __len = strlen ( header ) + 1; char *__retval = (char *) malloc (__len); if (__retval != ((void *)0)) __retval = (char *) memcpy (__retval, header , __len); __retval; })) : __strdup ( header ))) ; | 0-331 |
| 852 | headerexecuted 331 times by 1 test: cell = (__extension__ (__builtin_constant_p ( header ) && ((size_t)(const void *)(( header ) + 1) - (size_t)(const void *)( header ) == 1) ? (((const char *) ( header ))[0] == '\0' ? (char *) calloc ((size_t) 1, (size_t) 1) : ({ size_t __len = strlen ( header ) + 1; char *__retval = (char *) malloc (__len); if (__retval != ((void *)0)) __retval = (char *) memcpy (__retval, header , __len); __retval; })) : __strdup ( header ))) ; | 331 |
| 853 | ) + 1; char *__retval = (char *) malloc (__len); if (__retval != ((void *)0)| TRUE | never evaluated | | FALSE | never evaluated |
) __retval = (char *) memcpy (__retval, never executed: __retval = (char *) memcpy (__retval, header , __len); executed 331 times by 1 test: cell = (__extension__ (__builtin_constant_p ( header ) && ((size_t)(const void *)(( header ) + 1) - (size_t)(const void *)( header ) == 1) ? (((const char *) ( header ))[0] == '\0' ? (char *) calloc ((size_t) 1, (size_t) 1) : ({ size_t __len = strlen ( header ) + 1; char *__retval = (char *) malloc (__len); if (__retval != ((void *)0)) __retval = (char *) memcpy (__retval, header , __len); __retval; })) : __strdup ( header ))) ; | 0-331 |
| 854 | header never executed: __retval = (char *) memcpy (__retval, header , __len); executed 331 times by 1 test: cell = (__extension__ (__builtin_constant_p ( header ) && ((size_t)(const void *)(( header ) + 1) - (size_t)(const void *)( header ) == 1) ? (((const char *) ( header ))[0] == '\0' ? (char *) calloc ((size_t) 1, (size_t) 1) : ({ size_t __len = strlen ( header ) + 1; char *__retval = (char *) malloc (__len); if (__retval != ((void *)0)) __retval = (char *) memcpy (__retval, header , __len); __retval; })) : __strdup ( header ))) ; | 0-331 |
| 855 | , __len); never executed: __retval = (char *) memcpy (__retval, header , __len); __retval; })) : __strdup (executed 331 times by 1 test: cell = (__extension__ (__builtin_constant_p ( header ) && ((size_t)(const void *)(( header ) + 1) - (size_t)(const void *)( header ) == 1) ? (((const char *) ( header ))[0] == '\0' ? (char *) calloc ((size_t) 1, (size_t) 1) : ({ size_t __len = strlen ( header ) + 1; char *__retval = (char *) malloc (__len); if (__retval != ((void *)0)) __retval = (char *) memcpy (__retval, header , __len); __retval; })) : __strdup ( header ))) ; | 0-331 |
| 856 | headerexecuted 331 times by 1 test: cell = (__extension__ (__builtin_constant_p ( header ) && ((size_t)(const void *)(( header ) + 1) - (size_t)(const void *)( header ) == 1) ? (((const char *) ( header ))[0] == '\0' ? (char *) calloc ((size_t) 1, (size_t) 1) : ({ size_t __len = strlen ( header ) + 1; char *__retval = (char *) malloc (__len); if (__retval != ((void *)0)) __retval = (char *) memcpy (__retval, header , __len); __retval; })) : __strdup ( header ))) ; | 331 |
| 857 | )))executed 331 times by 1 test: cell = (__extension__ (__builtin_constant_p ( header ) && ((size_t)(const void *)(( header ) + 1) - (size_t)(const void *)( header ) == 1) ? (((const char *) ( header ))[0] == '\0' ? (char *) calloc ((size_t) 1, (size_t) 1) : ({ size_t __len = strlen ( header ) + 1; char *__retval = (char *) malloc (__len); if (__retval != ((void *)0)) __retval = (char *) memcpy (__retval, header , __len); __retval; })) : __strdup ( header ))) ; | 331 |
| 858 | ;executed 331 times by 1 test: cell = (__extension__ (__builtin_constant_p ( header ) && ((size_t)(const void *)(( header ) + 1) - (size_t)(const void *)( header ) == 1) ? (((const char *) ( header ))[0] == '\0' ? (char *) calloc ((size_t) 1, (size_t) 1) : ({ size_t __len = strlen ( header ) + 1; char *__retval = (char *) malloc (__len); if (__retval != ((void *)0)) __retval = (char *) memcpy (__retval, header , __len); __retval; })) : __strdup ( header ))) ; | 331 |
| 859 | | - |
| 860 | if (!cell| TRUE | never evaluated | | FALSE | evaluated 386 times by 1 test |
) | 0-386 |
| 861 | xalloc_die (); never executed: xalloc_die (); | 0 |
| 862 | | - |
| 863 | hide_problematic_chars (cell); | - |
| 864 | | - |
| 865 | table[nrows - 1][col] = cell; | - |
| 866 | | - |
| 867 | columns[col]->width = | - |
| 868 | (((| TRUE | evaluated 123 times by 1 test | | FALSE | evaluated 263 times by 1 test |
| 123-263 |
| 869 | columns[col]->width| TRUE | evaluated 123 times by 1 test | | FALSE | evaluated 263 times by 1 test |
| 123-263 |
| 870 | )>(| TRUE | evaluated 123 times by 1 test | | FALSE | evaluated 263 times by 1 test |
| 123-263 |
| 871 | gnu_mbswidth (cell, 0)| TRUE | evaluated 123 times by 1 test | | FALSE | evaluated 263 times by 1 test |
| 123-263 |
| 872 | ))| TRUE | evaluated 123 times by 1 test | | FALSE | evaluated 263 times by 1 test |
?( | 123-263 |
| 873 | columns[col]->width | - |
| 874 | ):( | - |
| 875 | gnu_mbswidth (cell, 0) | - |
| 876 | )) | - |
| 877 | ; | - |
| 878 | }executed 386 times by 1 test: end of block | 386 |
| 879 | }executed 71 times by 1 test: end of block | 71 |
| 880 | | - |
| 881 | | - |
| 882 | | - |
| 883 | static | - |
| 884 | _Bool __attribute__ ((__pure__)) | - |
| 885 | | - |
| 886 | selected_fstype (const char *fstype) | - |
| 887 | { | - |
| 888 | const struct fs_type_list *fsp; | - |
| 889 | | - |
| 890 | if (fs_select_list == | TRUE | evaluated 1025 times by 1 test | | FALSE | evaluated 3 times by 1 test |
| 3-1025 |
| 891 | ((void *)0)| TRUE | evaluated 1025 times by 1 test | | FALSE | evaluated 3 times by 1 test |
| 3-1025 |
| 892 | || fstype == | TRUE | never evaluated | | FALSE | evaluated 3 times by 1 test |
| 0-3 |
| 893 | ((void *)0)| TRUE | never evaluated | | FALSE | evaluated 3 times by 1 test |
| 0-3 |
| 894 | ) | - |
| 895 | returnexecuted 1025 times by 1 test: return 1 ; executed 1025 times by 1 test: return 1 ; | 1025 |
| 896 | 1executed 1025 times by 1 test: return 1 ; | 1025 |
| 897 | ;executed 1025 times by 1 test: return 1 ; | 1025 |
| 898 | for (fsp = fs_select_list; fsp| TRUE | evaluated 4 times by 1 test | | FALSE | evaluated 3 times by 1 test |
; fsp = fsp->fs_next) | 3-4 |
| 899 | if ((| TRUE | never evaluated | | FALSE | evaluated 4 times by 1 test |
| 0-4 |
| 900 | __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (| TRUE | never evaluated | | FALSE | evaluated 4 times by 1 test |
| 0-4 |
| 901 | fstype| TRUE | never evaluated | | FALSE | evaluated 4 times by 1 test |
| 0-4 |
| 902 | ) && __builtin_constant_p (| TRUE | never evaluated | | FALSE | evaluated 4 times by 1 test |
| 0-4 |
| 903 | fsp->fs_name| TRUE | never evaluated | | FALSE | evaluated 4 times by 1 test |
| 0-4 |
| 904 | ) && (__s1_len = __builtin_strlen (| TRUE | never evaluated | | FALSE | evaluated 4 times by 1 test |
| 0-4 |
| 905 | fstype| TRUE | never evaluated | | FALSE | evaluated 4 times by 1 test |
| 0-4 |
| 906 | ), __s2_len = __builtin_strlen (| TRUE | never evaluated | | FALSE | evaluated 4 times by 1 test |
| 0-4 |
| 907 | fsp->fs_name| TRUE | never evaluated | | FALSE | evaluated 4 times by 1 test |
| 0-4 |
| 908 | ), (!((size_t)(const void *)((| TRUE | never evaluated | | FALSE | evaluated 4 times by 1 test |
| 0-4 |
| 909 | fstype| TRUE | never evaluated | | FALSE | evaluated 4 times by 1 test |
| 0-4 |
| 910 | ) + 1) - (size_t)(const void *)(| TRUE | never evaluated | | FALSE | evaluated 4 times by 1 test |
| 0-4 |
| 911 | fstype| TRUE | never evaluated | | FALSE | evaluated 4 times by 1 test |
| 0-4 |
| 912 | ) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((| TRUE | never evaluated | | FALSE | evaluated 4 times by 1 test |
| 0-4 |
| 913 | fsp->fs_name| TRUE | never evaluated | | FALSE | evaluated 4 times by 1 test |
| 0-4 |
| 914 | ) + 1) - (size_t)(const void *)(| TRUE | never evaluated | | FALSE | evaluated 4 times by 1 test |
| 0-4 |
| 915 | fsp->fs_name| TRUE | never evaluated | | FALSE | evaluated 4 times by 1 test |
| 0-4 |
| 916 | ) == 1) || __s2_len >= 4)) ? __builtin_strcmp (| TRUE | never evaluated | | FALSE | evaluated 4 times by 1 test |
| 0-4 |
| 917 | fstype| TRUE | never evaluated | | FALSE | evaluated 4 times by 1 test |
| 0-4 |
| 918 | , | TRUE | never evaluated | | FALSE | evaluated 4 times by 1 test |
| 0-4 |
| 919 | fsp->fs_name| TRUE | never evaluated | | FALSE | evaluated 4 times by 1 test |
| 0-4 |
| 920 | ) : (__builtin_constant_p (| TRUE | never evaluated | | FALSE | evaluated 4 times by 1 test |
| 0-4 |
| 921 | fstype| TRUE | never evaluated | | FALSE | evaluated 4 times by 1 test |
| 0-4 |
| 922 | ) && ((size_t)(const void *)((| TRUE | never evaluated | | FALSE | evaluated 4 times by 1 test |
| 0-4 |
| 923 | fstype| TRUE | never evaluated | | FALSE | evaluated 4 times by 1 test |
| 0-4 |
| 924 | ) + 1) - (size_t)(const void *)(| TRUE | never evaluated | | FALSE | evaluated 4 times by 1 test |
| 0-4 |
| 925 | fstype| TRUE | never evaluated | | FALSE | evaluated 4 times by 1 test |
| 0-4 |
| 926 | ) == 1) && (__s1_len = __builtin_strlen (| TRUE | never evaluated | | FALSE | evaluated 4 times by 1 test |
| 0-4 |
| 927 | fstype| TRUE | never evaluated | | FALSE | evaluated 4 times by 1 test |
| 0-4 |
| 928 | ), __s1_len < 4) ? (__builtin_constant_p (| TRUE | never evaluated | | FALSE | evaluated 4 times by 1 test |
| 0-4 |
| 929 | fsp->fs_name| TRUE | never evaluated | | FALSE | evaluated 4 times by 1 test |
| 0-4 |
| 930 | ) && ((size_t)(const void *)((| TRUE | never evaluated | | FALSE | evaluated 4 times by 1 test |
| 0-4 |
| 931 | fsp->fs_name| TRUE | never evaluated | | FALSE | evaluated 4 times by 1 test |
| 0-4 |
| 932 | ) + 1) - (size_t)(const void *)(| TRUE | never evaluated | | FALSE | evaluated 4 times by 1 test |
| 0-4 |
| 933 | fsp->fs_name| TRUE | never evaluated | | FALSE | evaluated 4 times by 1 test |
| 0-4 |
| 934 | ) == 1) ? __builtin_strcmp (| TRUE | never evaluated | | FALSE | evaluated 4 times by 1 test |
| 0-4 |
| 935 | fstype| TRUE | never evaluated | | FALSE | evaluated 4 times by 1 test |
| 0-4 |
| 936 | , | TRUE | never evaluated | | FALSE | evaluated 4 times by 1 test |
| 0-4 |
| 937 | fsp->fs_name| TRUE | never evaluated | | FALSE | evaluated 4 times by 1 test |
| 0-4 |
| 938 | ) : (__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (| TRUE | never evaluated | | FALSE | evaluated 4 times by 1 test |
| 0-4 |
| 939 | fsp->fs_name| TRUE | never evaluated | | FALSE | evaluated 4 times by 1 test |
| 0-4 |
| 940 | ); int __result = (((const unsigned char *) (const char *) (| TRUE | never evaluated | | FALSE | evaluated 4 times by 1 test |
| 0-4 |
| 941 | fstype| TRUE | never evaluated | | FALSE | evaluated 4 times by 1 test |
| 0-4 |
| 942 | ))[0] - __s2[0]); if (__s1_len > 0| TRUE | never evaluated | | FALSE | never evaluated |
&& __result == 0| TRUE | never evaluated | | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (| TRUE | never evaluated | | FALSE | evaluated 4 times by 1 test |
| 0-4 |
| 943 | fstype| TRUE | never evaluated | | FALSE | evaluated 4 times by 1 test |
| 0-4 |
| 944 | ))[1] - __s2[1]); if (__s1_len > 1| TRUE | never evaluated | | FALSE | never evaluated |
&& __result == 0| TRUE | never evaluated | | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (| TRUE | never evaluated | | FALSE | evaluated 4 times by 1 test |
| 0-4 |
| 945 | fstype| TRUE | never evaluated | | FALSE | evaluated 4 times by 1 test |
| 0-4 |
| 946 | ))[2] - __s2[2]); if (__s1_len > 2| TRUE | never evaluated | | FALSE | never evaluated |
&& __result == 0| TRUE | never evaluated | | FALSE | never evaluated |
) __result = (((const unsigned char *) (const char *) (never executed: __result = (((const unsigned char *) (const char *) ( fstype ))[3] - __s2[3]); | TRUE | never evaluated | | FALSE | evaluated 4 times by 1 test |
| 0-4 |
| 947 | fstype| TRUE | never evaluated | | FALSE | evaluated 4 times by 1 test |
never executed: __result = (((const unsigned char *) (const char *) ( fstype ))[3] - __s2[3]); | 0-4 |
| 948 | ))[3] - __s2[3]);| TRUE | never evaluated | | FALSE | evaluated 4 times by 1 test |
never executed: __result = (((const unsigned char *) (const char *) ( fstype ))[3] - __s2[3]); }never executed: end of block }never executed: end of block __result; }))) : (__builtin_constant_p (| TRUE | never evaluated | | FALSE | evaluated 4 times by 1 test |
| 0-4 |
| 949 | fsp->fs_name| TRUE | never evaluated | | FALSE | evaluated 4 times by 1 test |
| 0-4 |
| 950 | ) && ((size_t)(const void *)((| TRUE | never evaluated | | FALSE | evaluated 4 times by 1 test |
| 0-4 |
| 951 | fsp->fs_name| TRUE | never evaluated | | FALSE | evaluated 4 times by 1 test |
| 0-4 |
| 952 | ) + 1) - (size_t)(const void *)(| TRUE | never evaluated | | FALSE | evaluated 4 times by 1 test |
| 0-4 |
| 953 | fsp->fs_name| TRUE | never evaluated | | FALSE | evaluated 4 times by 1 test |
| 0-4 |
| 954 | ) == 1) && (__s2_len = __builtin_strlen (| TRUE | never evaluated | | FALSE | evaluated 4 times by 1 test |
| 0-4 |
| 955 | fsp->fs_name| TRUE | never evaluated | | FALSE | evaluated 4 times by 1 test |
| 0-4 |
| 956 | ), __s2_len < 4) ? (__builtin_constant_p (| TRUE | never evaluated | | FALSE | evaluated 4 times by 1 test |
| 0-4 |
| 957 | fstype| TRUE | never evaluated | | FALSE | evaluated 4 times by 1 test |
| 0-4 |
| 958 | ) && ((size_t)(const void *)((| TRUE | never evaluated | | FALSE | evaluated 4 times by 1 test |
| 0-4 |
| 959 | fstype| TRUE | never evaluated | | FALSE | evaluated 4 times by 1 test |
| 0-4 |
| 960 | ) + 1) - (size_t)(const void *)(| TRUE | never evaluated | | FALSE | evaluated 4 times by 1 test |
| 0-4 |
| 961 | fstype| TRUE | never evaluated | | FALSE | evaluated 4 times by 1 test |
| 0-4 |
| 962 | ) == 1) ? __builtin_strcmp (| TRUE | never evaluated | | FALSE | evaluated 4 times by 1 test |
| 0-4 |
| 963 | fstype| TRUE | never evaluated | | FALSE | evaluated 4 times by 1 test |
| 0-4 |
| 964 | , | TRUE | never evaluated | | FALSE | evaluated 4 times by 1 test |
| 0-4 |
| 965 | fsp->fs_name| TRUE | never evaluated | | FALSE | evaluated 4 times by 1 test |
| 0-4 |
| 966 | ) : -(__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (| TRUE | never evaluated | | FALSE | evaluated 4 times by 1 test |
| 0-4 |
| 967 | fstype| TRUE | never evaluated | | FALSE | evaluated 4 times by 1 test |
| 0-4 |
| 968 | ); int __result = (((const unsigned char *) (const char *) (| TRUE | never evaluated | | FALSE | evaluated 4 times by 1 test |
| 0-4 |
| 969 | fsp->fs_name| TRUE | never evaluated | | FALSE | evaluated 4 times by 1 test |
| 0-4 |
| 970 | ))[0] - __s2[0]); if (__s2_len > 0| TRUE | never evaluated | | FALSE | never evaluated |
&& __result == 0| TRUE | never evaluated | | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (| TRUE | never evaluated | | FALSE | evaluated 4 times by 1 test |
| 0-4 |
| 971 | fsp->fs_name| TRUE | never evaluated | | FALSE | evaluated 4 times by 1 test |
| 0-4 |
| 972 | ))[1] - __s2[1]); if (__s2_len > 1| TRUE | never evaluated | | FALSE | never evaluated |
&& __result == 0| TRUE | never evaluated | | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (| TRUE | never evaluated | | FALSE | evaluated 4 times by 1 test |
| 0-4 |
| 973 | fsp->fs_name| TRUE | never evaluated | | FALSE | evaluated 4 times by 1 test |
| 0-4 |
| 974 | ))[2] - __s2[2]); if (__s2_len > 2| TRUE | never evaluated | | FALSE | never evaluated |
&& __result == 0| TRUE | never evaluated | | FALSE | never evaluated |
) __result = (((const unsigned char *) (const char *) (never executed: __result = (((const unsigned char *) (const char *) ( fsp->fs_name ))[3] - __s2[3]); | TRUE | never evaluated | | FALSE | evaluated 4 times by 1 test |
| 0-4 |
| 975 | fsp->fs_name| TRUE | never evaluated | | FALSE | evaluated 4 times by 1 test |
never executed: __result = (((const unsigned char *) (const char *) ( fsp->fs_name ))[3] - __s2[3]); | 0-4 |
| 976 | ))[3] - __s2[3]);| TRUE | never evaluated | | FALSE | evaluated 4 times by 1 test |
never executed: __result = (((const unsigned char *) (const char *) ( fsp->fs_name ))[3] - __s2[3]); }never executed: end of block }never executed: end of block __result; }))) : __builtin_strcmp (| TRUE | never evaluated | | FALSE | evaluated 4 times by 1 test |
| 0-4 |
| 977 | fstype| TRUE | never evaluated | | FALSE | evaluated 4 times by 1 test |
| 0-4 |
| 978 | , | TRUE | never evaluated | | FALSE | evaluated 4 times by 1 test |
| 0-4 |
| 979 | fsp->fs_name| TRUE | never evaluated | | FALSE | evaluated 4 times by 1 test |
| 0-4 |
| 980 | )))); }) | TRUE | never evaluated | | FALSE | evaluated 4 times by 1 test |
| 0-4 |
| 981 | == 0)| TRUE | never evaluated | | FALSE | evaluated 4 times by 1 test |
) | 0-4 |
| 982 | return never executed: return 1 ; never executed: return 1 ; | 0 |
| 983 | 1 never executed: return 1 ; | 0 |
| 984 | ; never executed: return 1 ; | 0 |
| 985 | returnexecuted 3 times by 1 test: return 0 ; executed 3 times by 1 test: return 0 ; | 3 |
| 986 | 0executed 3 times by 1 test: return 0 ; | 3 |
| 987 | ;executed 3 times by 1 test: return 0 ; | 3 |
| 988 | } | - |
| 989 | | - |
| 990 | | - |
| 991 | | - |
| 992 | static | - |
| 993 | _Bool __attribute__ ((__pure__)) | - |
| 994 | | - |
| 995 | excluded_fstype (const char *fstype) | - |
| 996 | { | - |
| 997 | const struct fs_type_list *fsp; | - |
| 998 | | - |
| 999 | if (fs_exclude_list == | TRUE | evaluated 1025 times by 1 test | | FALSE | never evaluated |
| 0-1025 |
| 1000 | ((void *)0)| TRUE | evaluated 1025 times by 1 test | | FALSE | never evaluated |
| 0-1025 |
| 1001 | || fstype == | TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 1002 | ((void *)0)| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 1003 | ) | - |
| 1004 | returnexecuted 1025 times by 1 test: return 0 ; executed 1025 times by 1 test: return 0 ; | 1025 |
| 1005 | 0executed 1025 times by 1 test: return 0 ; | 1025 |
| 1006 | ;executed 1025 times by 1 test: return 0 ; | 1025 |
| 1007 | for (fsp = fs_exclude_list; fsp| TRUE | never evaluated | | FALSE | never evaluated |
; fsp = fsp->fs_next) | 0 |
| 1008 | if ((| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 1009 | __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 1010 | fstype| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 1011 | ) && __builtin_constant_p (| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 1012 | fsp->fs_name| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 1013 | ) && (__s1_len = __builtin_strlen (| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 1014 | fstype| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 1015 | ), __s2_len = __builtin_strlen (| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 1016 | fsp->fs_name| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 1017 | ), (!((size_t)(const void *)((| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 1018 | fstype| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 1019 | ) + 1) - (size_t)(const void *)(| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 1020 | fstype| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 1021 | ) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 1022 | fsp->fs_name| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 1023 | ) + 1) - (size_t)(const void *)(| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 1024 | fsp->fs_name| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 1025 | ) == 1) || __s2_len >= 4)) ? __builtin_strcmp (| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 1026 | fstype| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 1027 | , | TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 1028 | fsp->fs_name| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 1029 | ) : (__builtin_constant_p (| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 1030 | fstype| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 1031 | ) && ((size_t)(const void *)((| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 1032 | fstype| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 1033 | ) + 1) - (size_t)(const void *)(| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 1034 | fstype| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 1035 | ) == 1) && (__s1_len = __builtin_strlen (| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 1036 | fstype| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 1037 | ), __s1_len < 4) ? (__builtin_constant_p (| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 1038 | fsp->fs_name| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 1039 | ) && ((size_t)(const void *)((| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 1040 | fsp->fs_name| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 1041 | ) + 1) - (size_t)(const void *)(| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 1042 | fsp->fs_name| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 1043 | ) == 1) ? __builtin_strcmp (| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 1044 | fstype| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 1045 | , | TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 1046 | fsp->fs_name| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 1047 | ) : (__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 1048 | fsp->fs_name| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 1049 | ); int __result = (((const unsigned char *) (const char *) (| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 1050 | fstype| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 1051 | ))[0] - __s2[0]); if (__s1_len > 0| TRUE | never evaluated | | FALSE | never evaluated |
&& __result == 0| TRUE | never evaluated | | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 1052 | fstype| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 1053 | ))[1] - __s2[1]); if (__s1_len > 1| TRUE | never evaluated | | FALSE | never evaluated |
&& __result == 0| TRUE | never evaluated | | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 1054 | fstype| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 1055 | ))[2] - __s2[2]); if (__s1_len > 2| TRUE | never evaluated | | FALSE | never evaluated |
&& __result == 0| TRUE | never evaluated | | FALSE | never evaluated |
) __result = (((const unsigned char *) (const char *) (never executed: __result = (((const unsigned char *) (const char *) ( fstype ))[3] - __s2[3]); | 0 |
| 1056 | fstype| TRUE | never evaluated | | FALSE | never evaluated |
never executed: __result = (((const unsigned char *) (const char *) ( fstype ))[3] - __s2[3]); | 0 |
| 1057 | ))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p (| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 1058 | fsp->fs_name| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 1059 | ) && ((size_t)(const void *)((| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 1060 | fsp->fs_name| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 1061 | ) + 1) - (size_t)(const void *)(| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 1062 | fsp->fs_name| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 1063 | ) == 1) && (__s2_len = __builtin_strlen (| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 1064 | fsp->fs_name| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 1065 | ), __s2_len < 4) ? (__builtin_constant_p (| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 1066 | fstype| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 1067 | ) && ((size_t)(const void *)((| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 1068 | fstype| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 1069 | ) + 1) - (size_t)(const void *)(| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 1070 | fstype| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 1071 | ) == 1) ? __builtin_strcmp (| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 1072 | fstype| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 1073 | , | TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 1074 | fsp->fs_name| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 1075 | ) : -(__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 1076 | fstype| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 1077 | ); int __result = (((const unsigned char *) (const char *) (| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 1078 | fsp->fs_name| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 1079 | ))[0] - __s2[0]); if (__s2_len > 0| TRUE | never evaluated | | FALSE | never evaluated |
&& __result == 0| TRUE | never evaluated | | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 1080 | fsp->fs_name| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 1081 | ))[1] - __s2[1]); if (__s2_len > 1| TRUE | never evaluated | | FALSE | never evaluated |
&& __result == 0| TRUE | never evaluated | | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 1082 | fsp->fs_name| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 1083 | ))[2] - __s2[2]); if (__s2_len > 2| TRUE | never evaluated | | FALSE | never evaluated |
&& __result == 0| TRUE | never evaluated | | FALSE | never evaluated |
) __result = (((const unsigned char *) (const char *) (never executed: __result = (((const unsigned char *) (const char *) ( fsp->fs_name ))[3] - __s2[3]); | 0 |
| 1084 | fsp->fs_name| TRUE | never evaluated | | FALSE | never evaluated |
never executed: __result = (((const unsigned char *) (const char *) ( fsp->fs_name ))[3] - __s2[3]); | 0 |
| 1085 | ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp (| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 1086 | fstype| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 1087 | , | TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 1088 | fsp->fs_name| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 1089 | )))); }) | TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 1090 | == 0)| TRUE | never evaluated | | FALSE | never evaluated |
) | 0 |
| 1091 | return never executed: return 1 ; never executed: return 1 ; | 0 |
| 1092 | 1 never executed: return 1 ; | 0 |
| 1093 | ; never executed: return 1 ; | 0 |
| 1094 | return never executed: return 0 ; never executed: return 0 ; | 0 |
| 1095 | 0 never executed: return 0 ; | 0 |
| 1096 | ; never executed: return 0 ; | 0 |
| 1097 | } | - |
| 1098 | | - |
| 1099 | static size_t | - |
| 1100 | devlist_hash (void const *x, size_t table_size) | - |
| 1101 | { | - |
| 1102 | struct devlist const *p = x; | - |
| 1103 | returnexecuted 1127 times by 1 test: return (uintmax_t) p->dev_num % table_size; (uintmax_t) p->dev_num % table_size;executed 1127 times by 1 test: return (uintmax_t) p->dev_num % table_size; | 1127 |
| 1104 | } | - |
| 1105 | | - |
| 1106 | static | - |
| 1107 | _Bool | - |
| 1108 | | - |
| 1109 | devlist_compare (void const *x, void const *y) | - |
| 1110 | { | - |
| 1111 | struct devlist const *a = x; | - |
| 1112 | struct devlist const *b = y; | - |
| 1113 | returnexecuted 87 times by 1 test: return a->dev_num == b->dev_num; a->dev_num == b->dev_num;executed 87 times by 1 test: return a->dev_num == b->dev_num; | 87 |
| 1114 | } | - |
| 1115 | | - |
| 1116 | static struct devlist * | - |
| 1117 | devlist_for_dev (dev_t dev) | - |
| 1118 | { | - |
| 1119 | if (devlist_table == | TRUE | never evaluated | | FALSE | evaluated 525 times by 1 test |
| 0-525 |
| 1120 | ((void *)0)| TRUE | never evaluated | | FALSE | evaluated 525 times by 1 test |
| 0-525 |
| 1121 | ) | - |
| 1122 | return never executed: return ((void *)0) ; never executed: return ((void *)0) ; | 0 |
| 1123 | ((void *)0) never executed: return ((void *)0) ; | 0 |
| 1124 | ; never executed: return ((void *)0) ; | 0 |
| 1125 | struct devlist dev_entry; | - |
| 1126 | dev_entry.dev_num = dev; | - |
| 1127 | returnexecuted 525 times by 1 test: return hash_lookup (devlist_table, &dev_entry); hash_lookup (devlist_table, &dev_entry);executed 525 times by 1 test: return hash_lookup (devlist_table, &dev_entry); | 525 |
| 1128 | } | - |
| 1129 | | - |
| 1130 | static void | - |
| 1131 | devlist_free (void *p) | - |
| 1132 | { | - |
| 1133 | free (p); | - |
| 1134 | }executed 567 times by 1 test: end of block | 567 |
| 1135 | static void | - |
| 1136 | filter_mount_list ( | - |
| 1137 | _Bool | - |
| 1138 | devices_only) | - |
| 1139 | { | - |
| 1140 | struct mount_entry *me; | - |
| 1141 | | - |
| 1142 | | - |
| 1143 | struct devlist *device_list = | - |
| 1144 | ((void *)0) | - |
| 1145 | ; | - |
| 1146 | int mount_list_size = 0; | - |
| 1147 | | - |
| 1148 | for (me = mount_list; me| TRUE | evaluated 623 times by 1 test | | FALSE | evaluated 27 times by 1 test |
; me = me->me_next) | 27-623 |
| 1149 | mount_list_size++;executed 623 times by 1 test: mount_list_size++; | 623 |
| 1150 | | - |
| 1151 | devlist_table = hash_initialize (mount_list_size, | - |
| 1152 | ((void *)0) | - |
| 1153 | , | - |
| 1154 | devlist_hash, | - |
| 1155 | devlist_compare, | - |
| 1156 | devlist_free); | - |
| 1157 | if (devlist_table == | TRUE | never evaluated | | FALSE | evaluated 27 times by 1 test |
| 0-27 |
| 1158 | ((void *)0)| TRUE | never evaluated | | FALSE | evaluated 27 times by 1 test |
| 0-27 |
| 1159 | ) | - |
| 1160 | xalloc_die (); never executed: xalloc_die (); | 0 |
| 1161 | | - |
| 1162 | | - |
| 1163 | for (me = mount_list; me| TRUE | evaluated 623 times by 1 test | | FALSE | evaluated 27 times by 1 test |
;) | 27-623 |
| 1164 | { | - |
| 1165 | struct stat buf; | - |
| 1166 | struct mount_entry *discard_me = | - |
| 1167 | ((void *)0) | - |
| 1168 | ; | - |
| 1169 | | - |
| 1170 | | - |
| 1171 | | - |
| 1172 | | - |
| 1173 | if ((me->me_remote| TRUE | evaluated 15 times by 1 test | | FALSE | evaluated 608 times by 1 test |
&& show_local_fs| TRUE | never evaluated | | FALSE | evaluated 15 times by 1 test |
) | 0-608 |
| 1174 | || (me->me_dummy| TRUE | evaluated 132 times by 1 test | | FALSE | evaluated 491 times by 1 test |
&& !show_all_fs| TRUE | evaluated 126 times by 1 test | | FALSE | evaluated 6 times by 1 test |
&& !show_listed_fs| TRUE | evaluated 126 times by 1 test | | FALSE | never evaluated |
) | 0-491 |
| 1175 | || (!selected_fstype (me->me_type)| TRUE | never evaluated | | FALSE | evaluated 497 times by 1 test |
|| excluded_fstype (me->me_type)| TRUE | never evaluated | | FALSE | evaluated 497 times by 1 test |
) | 0-497 |
| 1176 | || -| TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 491 times by 1 test |
1 == stat (me->me_mountdir, &buf)| TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 491 times by 1 test |
) | 6-491 |
| 1177 | { | - |
| 1178 | | - |
| 1179 | | - |
| 1180 | | - |
| 1181 | buf.st_dev = me->me_dev; | - |
| 1182 | }executed 132 times by 1 test: end of block | 132 |
| 1183 | else | - |
| 1184 | { | - |
| 1185 | | - |
| 1186 | struct devlist *seen_dev = devlist_for_dev (buf.st_dev); | - |
| 1187 | | - |
| 1188 | if (seen_dev| TRUE | evaluated 25 times by 1 test | | FALSE | evaluated 466 times by 1 test |
) | 25-466 |
| 1189 | { | - |
| 1190 | | - |
| 1191 | _Bool | - |
| 1192 | target_nearer_root = strlen (seen_dev->me->me_mountdir) | - |
| 1193 | > strlen (me->me_mountdir); | - |
| 1194 | | - |
| 1195 | | - |
| 1196 | _Bool | - |
| 1197 | source_below_root = seen_dev->me->me_mntroot != | TRUE | never evaluated | | FALSE | evaluated 25 times by 1 test |
| 0-25 |
| 1198 | ((void *)0)| TRUE | never evaluated | | FALSE | evaluated 25 times by 1 test |
| 0-25 |
| 1199 | | - |
| 1200 | && me->me_mntroot != | TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 1201 | ((void *)0)| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 1202 | | - |
| 1203 | && (| TRUE | never evaluated | | FALSE | never evaluated |
strlen (seen_dev->me->me_mntroot)| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 1204 | < strlen (me->me_mntroot))| TRUE | never evaluated | | FALSE | never evaluated |
; | 0 |
| 1205 | if (! print_grand_total| TRUE | evaluated 20 times by 1 test | | FALSE | evaluated 5 times by 1 test |
| 5-20 |
| 1206 | && me->me_remote| TRUE | evaluated 8 times by 1 test | | FALSE | evaluated 12 times by 1 test |
&& seen_dev->me->me_remote| TRUE | evaluated 8 times by 1 test | | FALSE | never evaluated |
| 0-12 |
| 1207 | && ! (| TRUE | evaluated 4 times by 1 test | | FALSE | evaluated 4 times by 1 test |
| 4 |
| 1208 | __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (| TRUE | evaluated 4 times by 1 test | | FALSE | evaluated 4 times by 1 test |
| 4 |
| 1209 | seen_dev->me->me_devname| TRUE | evaluated 4 times by 1 test | | FALSE | evaluated 4 times by 1 test |
| 4 |
| 1210 | ) && __builtin_constant_p (| TRUE | evaluated 4 times by 1 test | | FALSE | evaluated 4 times by 1 test |
| 4 |
| 1211 | me->me_devname| TRUE | evaluated 4 times by 1 test | | FALSE | evaluated 4 times by 1 test |
| 4 |
| 1212 | ) && (__s1_len = __builtin_strlen (| TRUE | evaluated 4 times by 1 test | | FALSE | evaluated 4 times by 1 test |
| 4 |
| 1213 | seen_dev->me->me_devname| TRUE | evaluated 4 times by 1 test | | FALSE | evaluated 4 times by 1 test |
| 4 |
| 1214 | ), __s2_len = __builtin_strlen (| TRUE | evaluated 4 times by 1 test | | FALSE | evaluated 4 times by 1 test |
| 4 |
| 1215 | me->me_devname| TRUE | evaluated 4 times by 1 test | | FALSE | evaluated 4 times by 1 test |
| 4 |
| 1216 | ), (!((size_t)(const void *)((| TRUE | evaluated 4 times by 1 test | | FALSE | evaluated 4 times by 1 test |
| 4 |
| 1217 | seen_dev->me->me_devname| TRUE | evaluated 4 times by 1 test | | FALSE | evaluated 4 times by 1 test |
| 4 |
| 1218 | ) + 1) - (size_t)(const void *)(| TRUE | evaluated 4 times by 1 test | | FALSE | evaluated 4 times by 1 test |
| 4 |
| 1219 | seen_dev->me->me_devname| TRUE | evaluated 4 times by 1 test | | FALSE | evaluated 4 times by 1 test |
| 4 |
| 1220 | ) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((| TRUE | evaluated 4 times by 1 test | | FALSE | evaluated 4 times by 1 test |
| 4 |
| 1221 | me->me_devname| TRUE | evaluated 4 times by 1 test | | FALSE | evaluated 4 times by 1 test |
| 4 |
| 1222 | ) + 1) - (size_t)(const void *)(| TRUE | evaluated 4 times by 1 test | | FALSE | evaluated 4 times by 1 test |
| 4 |
| 1223 | me->me_devname| TRUE | evaluated 4 times by 1 test | | FALSE | evaluated 4 times by 1 test |
| 4 |
| 1224 | ) == 1) || __s2_len >= 4)) ? __builtin_strcmp (| TRUE | evaluated 4 times by 1 test | | FALSE | evaluated 4 times by 1 test |
| 4 |
| 1225 | seen_dev->me->me_devname| TRUE | evaluated 4 times by 1 test | | FALSE | evaluated 4 times by 1 test |
| 4 |
| 1226 | , | TRUE | evaluated 4 times by 1 test | | FALSE | evaluated 4 times by 1 test |
| 4 |
| 1227 | me->me_devname| TRUE | evaluated 4 times by 1 test | | FALSE | evaluated 4 times by 1 test |
| 4 |
| 1228 | ) : (__builtin_constant_p (| TRUE | evaluated 4 times by 1 test | | FALSE | evaluated 4 times by 1 test |
| 4 |
| 1229 | seen_dev->me->me_devname| TRUE | evaluated 4 times by 1 test | | FALSE | evaluated 4 times by 1 test |
| 4 |
| 1230 | ) && ((size_t)(const void *)((| TRUE | evaluated 4 times by 1 test | | FALSE | evaluated 4 times by 1 test |
| 4 |
| 1231 | seen_dev->me->me_devname| TRUE | evaluated 4 times by 1 test | | FALSE | evaluated 4 times by 1 test |
| 4 |
| 1232 | ) + 1) - (size_t)(const void *)(| TRUE | evaluated 4 times by 1 test | | FALSE | evaluated 4 times by 1 test |
| 4 |
| 1233 | seen_dev->me->me_devname| TRUE | evaluated 4 times by 1 test | | FALSE | evaluated 4 times by 1 test |
| 4 |
| 1234 | ) == 1) && (__s1_len = __builtin_strlen (| TRUE | evaluated 4 times by 1 test | | FALSE | evaluated 4 times by 1 test |
| 4 |
| 1235 | seen_dev->me->me_devname| TRUE | evaluated 4 times by 1 test | | FALSE | evaluated 4 times by 1 test |
| 4 |
| 1236 | ), __s1_len < 4) ? (__builtin_constant_p (| TRUE | evaluated 4 times by 1 test | | FALSE | evaluated 4 times by 1 test |
| 4 |
| 1237 | me->me_devname| TRUE | evaluated 4 times by 1 test | | FALSE | evaluated 4 times by 1 test |
| 4 |
| 1238 | ) && ((size_t)(const void *)((| TRUE | evaluated 4 times by 1 test | | FALSE | evaluated 4 times by 1 test |
| 4 |
| 1239 | me->me_devname| TRUE | evaluated 4 times by 1 test | | FALSE | evaluated 4 times by 1 test |
| 4 |
| 1240 | ) + 1) - (size_t)(const void *)(| TRUE | evaluated 4 times by 1 test | | FALSE | evaluated 4 times by 1 test |
| 4 |
| 1241 | me->me_devname| TRUE | evaluated 4 times by 1 test | | FALSE | evaluated 4 times by 1 test |
| 4 |
| 1242 | ) == 1) ? __builtin_strcmp (| TRUE | evaluated 4 times by 1 test | | FALSE | evaluated 4 times by 1 test |
| 4 |
| 1243 | seen_dev->me->me_devname| TRUE | evaluated 4 times by 1 test | | FALSE | evaluated 4 times by 1 test |
| 4 |
| 1244 | , | TRUE | evaluated 4 times by 1 test | | FALSE | evaluated 4 times by 1 test |
| 4 |
| 1245 | me->me_devname| TRUE | evaluated 4 times by 1 test | | FALSE | evaluated 4 times by 1 test |
| 4 |
| 1246 | ) : (__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (| TRUE | evaluated 4 times by 1 test | | FALSE | evaluated 4 times by 1 test |
| 4 |
| 1247 | me->me_devname| TRUE | evaluated 4 times by 1 test | | FALSE | evaluated 4 times by 1 test |
| 4 |
| 1248 | ); int __result = (((const unsigned char *) (const char *) (| TRUE | evaluated 4 times by 1 test | | FALSE | evaluated 4 times by 1 test |
| 4 |
| 1249 | seen_dev->me->me_devname| TRUE | evaluated 4 times by 1 test | | FALSE | evaluated 4 times by 1 test |
| 4 |
| 1250 | ))[0] - __s2[0]); if (__s1_len > 0| TRUE | never evaluated | | FALSE | never evaluated |
&& __result == 0| TRUE | never evaluated | | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (| TRUE | evaluated 4 times by 1 test | | FALSE | evaluated 4 times by 1 test |
| 0-4 |
| 1251 | seen_dev->me->me_devname| TRUE | evaluated 4 times by 1 test | | FALSE | evaluated 4 times by 1 test |
| 4 |
| 1252 | ))[1] - __s2[1]); if (__s1_len > 1| TRUE | never evaluated | | FALSE | never evaluated |
&& __result == 0| TRUE | never evaluated | | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (| TRUE | evaluated 4 times by 1 test | | FALSE | evaluated 4 times by 1 test |
| 0-4 |
| 1253 | seen_dev->me->me_devname| TRUE | evaluated 4 times by 1 test | | FALSE | evaluated 4 times by 1 test |
| 4 |
| 1254 | ))[2] - __s2[2]); if (__s1_len > 2| TRUE | never evaluated | | FALSE | never evaluated |
&& __result == 0| TRUE | never evaluated | | FALSE | never evaluated |
) __result = (((const unsigned char *) (const char *) (never executed: __result = (((const unsigned char *) (const char *) ( seen_dev->me->me_devname ))[3] - __s2[3]); | TRUE | evaluated 4 times by 1 test | | FALSE | evaluated 4 times by 1 test |
| 0-4 |
| 1255 | seen_dev->me->me_devname| TRUE | evaluated 4 times by 1 test | | FALSE | evaluated 4 times by 1 test |
never executed: __result = (((const unsigned char *) (const char *) ( seen_dev->me->me_devname ))[3] - __s2[3]); | 0-4 |
| 1256 | ))[3] - __s2[3]);| TRUE | evaluated 4 times by 1 test | | FALSE | evaluated 4 times by 1 test |
never executed: __result = (((const unsigned char *) (const char *) ( seen_dev->me->me_devname ))[3] - __s2[3]); }never executed: end of block }never executed: end of block __result; }))) : (__builtin_constant_p (| TRUE | evaluated 4 times by 1 test | | FALSE | evaluated 4 times by 1 test |
| 0-4 |
| 1257 | me->me_devname| TRUE | evaluated 4 times by 1 test | | FALSE | evaluated 4 times by 1 test |
| 4 |
| 1258 | ) && ((size_t)(const void *)((| TRUE | evaluated 4 times by 1 test | | FALSE | evaluated 4 times by 1 test |
| 4 |
| 1259 | me->me_devname| TRUE | evaluated 4 times by 1 test | | FALSE | evaluated 4 times by 1 test |
| 4 |
| 1260 | ) + 1) - (size_t)(const void *)(| TRUE | evaluated 4 times by 1 test | | FALSE | evaluated 4 times by 1 test |
| 4 |
| 1261 | me->me_devname| TRUE | evaluated 4 times by 1 test | | FALSE | evaluated 4 times by 1 test |
| 4 |
| 1262 | ) == 1) && (__s2_len = __builtin_strlen (| TRUE | evaluated 4 times by 1 test | | FALSE | evaluated 4 times by 1 test |
| 4 |
| 1263 | me->me_devname| TRUE | evaluated 4 times by 1 test | | FALSE | evaluated 4 times by 1 test |
| 4 |
| 1264 | ), __s2_len < 4) ? (__builtin_constant_p (| TRUE | evaluated 4 times by 1 test | | FALSE | evaluated 4 times by 1 test |
| 4 |
| 1265 | seen_dev->me->me_devname| TRUE | evaluated 4 times by 1 test | | FALSE | evaluated 4 times by 1 test |
| 4 |
| 1266 | ) && ((size_t)(const void *)((| TRUE | evaluated 4 times by 1 test | | FALSE | evaluated 4 times by 1 test |
| 4 |
| 1267 | seen_dev->me->me_devname| TRUE | evaluated 4 times by 1 test | | FALSE | evaluated 4 times by 1 test |
| 4 |
| 1268 | ) + 1) - (size_t)(const void *)(| TRUE | evaluated 4 times by 1 test | | FALSE | evaluated 4 times by 1 test |
| 4 |
| 1269 | seen_dev->me->me_devname| TRUE | evaluated 4 times by 1 test | | FALSE | evaluated 4 times by 1 test |
| 4 |
| 1270 | ) == 1) ? __builtin_strcmp (| TRUE | evaluated 4 times by 1 test | | FALSE | evaluated 4 times by 1 test |
| 4 |
| 1271 | seen_dev->me->me_devname| TRUE | evaluated 4 times by 1 test | | FALSE | evaluated 4 times by 1 test |
| 4 |
| 1272 | , | TRUE | evaluated 4 times by 1 test | | FALSE | evaluated 4 times by 1 test |
| 4 |
| 1273 | me->me_devname| TRUE | evaluated 4 times by 1 test | | FALSE | evaluated 4 times by 1 test |
| 4 |
| 1274 | ) : -(__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (| TRUE | evaluated 4 times by 1 test | | FALSE | evaluated 4 times by 1 test |
| 4 |
| 1275 | seen_dev->me->me_devname| TRUE | evaluated 4 times by 1 test | | FALSE | evaluated 4 times by 1 test |
| 4 |
| 1276 | ); int __result = (((const unsigned char *) (const char *) (| TRUE | evaluated 4 times by 1 test | | FALSE | evaluated 4 times by 1 test |
| 4 |
| 1277 | me->me_devname| TRUE | evaluated 4 times by 1 test | | FALSE | evaluated 4 times by 1 test |
| 4 |
| 1278 | ))[0] - __s2[0]); if (__s2_len > 0| TRUE | never evaluated | | FALSE | never evaluated |
&& __result == 0| TRUE | never evaluated | | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (| TRUE | evaluated 4 times by 1 test | | FALSE | evaluated 4 times by 1 test |
| 0-4 |
| 1279 | me->me_devname| TRUE | evaluated 4 times by 1 test | | FALSE | evaluated 4 times by 1 test |
| 4 |
| 1280 | ))[1] - __s2[1]); if (__s2_len > 1| TRUE | never evaluated | | FALSE | never evaluated |
&& __result == 0| TRUE | never evaluated | | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (| TRUE | evaluated 4 times by 1 test | | FALSE | evaluated 4 times by 1 test |
| 0-4 |
| 1281 | me->me_devname| TRUE | evaluated 4 times by 1 test | | FALSE | evaluated 4 times by 1 test |
| 4 |
| 1282 | ))[2] - __s2[2]); if (__s2_len > 2| TRUE | never evaluated | | FALSE | never evaluated |
&& __result == 0| TRUE | never evaluated | | FALSE | never evaluated |
) __result = (((const unsigned char *) (const char *) (never executed: __result = (((const unsigned char *) (const char *) ( me->me_devname ))[3] - __s2[3]); | TRUE | evaluated 4 times by 1 test | | FALSE | evaluated 4 times by 1 test |
| 0-4 |
| 1283 | me->me_devname| TRUE | evaluated 4 times by 1 test | | FALSE | evaluated 4 times by 1 test |
never executed: __result = (((const unsigned char *) (const char *) ( me->me_devname ))[3] - __s2[3]); | 0-4 |
| 1284 | ))[3] - __s2[3]);| TRUE | evaluated 4 times by 1 test | | FALSE | evaluated 4 times by 1 test |
never executed: __result = (((const unsigned char *) (const char *) ( me->me_devname ))[3] - __s2[3]); }never executed: end of block }never executed: end of block __result; }))) : __builtin_strcmp (| TRUE | evaluated 4 times by 1 test | | FALSE | evaluated 4 times by 1 test |
| 0-4 |
| 1285 | seen_dev->me->me_devname| TRUE | evaluated 4 times by 1 test | | FALSE | evaluated 4 times by 1 test |
| 4 |
| 1286 | , | TRUE | evaluated 4 times by 1 test | | FALSE | evaluated 4 times by 1 test |
| 4 |
| 1287 | me->me_devname| TRUE | evaluated 4 times by 1 test | | FALSE | evaluated 4 times by 1 test |
| 4 |
| 1288 | )))); }) | TRUE | evaluated 4 times by 1 test | | FALSE | evaluated 4 times by 1 test |
| 4 |
| 1289 | == 0)| TRUE | evaluated 4 times by 1 test | | FALSE | evaluated 4 times by 1 test |
) | 4 |
| 1290 | { | - |
| 1291 | | - |
| 1292 | | - |
| 1293 | | - |
| 1294 | | - |
| 1295 | }executed 4 times by 1 test: end of block | 4 |
| 1296 | else if (( | - |
| 1297 | (| TRUE | evaluated 10 times by 1 test | | FALSE | evaluated 11 times by 1 test |
__extension__ (__builtin_constant_p (| TRUE | evaluated 21 times by 1 test | | FALSE | never evaluated |
| TRUE | evaluated 10 times by 1 test | | FALSE | evaluated 11 times by 1 test |
| 0-21 |
| 1298 | '/'| TRUE | evaluated 21 times by 1 test | | FALSE | never evaluated |
| TRUE | evaluated 10 times by 1 test | | FALSE | evaluated 11 times by 1 test |
| 0-21 |
| 1299 | )| TRUE | evaluated 21 times by 1 test | | FALSE | never evaluated |
&& !__builtin_constant_p (| TRUE | evaluated 21 times by 1 test | | FALSE | never evaluated |
| TRUE | evaluated 10 times by 1 test | | FALSE | evaluated 11 times by 1 test |
| 0-21 |
| 1300 | me->me_devname| TRUE | evaluated 21 times by 1 test | | FALSE | never evaluated |
| TRUE | evaluated 10 times by 1 test | | FALSE | evaluated 11 times by 1 test |
| 0-21 |
| 1301 | )| TRUE | evaluated 21 times by 1 test | | FALSE | never evaluated |
&& (| TRUE | never evaluated | | FALSE | evaluated 21 times by 1 test |
| TRUE | evaluated 10 times by 1 test | | FALSE | evaluated 11 times by 1 test |
| 0-21 |
| 1302 | '/'| TRUE | never evaluated | | FALSE | evaluated 21 times by 1 test |
| TRUE | evaluated 10 times by 1 test | | FALSE | evaluated 11 times by 1 test |
| 0-21 |
| 1303 | ) == '\0'| TRUE | never evaluated | | FALSE | evaluated 21 times by 1 test |
? (char *) __rawmemchr (| TRUE | evaluated 10 times by 1 test | | FALSE | evaluated 11 times by 1 test |
| 0-21 |
| 1304 | me->me_devname| TRUE | evaluated 10 times by 1 test | | FALSE | evaluated 11 times by 1 test |
| 10-11 |
| 1305 | , | TRUE | evaluated 10 times by 1 test | | FALSE | evaluated 11 times by 1 test |
| 10-11 |
| 1306 | '/'| TRUE | evaluated 10 times by 1 test | | FALSE | evaluated 11 times by 1 test |
| 10-11 |
| 1307 | ) : __builtin_strchr (| TRUE | evaluated 10 times by 1 test | | FALSE | evaluated 11 times by 1 test |
| 10-11 |
| 1308 | me->me_devname| TRUE | evaluated 10 times by 1 test | | FALSE | evaluated 11 times by 1 test |
| 10-11 |
| 1309 | , | TRUE | evaluated 10 times by 1 test | | FALSE | evaluated 11 times by 1 test |
| 10-11 |
| 1310 | '/'| TRUE | evaluated 10 times by 1 test | | FALSE | evaluated 11 times by 1 test |
| 10-11 |
| 1311 | )))| TRUE | evaluated 10 times by 1 test | | FALSE | evaluated 11 times by 1 test |
| 10-11 |
| 1312 | | - |
| 1313 | | - |
| 1314 | && ! | TRUE | evaluated 5 times by 1 test | | FALSE | evaluated 5 times by 1 test |
| 5 |
| 1315 | (__extension__ (__builtin_constant_p (| TRUE | evaluated 10 times by 1 test | | FALSE | never evaluated |
| TRUE | evaluated 5 times by 1 test | | FALSE | evaluated 5 times by 1 test |
| 0-10 |
| 1316 | '/'| TRUE | evaluated 10 times by 1 test | | FALSE | never evaluated |
| TRUE | evaluated 5 times by 1 test | | FALSE | evaluated 5 times by 1 test |
| 0-10 |
| 1317 | )| TRUE | evaluated 10 times by 1 test | | FALSE | never evaluated |
&& !__builtin_constant_p (| TRUE | evaluated 10 times by 1 test | | FALSE | never evaluated |
| TRUE | evaluated 5 times by 1 test | | FALSE | evaluated 5 times by 1 test |
| 0-10 |
| 1318 | seen_dev->me->me_devname| TRUE | evaluated 10 times by 1 test | | FALSE | never evaluated |
| TRUE | evaluated 5 times by 1 test | | FALSE | evaluated 5 times by 1 test |
| 0-10 |
| 1319 | )| TRUE | evaluated 10 times by 1 test | | FALSE | never evaluated |
&& (| TRUE | never evaluated | | FALSE | evaluated 10 times by 1 test |
| TRUE | evaluated 5 times by 1 test | | FALSE | evaluated 5 times by 1 test |
| 0-10 |
| 1320 | '/'| TRUE | never evaluated | | FALSE | evaluated 10 times by 1 test |
| TRUE | evaluated 5 times by 1 test | | FALSE | evaluated 5 times by 1 test |
| 0-10 |
| 1321 | ) == '\0'| TRUE | never evaluated | | FALSE | evaluated 10 times by 1 test |
? (char *) __rawmemchr (| TRUE | evaluated 5 times by 1 test | | FALSE | evaluated 5 times by 1 test |
| 0-10 |
| 1322 | seen_dev->me->me_devname| TRUE | evaluated 5 times by 1 test | | FALSE | evaluated 5 times by 1 test |
| 5 |
| 1323 | , | TRUE | evaluated 5 times by 1 test | | FALSE | evaluated 5 times by 1 test |
| 5 |
| 1324 | '/'| TRUE | evaluated 5 times by 1 test | | FALSE | evaluated 5 times by 1 test |
| 5 |
| 1325 | ) : __builtin_strchr (| TRUE | evaluated 5 times by 1 test | | FALSE | evaluated 5 times by 1 test |
| 5 |
| 1326 | seen_dev->me->me_devname| TRUE | evaluated 5 times by 1 test | | FALSE | evaluated 5 times by 1 test |
| 5 |
| 1327 | , | TRUE | evaluated 5 times by 1 test | | FALSE | evaluated 5 times by 1 test |
| 5 |
| 1328 | '/'| TRUE | evaluated 5 times by 1 test | | FALSE | evaluated 5 times by 1 test |
| 5 |
| 1329 | )))| TRUE | evaluated 5 times by 1 test | | FALSE | evaluated 5 times by 1 test |
| 5 |
| 1330 | ) | - |
| 1331 | | - |
| 1332 | || (target_nearer_root| TRUE | evaluated 5 times by 1 test | | FALSE | evaluated 11 times by 1 test |
&& ! source_below_root| TRUE | evaluated 5 times by 1 test | | FALSE | never evaluated |
) | 0-11 |
| 1333 | | - |
| 1334 | || (! (| TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 5 times by 1 test |
| 5-6 |
| 1335 | __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (| TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 5 times by 1 test |
| 5-6 |
| 1336 | seen_dev->me->me_devname| TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 5 times by 1 test |
| 5-6 |
| 1337 | ) && __builtin_constant_p (| TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 5 times by 1 test |
| 5-6 |
| 1338 | me->me_devname| TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 5 times by 1 test |
| 5-6 |
| 1339 | ) && (__s1_len = __builtin_strlen (| TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 5 times by 1 test |
| 5-6 |
| 1340 | seen_dev->me->me_devname| TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 5 times by 1 test |
| 5-6 |
| 1341 | ), __s2_len = __builtin_strlen (| TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 5 times by 1 test |
| 5-6 |
| 1342 | me->me_devname| TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 5 times by 1 test |
| 5-6 |
| 1343 | ), (!((size_t)(const void *)((| TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 5 times by 1 test |
| 5-6 |
| 1344 | seen_dev->me->me_devname| TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 5 times by 1 test |
| 5-6 |
| 1345 | ) + 1) - (size_t)(const void *)(| TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 5 times by 1 test |
| 5-6 |
| 1346 | seen_dev->me->me_devname| TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 5 times by 1 test |
| 5-6 |
| 1347 | ) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((| TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 5 times by 1 test |
| 5-6 |
| 1348 | me->me_devname| TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 5 times by 1 test |
| 5-6 |
| 1349 | ) + 1) - (size_t)(const void *)(| TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 5 times by 1 test |
| 5-6 |
| 1350 | me->me_devname| TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 5 times by 1 test |
| 5-6 |
| 1351 | ) == 1) || __s2_len >= 4)) ? __builtin_strcmp (| TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 5 times by 1 test |
| 5-6 |
| 1352 | seen_dev->me->me_devname| TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 5 times by 1 test |
| 5-6 |
| 1353 | , | TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 5 times by 1 test |
| 5-6 |
| 1354 | me->me_devname| TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 5 times by 1 test |
| 5-6 |
| 1355 | ) : (__builtin_constant_p (| TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 5 times by 1 test |
| 5-6 |
| 1356 | seen_dev->me->me_devname| TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 5 times by 1 test |
| 5-6 |
| 1357 | ) && ((size_t)(const void *)((| TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 5 times by 1 test |
| 5-6 |
| 1358 | seen_dev->me->me_devname| TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 5 times by 1 test |
| 5-6 |
| 1359 | ) + 1) - (size_t)(const void *)(| TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 5 times by 1 test |
| 5-6 |
| 1360 | seen_dev->me->me_devname| TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 5 times by 1 test |
| 5-6 |
| 1361 | ) == 1) && (__s1_len = __builtin_strlen (| TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 5 times by 1 test |
| 5-6 |
| 1362 | seen_dev->me->me_devname| TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 5 times by 1 test |
| 5-6 |
| 1363 | ), __s1_len < 4) ? (__builtin_constant_p (| TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 5 times by 1 test |
| 5-6 |
| 1364 | me->me_devname| TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 5 times by 1 test |
| 5-6 |
| 1365 | ) && ((size_t)(const void *)((| TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 5 times by 1 test |
| 5-6 |
| 1366 | me->me_devname| TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 5 times by 1 test |
| 5-6 |
| 1367 | ) + 1) - (size_t)(const void *)(| TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 5 times by 1 test |
| 5-6 |
| 1368 | me->me_devname| TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 5 times by 1 test |
| 5-6 |
| 1369 | ) == 1) ? __builtin_strcmp (| TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 5 times by 1 test |
| 5-6 |
| 1370 | seen_dev->me->me_devname| TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 5 times by 1 test |
| 5-6 |
| 1371 | , | TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 5 times by 1 test |
| 5-6 |
| 1372 | me->me_devname| TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 5 times by 1 test |
| 5-6 |
| 1373 | ) : (__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (| TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 5 times by 1 test |
| 5-6 |
| 1374 | me->me_devname| TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 5 times by 1 test |
| 5-6 |
| 1375 | ); int __result = (((const unsigned char *) (const char *) (| TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 5 times by 1 test |
| 5-6 |
| 1376 | seen_dev->me->me_devname| TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 5 times by 1 test |
| 5-6 |
| 1377 | ))[0] - __s2[0]); if (__s1_len > 0| TRUE | never evaluated | | FALSE | never evaluated |
&& __result == 0| TRUE | never evaluated | | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (| TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 5 times by 1 test |
| 0-6 |
| 1378 | seen_dev->me->me_devname| TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 5 times by 1 test |
| 5-6 |
| 1379 | ))[1] - __s2[1]); if (__s1_len > 1| TRUE | never evaluated | | FALSE | never evaluated |
&& __result == 0| TRUE | never evaluated | | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (| TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 5 times by 1 test |
| 0-6 |
| 1380 | seen_dev->me->me_devname| TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 5 times by 1 test |
| 5-6 |
| 1381 | ))[2] - __s2[2]); if (__s1_len > 2| TRUE | never evaluated | | FALSE | never evaluated |
&& __result == 0| TRUE | never evaluated | | FALSE | never evaluated |
) __result = (((const unsigned char *) (const char *) (never executed: __result = (((const unsigned char *) (const char *) ( seen_dev->me->me_devname ))[3] - __s2[3]); | TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 5 times by 1 test |
| 0-6 |
| 1382 | seen_dev->me->me_devname| TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 5 times by 1 test |
never executed: __result = (((const unsigned char *) (const char *) ( seen_dev->me->me_devname ))[3] - __s2[3]); | 0-6 |
| 1383 | ))[3] - __s2[3]);| TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 5 times by 1 test |
never executed: __result = (((const unsigned char *) (const char *) ( seen_dev->me->me_devname ))[3] - __s2[3]); }never executed: end of block }never executed: end of block __result; }))) : (__builtin_constant_p (| TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 5 times by 1 test |
| 0-6 |
| 1384 | me->me_devname| TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 5 times by 1 test |
| 5-6 |
| 1385 | ) && ((size_t)(const void *)((| TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 5 times by 1 test |
| 5-6 |
| 1386 | me->me_devname| TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 5 times by 1 test |
| 5-6 |
| 1387 | ) + 1) - (size_t)(const void *)(| TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 5 times by 1 test |
| 5-6 |
| 1388 | me->me_devname| TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 5 times by 1 test |
| 5-6 |
| 1389 | ) == 1) && (__s2_len = __builtin_strlen (| TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 5 times by 1 test |
| 5-6 |
| 1390 | me->me_devname| TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 5 times by 1 test |
| 5-6 |
| 1391 | ), __s2_len < 4) ? (__builtin_constant_p (| TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 5 times by 1 test |
| 5-6 |
| 1392 | seen_dev->me->me_devname| TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 5 times by 1 test |
| 5-6 |
| 1393 | ) && ((size_t)(const void *)((| TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 5 times by 1 test |
| 5-6 |
| 1394 | seen_dev->me->me_devname| TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 5 times by 1 test |
| 5-6 |
| 1395 | ) + 1) - (size_t)(const void *)(| TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 5 times by 1 test |
| 5-6 |
| 1396 | seen_dev->me->me_devname| TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 5 times by 1 test |
| 5-6 |
| 1397 | ) == 1) ? __builtin_strcmp (| TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 5 times by 1 test |
| 5-6 |
| 1398 | seen_dev->me->me_devname| TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 5 times by 1 test |
| 5-6 |
| 1399 | , | TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 5 times by 1 test |
| 5-6 |
| 1400 | me->me_devname| TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 5 times by 1 test |
| 5-6 |
| 1401 | ) : -(__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (| TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 5 times by 1 test |
| 5-6 |
| 1402 | seen_dev->me->me_devname| TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 5 times by 1 test |
| 5-6 |
| 1403 | ); int __result = (((const unsigned char *) (const char *) (| TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 5 times by 1 test |
| 5-6 |
| 1404 | me->me_devname| TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 5 times by 1 test |
| 5-6 |
| 1405 | ))[0] - __s2[0]); if (__s2_len > 0| TRUE | never evaluated | | FALSE | never evaluated |
&& __result == 0| TRUE | never evaluated | | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (| TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 5 times by 1 test |
| 0-6 |
| 1406 | me->me_devname| TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 5 times by 1 test |
| 5-6 |
| 1407 | ))[1] - __s2[1]); if (__s2_len > 1| TRUE | never evaluated | | FALSE | never evaluated |
&& __result == 0| TRUE | never evaluated | | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (| TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 5 times by 1 test |
| 0-6 |
| 1408 | me->me_devname| TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 5 times by 1 test |
| 5-6 |
| 1409 | ))[2] - __s2[2]); if (__s2_len > 2| TRUE | never evaluated | | FALSE | never evaluated |
&& __result == 0| TRUE | never evaluated | | FALSE | never evaluated |
) __result = (((const unsigned char *) (const char *) (never executed: __result = (((const unsigned char *) (const char *) ( me->me_devname ))[3] - __s2[3]); | TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 5 times by 1 test |
| 0-6 |
| 1410 | me->me_devname| TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 5 times by 1 test |
never executed: __result = (((const unsigned char *) (const char *) ( me->me_devname ))[3] - __s2[3]); | 0-6 |
| 1411 | ))[3] - __s2[3]);| TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 5 times by 1 test |
never executed: __result = (((const unsigned char *) (const char *) ( me->me_devname ))[3] - __s2[3]); }never executed: end of block }never executed: end of block __result; }))) : __builtin_strcmp (| TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 5 times by 1 test |
| 0-6 |
| 1412 | seen_dev->me->me_devname| TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 5 times by 1 test |
| 5-6 |
| 1413 | , | TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 5 times by 1 test |
| 5-6 |
| 1414 | me->me_devname| TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 5 times by 1 test |
| 5-6 |
| 1415 | )))); }) | TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 5 times by 1 test |
| 5-6 |
| 1416 | == 0)| TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 5 times by 1 test |
| 5-6 |
| 1417 | | - |
| 1418 | | - |
| 1419 | | - |
| 1420 | | - |
| 1421 | && (| TRUE | evaluated 6 times by 1 test | | FALSE | never evaluated |
| 0-6 |
| 1422 | __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (| TRUE | evaluated 6 times by 1 test | | FALSE | never evaluated |
| 0-6 |
| 1423 | me->me_mountdir| TRUE | evaluated 6 times by 1 test | | FALSE | never evaluated |
| 0-6 |
| 1424 | ) && __builtin_constant_p (| TRUE | evaluated 6 times by 1 test | | FALSE | never evaluated |
| 0-6 |
| 1425 | seen_dev->me->me_mountdir| TRUE | evaluated 6 times by 1 test | | FALSE | never evaluated |
| 0-6 |
| 1426 | ) && (__s1_len = __builtin_strlen (| TRUE | evaluated 6 times by 1 test | | FALSE | never evaluated |
| 0-6 |
| 1427 | me->me_mountdir| TRUE | evaluated 6 times by 1 test | | FALSE | never evaluated |
| 0-6 |
| 1428 | ), __s2_len = __builtin_strlen (| TRUE | evaluated 6 times by 1 test | | FALSE | never evaluated |
| 0-6 |
| 1429 | seen_dev->me->me_mountdir| TRUE | evaluated 6 times by 1 test | | FALSE | never evaluated |
| 0-6 |
| 1430 | ), (!((size_t)(const void *)((| TRUE | evaluated 6 times by 1 test | | FALSE | never evaluated |
| 0-6 |
| 1431 | me->me_mountdir| TRUE | evaluated 6 times by 1 test | | FALSE | never evaluated |
| 0-6 |
| 1432 | ) + 1) - (size_t)(const void *)(| TRUE | evaluated 6 times by 1 test | | FALSE | never evaluated |
| 0-6 |
| 1433 | me->me_mountdir| TRUE | evaluated 6 times by 1 test | | FALSE | never evaluated |
| 0-6 |
| 1434 | ) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((| TRUE | evaluated 6 times by 1 test | | FALSE | never evaluated |
| 0-6 |
| 1435 | seen_dev->me->me_mountdir| TRUE | evaluated 6 times by 1 test | | FALSE | never evaluated |
| 0-6 |
| 1436 | ) + 1) - (size_t)(const void *)(| TRUE | evaluated 6 times by 1 test | | FALSE | never evaluated |
| 0-6 |
| 1437 | seen_dev->me->me_mountdir| TRUE | evaluated 6 times by 1 test | | FALSE | never evaluated |
| 0-6 |
| 1438 | ) == 1) || __s2_len >= 4)) ? __builtin_strcmp (| TRUE | evaluated 6 times by 1 test | | FALSE | never evaluated |
| 0-6 |
| 1439 | me->me_mountdir| TRUE | evaluated 6 times by 1 test | | FALSE | never evaluated |
| 0-6 |
| 1440 | , | TRUE | evaluated 6 times by 1 test | | FALSE | never evaluated |
| 0-6 |
| 1441 | seen_dev->me->me_mountdir| TRUE | evaluated 6 times by 1 test | | FALSE | never evaluated |
| 0-6 |
| 1442 | ) : (__builtin_constant_p (| TRUE | evaluated 6 times by 1 test | | FALSE | never evaluated |
| 0-6 |
| 1443 | me->me_mountdir| TRUE | evaluated 6 times by 1 test | | FALSE | never evaluated |
| 0-6 |
| 1444 | ) && ((size_t)(const void *)((| TRUE | evaluated 6 times by 1 test | | FALSE | never evaluated |
| 0-6 |
| 1445 | me->me_mountdir| TRUE | evaluated 6 times by 1 test | | FALSE | never evaluated |
| 0-6 |
| 1446 | ) + 1) - (size_t)(const void *)(| TRUE | evaluated 6 times by 1 test | | FALSE | never evaluated |
| 0-6 |
| 1447 | me->me_mountdir| TRUE | evaluated 6 times by 1 test | | FALSE | never evaluated |
| 0-6 |
| 1448 | ) == 1) && (__s1_len = __builtin_strlen (| TRUE | evaluated 6 times by 1 test | | FALSE | never evaluated |
| 0-6 |
| 1449 | me->me_mountdir| TRUE | evaluated 6 times by 1 test | | FALSE | never evaluated |
| 0-6 |
| 1450 | ), __s1_len < 4) ? (__builtin_constant_p (| TRUE | evaluated 6 times by 1 test | | FALSE | never evaluated |
| 0-6 |
| 1451 | seen_dev->me->me_mountdir| TRUE | evaluated 6 times by 1 test | | FALSE | never evaluated |
| 0-6 |
| 1452 | ) && ((size_t)(const void *)((| TRUE | evaluated 6 times by 1 test | | FALSE | never evaluated |
| 0-6 |
| 1453 | seen_dev->me->me_mountdir| TRUE | evaluated 6 times by 1 test | | FALSE | never evaluated |
| 0-6 |
| 1454 | ) + 1) - (size_t)(const void *)(| TRUE | evaluated 6 times by 1 test | | FALSE | never evaluated |
| 0-6 |
| 1455 | seen_dev->me->me_mountdir| TRUE | evaluated 6 times by 1 test | | FALSE | never evaluated |
| 0-6 |
| 1456 | ) == 1) ? __builtin_strcmp (| TRUE | evaluated 6 times by 1 test | | FALSE | never evaluated |
| 0-6 |
| 1457 | me->me_mountdir| TRUE | evaluated 6 times by 1 test | | FALSE | never evaluated |
| 0-6 |
| 1458 | , | TRUE | evaluated 6 times by 1 test | | FALSE | never evaluated |
| 0-6 |
| 1459 | seen_dev->me->me_mountdir| TRUE | evaluated 6 times by 1 test | | FALSE | never evaluated |
| 0-6 |
| 1460 | ) : (__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (| TRUE | evaluated 6 times by 1 test | | FALSE | never evaluated |
| 0-6 |
| 1461 | seen_dev->me->me_mountdir| TRUE | evaluated 6 times by 1 test | | FALSE | never evaluated |
| 0-6 |
| 1462 | ); int __result = (((const unsigned char *) (const char *) (| TRUE | evaluated 6 times by 1 test | | FALSE | never evaluated |
| 0-6 |
| 1463 | me->me_mountdir| TRUE | evaluated 6 times by 1 test | | FALSE | never evaluated |
| 0-6 |
| 1464 | ))[0] - __s2[0]); if (__s1_len > 0| TRUE | never evaluated | | FALSE | never evaluated |
&& __result == 0| TRUE | never evaluated | | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (| TRUE | evaluated 6 times by 1 test | | FALSE | never evaluated |
| 0-6 |
| 1465 | me->me_mountdir| TRUE | evaluated 6 times by 1 test | | FALSE | never evaluated |
| 0-6 |
| 1466 | ))[1] - __s2[1]); if (__s1_len > 1| TRUE | never evaluated | | FALSE | never evaluated |
&& __result == 0| TRUE | never evaluated | | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (| TRUE | evaluated 6 times by 1 test | | FALSE | never evaluated |
| 0-6 |
| 1467 | me->me_mountdir| TRUE | evaluated 6 times by 1 test | | FALSE | never evaluated |
| 0-6 |
| 1468 | ))[2] - __s2[2]); if (__s1_len > 2| TRUE | never evaluated | | FALSE | never evaluated |
&& __result == 0| TRUE | never evaluated | | FALSE | never evaluated |
) __result = (((const unsigned char *) (const char *) (never executed: __result = (((const unsigned char *) (const char *) ( me->me_mountdir ))[3] - __s2[3]); | TRUE | evaluated 6 times by 1 test | | FALSE | never evaluated |
| 0-6 |
| 1469 | me->me_mountdir| TRUE | evaluated 6 times by 1 test | | FALSE | never evaluated |
never executed: __result = (((const unsigned char *) (const char *) ( me->me_mountdir ))[3] - __s2[3]); | 0-6 |
| 1470 | ))[3] - __s2[3]);| TRUE | evaluated 6 times by 1 test | | FALSE | never evaluated |
never executed: __result = (((const unsigned char *) (const char *) ( me->me_mountdir ))[3] - __s2[3]); }never executed: end of block }never executed: end of block __result; }))) : (__builtin_constant_p (| TRUE | evaluated 6 times by 1 test | | FALSE | never evaluated |
| 0-6 |
| 1471 | seen_dev->me->me_mountdir| TRUE | evaluated 6 times by 1 test | | FALSE | never evaluated |
| 0-6 |
| 1472 | ) && ((size_t)(const void *)((| TRUE | evaluated 6 times by 1 test | | FALSE | never evaluated |
| 0-6 |
| 1473 | seen_dev->me->me_mountdir| TRUE | evaluated 6 times by 1 test | | FALSE | never evaluated |
| 0-6 |
| 1474 | ) + 1) - (size_t)(const void *)(| TRUE | evaluated 6 times by 1 test | | FALSE | never evaluated |
| 0-6 |
| 1475 | seen_dev->me->me_mountdir| TRUE | evaluated 6 times by 1 test | | FALSE | never evaluated |
| 0-6 |
| 1476 | ) == 1) && (__s2_len = __builtin_strlen (| TRUE | evaluated 6 times by 1 test | | FALSE | never evaluated |
| 0-6 |
| 1477 | seen_dev->me->me_mountdir| TRUE | evaluated 6 times by 1 test | | FALSE | never evaluated |
| 0-6 |
| 1478 | ), __s2_len < 4) ? (__builtin_constant_p (| TRUE | evaluated 6 times by 1 test | | FALSE | never evaluated |
| 0-6 |
| 1479 | me->me_mountdir| TRUE | evaluated 6 times by 1 test | | FALSE | never evaluated |
| 0-6 |
| 1480 | ) && ((size_t)(const void *)((| TRUE | evaluated 6 times by 1 test | | FALSE | never evaluated |
| 0-6 |
| 1481 | me->me_mountdir| TRUE | evaluated 6 times by 1 test | | FALSE | never evaluated |
| 0-6 |
| 1482 | ) + 1) - (size_t)(const void *)(| TRUE | evaluated 6 times by 1 test | | FALSE | never evaluated |
| 0-6 |
| 1483 | me->me_mountdir| TRUE | evaluated 6 times by 1 test | | FALSE | never evaluated |
| 0-6 |
| 1484 | ) == 1) ? __builtin_strcmp (| TRUE | evaluated 6 times by 1 test | | FALSE | never evaluated |
| 0-6 |
| 1485 | me->me_mountdir| TRUE | evaluated 6 times by 1 test | | FALSE | never evaluated |
| 0-6 |
| 1486 | , | TRUE | evaluated 6 times by 1 test | | FALSE | never evaluated |
| 0-6 |
| 1487 | seen_dev->me->me_mountdir| TRUE | evaluated 6 times by 1 test | | FALSE | never evaluated |
| 0-6 |
| 1488 | ) : -(__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (| TRUE | evaluated 6 times by 1 test | | FALSE | never evaluated |
| 0-6 |
| 1489 | me->me_mountdir| TRUE | evaluated 6 times by 1 test | | FALSE | never evaluated |
| 0-6 |
| 1490 | ); int __result = (((const unsigned char *) (const char *) (| TRUE | evaluated 6 times by 1 test | | FALSE | never evaluated |
| 0-6 |
| 1491 | seen_dev->me->me_mountdir| TRUE | evaluated 6 times by 1 test | | FALSE | never evaluated |
| 0-6 |
| 1492 | ))[0] - __s2[0]); if (__s2_len > 0| TRUE | never evaluated | | FALSE | never evaluated |
&& __result == 0| TRUE | never evaluated | | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (| TRUE | evaluated 6 times by 1 test | | FALSE | never evaluated |
| 0-6 |
| 1493 | seen_dev->me->me_mountdir| TRUE | evaluated 6 times by 1 test | | FALSE | never evaluated |
| 0-6 |
| 1494 | ))[1] - __s2[1]); if (__s2_len > 1| TRUE | never evaluated | | FALSE | never evaluated |
&& __result == 0| TRUE | never evaluated | | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (| TRUE | evaluated 6 times by 1 test | | FALSE | never evaluated |
| 0-6 |
| 1495 | seen_dev->me->me_mountdir| TRUE | evaluated 6 times by 1 test | | FALSE | never evaluated |
| 0-6 |
| 1496 | ))[2] - __s2[2]); if (__s2_len > 2| TRUE | never evaluated | | FALSE | never evaluated |
&& __result == 0| TRUE | never evaluated | | FALSE | never evaluated |
) __result = (((const unsigned char *) (const char *) (never executed: __result = (((const unsigned char *) (const char *) ( seen_dev->me->me_mountdir ))[3] - __s2[3]); | TRUE | evaluated 6 times by 1 test | | FALSE | never evaluated |
| 0-6 |
| 1497 | seen_dev->me->me_mountdir| TRUE | evaluated 6 times by 1 test | | FALSE | never evaluated |
never executed: __result = (((const unsigned char *) (const char *) ( seen_dev->me->me_mountdir ))[3] - __s2[3]); | 0-6 |
| 1498 | ))[3] - __s2[3]);| TRUE | evaluated 6 times by 1 test | | FALSE | never evaluated |
never executed: __result = (((const unsigned char *) (const char *) ( seen_dev->me->me_mountdir ))[3] - __s2[3]); }never executed: end of block }never executed: end of block __result; }))) : __builtin_strcmp (| TRUE | evaluated 6 times by 1 test | | FALSE | never evaluated |
| 0-6 |
| 1499 | me->me_mountdir| TRUE | evaluated 6 times by 1 test | | FALSE | never evaluated |
| 0-6 |
| 1500 | , | TRUE | evaluated 6 times by 1 test | | FALSE | never evaluated |
| 0-6 |
| 1501 | seen_dev->me->me_mountdir| TRUE | evaluated 6 times by 1 test | | FALSE | never evaluated |
| 0-6 |
| 1502 | )))); }) | TRUE | evaluated 6 times by 1 test | | FALSE | never evaluated |
| 0-6 |
| 1503 | == 0)| TRUE | evaluated 6 times by 1 test | | FALSE | never evaluated |
| 0-6 |
| 1504 | )) | - |
| 1505 | { | - |
| 1506 | | - |
| 1507 | discard_me = seen_dev->me; | - |
| 1508 | seen_dev->me = me; | - |
| 1509 | }executed 16 times by 1 test: end of block | 16 |
| 1510 | else | - |
| 1511 | { | - |
| 1512 | | - |
| 1513 | discard_me = me; | - |
| 1514 | }executed 5 times by 1 test: end of block | 5 |
| 1515 | | - |
| 1516 | } | - |
| 1517 | }executed 491 times by 1 test: end of block | 491 |
| 1518 | | - |
| 1519 | if (discard_me| TRUE | evaluated 21 times by 1 test | | FALSE | evaluated 602 times by 1 test |
) | 21-602 |
| 1520 | { | - |
| 1521 | me = me->me_next; | - |
| 1522 | if (! devices_only| TRUE | evaluated 17 times by 1 test | | FALSE | evaluated 4 times by 1 test |
) | 4-17 |
| 1523 | free_mount_entry (discard_me);executed 17 times by 1 test: free_mount_entry (discard_me); | 17 |
| 1524 | }executed 21 times by 1 test: end of block | 21 |
| 1525 | else | - |
| 1526 | { | - |
| 1527 | | - |
| 1528 | struct devlist *devlist = xmalloc (sizeof *devlist); | - |
| 1529 | devlist->me = me; | - |
| 1530 | devlist->dev_num = buf.st_dev; | - |
| 1531 | devlist->next = device_list; | - |
| 1532 | device_list = devlist; | - |
| 1533 | if (hash_insert (devlist_table, devlist) == | TRUE | never evaluated | | FALSE | evaluated 602 times by 1 test |
| 0-602 |
| 1534 | ((void *)0)| TRUE | never evaluated | | FALSE | evaluated 602 times by 1 test |
| 0-602 |
| 1535 | ) | - |
| 1536 | xalloc_die (); never executed: xalloc_die (); | 0 |
| 1537 | | - |
| 1538 | me = me->me_next; | - |
| 1539 | }executed 602 times by 1 test: end of block | 602 |
| 1540 | } | - |
| 1541 | | - |
| 1542 | | - |
| 1543 | if (! devices_only| TRUE | evaluated 25 times by 1 test | | FALSE | evaluated 2 times by 1 test |
) { | 2-25 |
| 1544 | mount_list = | - |
| 1545 | ((void *)0) | - |
| 1546 | ; | - |
| 1547 | while (device_list| TRUE | evaluated 571 times by 1 test | | FALSE | evaluated 25 times by 1 test |
) | 25-571 |
| 1548 | { | - |
| 1549 | | - |
| 1550 | me = device_list->me; | - |
| 1551 | me->me_next = mount_list; | - |
| 1552 | mount_list = me; | - |
| 1553 | device_list = device_list->next; | - |
| 1554 | }executed 571 times by 1 test: end of block | 571 |
| 1555 | | - |
| 1556 | hash_free (devlist_table); | - |
| 1557 | devlist_table = | - |
| 1558 | ((void *)0) | - |
| 1559 | ; | - |
| 1560 | }executed 25 times by 1 test: end of block | 25 |
| 1561 | }executed 27 times by 1 test: end of block | 27 |
| 1562 | | - |
| 1563 | | - |
| 1564 | | - |
| 1565 | | - |
| 1566 | | - |
| 1567 | static struct mount_entry const * | - |
| 1568 | __attribute__ ((__pure__)) | - |
| 1569 | | - |
| 1570 | me_for_dev (dev_t dev) | - |
| 1571 | { | - |
| 1572 | struct devlist *dl = devlist_for_dev (dev); | - |
| 1573 | if (dl| TRUE | evaluated 33 times by 1 test | | FALSE | evaluated 1 time by 1 test |
) | 1-33 |
| 1574 | returnexecuted 33 times by 1 test: return dl->me; dl->me;executed 33 times by 1 test: return dl->me; | 33 |
| 1575 | | - |
| 1576 | returnexecuted 1 time by 1 test: return ((void *)0) ; executed 1 time by 1 test: return ((void *)0) ; | 1 |
| 1577 | ((void *)0)executed 1 time by 1 test: return ((void *)0) ; | 1 |
| 1578 | ;executed 1 time by 1 test: return ((void *)0) ; | 1 |
| 1579 | } | - |
| 1580 | | - |
| 1581 | | - |
| 1582 | | - |
| 1583 | | - |
| 1584 | | - |
| 1585 | static | - |
| 1586 | _Bool | - |
| 1587 | | - |
| 1588 | known_value (uintmax_t n) | - |
| 1589 | { | - |
| 1590 | returnexecuted 2136 times by 1 test: return n < (18446744073709551615UL) - 1; n < executed 2136 times by 1 test: return n < (18446744073709551615UL) - 1; | 2136 |
| 1591 | (18446744073709551615UL) executed 2136 times by 1 test: return n < (18446744073709551615UL) - 1; | 2136 |
| 1592 | - 1;executed 2136 times by 1 test: return n < (18446744073709551615UL) - 1; | 2136 |
| 1593 | } | - |
| 1594 | static char const * | - |
| 1595 | df_readable ( | - |
| 1596 | _Bool | - |
| 1597 | negative, uintmax_t n, char *buf, | - |
| 1598 | uintmax_t input_units, uintmax_t output_units) | - |
| 1599 | { | - |
| 1600 | if (! known_value (n)| TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 634 times by 1 test |
&& !negative| TRUE | evaluated 6 times by 1 test | | FALSE | never evaluated |
) | 0-634 |
| 1601 | returnexecuted 6 times by 1 test: return "-"; "-";executed 6 times by 1 test: return "-"; | 6 |
| 1602 | else | - |
| 1603 | { | - |
| 1604 | char *p = human_readable (negative ? -n : n, buf + negative, | - |
| 1605 | human_output_opts, input_units, output_units); | - |
| 1606 | if (negative| TRUE | never evaluated | | FALSE | evaluated 634 times by 1 test |
) | 0-634 |
| 1607 | *-- never executed: *--p = '-'; p = '-';never executed: *--p = '-'; | 0 |
| 1608 | returnexecuted 634 times by 1 test: return p; p;executed 634 times by 1 test: return p; | 634 |
| 1609 | } | - |
| 1610 | } | - |
| 1611 | static void | - |
| 1612 | add_uint_with_neg_flag (uintmax_t *dest, | - |
| 1613 | _Bool | - |
| 1614 | *dest_neg, | - |
| 1615 | uintmax_t src, | - |
| 1616 | _Bool | - |
| 1617 | src_neg) | - |
| 1618 | { | - |
| 1619 | if ((| TRUE | evaluated 20 times by 1 test | | FALSE | never evaluated |
!(*dest_neg) == !(src_neg))| TRUE | evaluated 20 times by 1 test | | FALSE | never evaluated |
) | 0-20 |
| 1620 | { | - |
| 1621 | *dest += src; | - |
| 1622 | return;executed 20 times by 1 test: return; | 20 |
| 1623 | } | - |
| 1624 | | - |
| 1625 | if (*| TRUE | never evaluated | | FALSE | never evaluated |
dest_neg| TRUE | never evaluated | | FALSE | never evaluated |
) | 0 |
| 1626 | * never executed: *dest = -*dest; dest = -*dest;never executed: *dest = -*dest; | 0 |
| 1627 | | - |
| 1628 | if (src_neg| TRUE | never evaluated | | FALSE | never evaluated |
) | 0 |
| 1629 | src = -src; never executed: src = -src; | 0 |
| 1630 | | - |
| 1631 | if (src < *dest| TRUE | never evaluated | | FALSE | never evaluated |
) | 0 |
| 1632 | * never executed: *dest -= src; dest -= src;never executed: *dest -= src; | 0 |
| 1633 | else | - |
| 1634 | { | - |
| 1635 | *dest = src - *dest; | - |
| 1636 | *dest_neg = src_neg; | - |
| 1637 | } never executed: end of block | 0 |
| 1638 | | - |
| 1639 | if (*| TRUE | never evaluated | | FALSE | never evaluated |
dest_neg| TRUE | never evaluated | | FALSE | never evaluated |
) | 0 |
| 1640 | * never executed: *dest = -*dest; dest = -*dest;never executed: *dest = -*dest; | 0 |
| 1641 | } never executed: end of block | 0 |
| 1642 | | - |
| 1643 | | - |
| 1644 | | - |
| 1645 | | - |
| 1646 | static | - |
| 1647 | _Bool __attribute__ ((__pure__)) | - |
| 1648 | | - |
| 1649 | has_uuid_suffix (char const *s) | - |
| 1650 | { | - |
| 1651 | size_t len = strlen (s); | - |
| 1652 | returnexecuted 196 times by 1 test: return (36 < len && __builtin_strspn ( s + len - 36 , "-0123456789abcdefABCDEF" ) == 36); (36 < lenexecuted 196 times by 1 test: return (36 < len && __builtin_strspn ( s + len - 36 , "-0123456789abcdefABCDEF" ) == 36); | 196 |
| 1653 | && executed 196 times by 1 test: return (36 < len && __builtin_strspn ( s + len - 36 , "-0123456789abcdefABCDEF" ) == 36); | 196 |
| 1654 | __builtin_strspn (executed 196 times by 1 test: return (36 < len && __builtin_strspn ( s + len - 36 , "-0123456789abcdefABCDEF" ) == 36); | 196 |
| 1655 | s + len - 36executed 196 times by 1 test: return (36 < len && __builtin_strspn ( s + len - 36 , "-0123456789abcdefABCDEF" ) == 36); | 196 |
| 1656 | , executed 196 times by 1 test: return (36 < len && __builtin_strspn ( s + len - 36 , "-0123456789abcdefABCDEF" ) == 36); | 196 |
| 1657 | "-0123456789abcdefABCDEF"executed 196 times by 1 test: return (36 < len && __builtin_strspn ( s + len - 36 , "-0123456789abcdefABCDEF" ) == 36); | 196 |
| 1658 | ) executed 196 times by 1 test: return (36 < len && __builtin_strspn ( s + len - 36 , "-0123456789abcdefABCDEF" ) == 36); | 196 |
| 1659 | == 36);executed 196 times by 1 test: return (36 < len && __builtin_strspn ( s + len - 36 , "-0123456789abcdefABCDEF" ) == 36); | 196 |
| 1660 | } | - |
| 1661 | | - |
| 1662 | | - |
| 1663 | | - |
| 1664 | static void | - |
| 1665 | get_field_values (struct field_values_t *bv, | - |
| 1666 | struct field_values_t *iv, | - |
| 1667 | const struct fs_usage *fsu) | - |
| 1668 | { | - |
| 1669 | | - |
| 1670 | iv->input_units = iv->output_units = 1; | - |
| 1671 | iv->total = fsu->fsu_files; | - |
| 1672 | iv->available = iv->available_to_root = fsu->fsu_ffree; | - |
| 1673 | iv->negate_available = | - |
| 1674 | 0 | - |
| 1675 | ; | - |
| 1676 | | - |
| 1677 | iv->used = | - |
| 1678 | (18446744073709551615UL) | - |
| 1679 | ; | - |
| 1680 | iv->negate_used = | - |
| 1681 | 0 | - |
| 1682 | ; | - |
| 1683 | if (known_value (iv->total)| TRUE | evaluated 242 times by 1 test | | FALSE | evaluated 2 times by 1 test |
&& known_value (iv->available_to_root)| TRUE | evaluated 242 times by 1 test | | FALSE | never evaluated |
) | 0-242 |
| 1684 | { | - |
| 1685 | iv->used = iv->total - iv->available_to_root; | - |
| 1686 | iv->negate_used = (iv->total < iv->available_to_root); | - |
| 1687 | }executed 242 times by 1 test: end of block | 242 |
| 1688 | | - |
| 1689 | | - |
| 1690 | bv->input_units = fsu->fsu_blocksize; | - |
| 1691 | bv->output_units = output_block_size; | - |
| 1692 | bv->total = fsu->fsu_blocks; | - |
| 1693 | bv->available = fsu->fsu_bavail; | - |
| 1694 | bv->available_to_root = fsu->fsu_bfree; | - |
| 1695 | bv->negate_available = (fsu->fsu_bavail_top_bit_set| TRUE | never evaluated | | FALSE | evaluated 244 times by 1 test |
| 0-244 |
| 1696 | && known_value (fsu->fsu_bavail)| TRUE | never evaluated | | FALSE | never evaluated |
); | 0 |
| 1697 | | - |
| 1698 | bv->used = | - |
| 1699 | (18446744073709551615UL) | - |
| 1700 | ; | - |
| 1701 | bv->negate_used = | - |
| 1702 | 0 | - |
| 1703 | ; | - |
| 1704 | if (known_value (bv->total)| TRUE | evaluated 242 times by 1 test | | FALSE | evaluated 2 times by 1 test |
&& known_value (bv->available_to_root)| TRUE | evaluated 242 times by 1 test | | FALSE | never evaluated |
) | 0-242 |
| 1705 | { | - |
| 1706 | bv->used = bv->total - bv->available_to_root; | - |
| 1707 | bv->negate_used = (bv->total < bv->available_to_root); | - |
| 1708 | }executed 242 times by 1 test: end of block | 242 |
| 1709 | }executed 244 times by 1 test: end of block | 244 |
| 1710 | | - |
| 1711 | | - |
| 1712 | static void | - |
| 1713 | add_to_grand_total (struct field_values_t *bv, struct field_values_t *iv) | - |
| 1714 | { | - |
| 1715 | if (known_value (iv->total)| TRUE | evaluated 20 times by 1 test | | FALSE | never evaluated |
) | 0-20 |
| 1716 | grand_fsu.fsu_files += iv->total;executed 20 times by 1 test: grand_fsu.fsu_files += iv->total; | 20 |
| 1717 | if (known_value (iv->available)| TRUE | evaluated 20 times by 1 test | | FALSE | never evaluated |
) | 0-20 |
| 1718 | grand_fsu.fsu_ffree += iv->available;executed 20 times by 1 test: grand_fsu.fsu_ffree += iv->available; | 20 |
| 1719 | | - |
| 1720 | if (known_value (bv->total)| TRUE | evaluated 20 times by 1 test | | FALSE | never evaluated |
) | 0-20 |
| 1721 | grand_fsu.fsu_blocks += bv->input_units * bv->total;executed 20 times by 1 test: grand_fsu.fsu_blocks += bv->input_units * bv->total; | 20 |
| 1722 | if (known_value (bv->available_to_root)| TRUE | evaluated 20 times by 1 test | | FALSE | never evaluated |
) | 0-20 |
| 1723 | grand_fsu.fsu_bfree += bv->input_units * bv->available_to_root;executed 20 times by 1 test: grand_fsu.fsu_bfree += bv->input_units * bv->available_to_root; | 20 |
| 1724 | if (known_value (bv->available)| TRUE | evaluated 20 times by 1 test | | FALSE | never evaluated |
) | 0-20 |
| 1725 | add_uint_with_neg_flag (&grand_fsu.fsu_bavail,executed 20 times by 1 test: add_uint_with_neg_flag (&grand_fsu.fsu_bavail, &grand_fsu.fsu_bavail_top_bit_set, bv->input_units * bv->available, bv->negate_available); | 20 |
| 1726 | &grand_fsu.fsu_bavail_top_bit_set,executed 20 times by 1 test: add_uint_with_neg_flag (&grand_fsu.fsu_bavail, &grand_fsu.fsu_bavail_top_bit_set, bv->input_units * bv->available, bv->negate_available); | 20 |
| 1727 | bv->input_units * bv->available,executed 20 times by 1 test: add_uint_with_neg_flag (&grand_fsu.fsu_bavail, &grand_fsu.fsu_bavail_top_bit_set, bv->input_units * bv->available, bv->negate_available); | 20 |
| 1728 | bv->negate_available);executed 20 times by 1 test: add_uint_with_neg_flag (&grand_fsu.fsu_bavail, &grand_fsu.fsu_bavail_top_bit_set, bv->input_units * bv->available, bv->negate_available); | 20 |
| 1729 | }executed 20 times by 1 test: end of block | 20 |
| 1730 | static void | - |
| 1731 | get_dev (char const *disk, char const *mount_point, char const* file, | - |
| 1732 | char const *stat_file, char const *fstype, | - |
| 1733 | | - |
| 1734 | _Bool | - |
| 1735 | me_dummy, | - |
| 1736 | _Bool | - |
| 1737 | me_remote, | - |
| 1738 | const struct fs_usage *force_fsu, | - |
| 1739 | | - |
| 1740 | _Bool | - |
| 1741 | process_all) | - |
| 1742 | { | - |
| 1743 | if (me_remote| TRUE | evaluated 10 times by 1 test | | FALSE | evaluated 647 times by 1 test |
&& show_local_fs| TRUE | never evaluated | | FALSE | evaluated 10 times by 1 test |
) | 0-647 |
| 1744 | return; never executed: return; | 0 |
| 1745 | | - |
| 1746 | if (me_dummy| TRUE | evaluated 132 times by 1 test | | FALSE | evaluated 525 times by 1 test |
&& !show_all_fs| TRUE | evaluated 126 times by 1 test | | FALSE | evaluated 6 times by 1 test |
&& !show_listed_fs| TRUE | evaluated 126 times by 1 test | | FALSE | never evaluated |
) | 0-525 |
| 1747 | return;executed 126 times by 1 test: return; | 126 |
| 1748 | | - |
| 1749 | if (!selected_fstype (fstype)| TRUE | evaluated 3 times by 1 test | | FALSE | evaluated 528 times by 1 test |
|| excluded_fstype (fstype)| TRUE | never evaluated | | FALSE | evaluated 528 times by 1 test |
) | 0-528 |
| 1750 | return;executed 3 times by 1 test: return; | 3 |
| 1751 | | - |
| 1752 | | - |
| 1753 | | - |
| 1754 | if (!force_fsu| TRUE | evaluated 522 times by 1 test | | FALSE | evaluated 6 times by 1 test |
&& mount_point| TRUE | evaluated 522 times by 1 test | | FALSE | never evaluated |
&& ! ((((| TRUE | evaluated 517 times by 1 test | | FALSE | evaluated 5 times by 1 test |
mount_point)[0]) == '/')| TRUE | evaluated 517 times by 1 test | | FALSE | evaluated 5 times by 1 test |
|| 0 != 0| TRUE | never evaluated | | FALSE | evaluated 5 times by 1 test |
)) | 0-522 |
| 1755 | return;executed 5 times by 1 test: return; | 5 |
| 1756 | | - |
| 1757 | | - |
| 1758 | | - |
| 1759 | | - |
| 1760 | | - |
| 1761 | if (!stat_file| TRUE | evaluated 488 times by 1 test | | FALSE | evaluated 35 times by 1 test |
) | 35-488 |
| 1762 | stat_file = mount_point| TRUE | evaluated 488 times by 1 test | | FALSE | never evaluated |
? mount_point : disk;executed 488 times by 1 test: stat_file = mount_point ? mount_point : disk; | 0-488 |
| 1763 | | - |
| 1764 | struct fs_usage fsu; | - |
| 1765 | if (force_fsu| TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 517 times by 1 test |
) | 6-517 |
| 1766 | fsu = *force_fsu;executed 6 times by 1 test: fsu = *force_fsu; | 6 |
| 1767 | else if (get_fs_usage (stat_file, disk, &fsu)| TRUE | evaluated 1 time by 1 test | | FALSE | evaluated 516 times by 1 test |
) | 1-516 |
| 1768 | { | - |
| 1769 | | - |
| 1770 | | - |
| 1771 | | - |
| 1772 | if (process_all| TRUE | evaluated 1 time by 1 test | | FALSE | never evaluated |
&& ( | 0-1 |
| 1773 | (*| TRUE | never evaluated | | FALSE | evaluated 1 time by 1 test |
__errno_location ()) | TRUE | never evaluated | | FALSE | evaluated 1 time by 1 test |
| 0-1 |
| 1774 | == | TRUE | never evaluated | | FALSE | evaluated 1 time by 1 test |
| 0-1 |
| 1775 | 13| TRUE | never evaluated | | FALSE | evaluated 1 time by 1 test |
| 0-1 |
| 1776 | || | - |
| 1777 | (*| TRUE | evaluated 1 time by 1 test | | FALSE | never evaluated |
__errno_location ()) | TRUE | evaluated 1 time by 1 test | | FALSE | never evaluated |
| 0-1 |
| 1778 | == | TRUE | evaluated 1 time by 1 test | | FALSE | never evaluated |
| 0-1 |
| 1779 | 2| TRUE | evaluated 1 time by 1 test | | FALSE | never evaluated |
| 0-1 |
| 1780 | )) | - |
| 1781 | { | - |
| 1782 | if (! show_all_fs| TRUE | evaluated 1 time by 1 test | | FALSE | never evaluated |
) | 0-1 |
| 1783 | return;executed 1 time by 1 test: return; | 1 |
| 1784 | | - |
| 1785 | fstype = "-"; | - |
| 1786 | fsu.fsu_bavail_top_bit_set = | - |
| 1787 | 0 | - |
| 1788 | ; | - |
| 1789 | fsu.fsu_blocksize = fsu.fsu_blocks = fsu.fsu_bfree = | - |
| 1790 | fsu.fsu_bavail = fsu.fsu_files = fsu.fsu_ffree = | - |
| 1791 | (18446744073709551615UL) | - |
| 1792 | ; | - |
| 1793 | } never executed: end of block | 0 |
| 1794 | else | - |
| 1795 | { | - |
| 1796 | error (0, | - |
| 1797 | (*__errno_location ()) | - |
| 1798 | , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, stat_file)); | - |
| 1799 | exit_status = | - |
| 1800 | 1 | - |
| 1801 | ; | - |
| 1802 | return; never executed: return; | 0 |
| 1803 | } | - |
| 1804 | } | - |
| 1805 | else if (process_all| TRUE | evaluated 474 times by 1 test | | FALSE | evaluated 42 times by 1 test |
&& show_all_fs| TRUE | evaluated 34 times by 1 test | | FALSE | evaluated 440 times by 1 test |
) | 34-474 |
| 1806 | { | - |
| 1807 | | - |
| 1808 | | - |
| 1809 | | - |
| 1810 | | - |
| 1811 | struct stat sb; | - |
| 1812 | if (stat (stat_file, &sb) == 0| TRUE | evaluated 34 times by 1 test | | FALSE | never evaluated |
) | 0-34 |
| 1813 | { | - |
| 1814 | struct mount_entry const * dev_me = me_for_dev (sb.st_dev); | - |
| 1815 | if (dev_me| TRUE | evaluated 33 times by 1 test | | FALSE | evaluated 1 time by 1 test |
&& ! (| TRUE | evaluated 3 times by 1 test | | FALSE | evaluated 30 times by 1 test |
| 1-33 |
| 1816 | __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (| TRUE | evaluated 3 times by 1 test | | FALSE | evaluated 30 times by 1 test |
| 3-30 |
| 1817 | dev_me->me_devname| TRUE | evaluated 3 times by 1 test | | FALSE | evaluated 30 times by 1 test |
| 3-30 |
| 1818 | ) && __builtin_constant_p (| TRUE | evaluated 3 times by 1 test | | FALSE | evaluated 30 times by 1 test |
| 3-30 |
| 1819 | disk| TRUE | evaluated 3 times by 1 test | | FALSE | evaluated 30 times by 1 test |
| 3-30 |
| 1820 | ) && (__s1_len = __builtin_strlen (| TRUE | evaluated 3 times by 1 test | | FALSE | evaluated 30 times by 1 test |
| 3-30 |
| 1821 | dev_me->me_devname| TRUE | evaluated 3 times by 1 test | | FALSE | evaluated 30 times by 1 test |
| 3-30 |
| 1822 | ), __s2_len = __builtin_strlen (| TRUE | evaluated 3 times by 1 test | | FALSE | evaluated 30 times by 1 test |
| 3-30 |
| 1823 | disk| TRUE | evaluated 3 times by 1 test | | FALSE | evaluated 30 times by 1 test |
| 3-30 |
| 1824 | ), (!((size_t)(const void *)((| TRUE | evaluated 3 times by 1 test | | FALSE | evaluated 30 times by 1 test |
| 3-30 |
| 1825 | dev_me->me_devname| TRUE | evaluated 3 times by 1 test | | FALSE | evaluated 30 times by 1 test |
| 3-30 |
| 1826 | ) + 1) - (size_t)(const void *)(| TRUE | evaluated 3 times by 1 test | | FALSE | evaluated 30 times by 1 test |
| 3-30 |
| 1827 | dev_me->me_devname| TRUE | evaluated 3 times by 1 test | | FALSE | evaluated 30 times by 1 test |
| 3-30 |
| 1828 | ) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((| TRUE | evaluated 3 times by 1 test | | FALSE | evaluated 30 times by 1 test |
| 3-30 |
| 1829 | disk| TRUE | evaluated 3 times by 1 test | | FALSE | evaluated 30 times by 1 test |
| 3-30 |
| 1830 | ) + 1) - (size_t)(const void *)(| TRUE | evaluated 3 times by 1 test | | FALSE | evaluated 30 times by 1 test |
| 3-30 |
| 1831 | disk| TRUE | evaluated 3 times by 1 test | | FALSE | evaluated 30 times by 1 test |
| 3-30 |
| 1832 | ) == 1) || __s2_len >= 4)) ? __builtin_strcmp (| TRUE | evaluated 3 times by 1 test | | FALSE | evaluated 30 times by 1 test |
| 3-30 |
| 1833 | dev_me->me_devname| TRUE | evaluated 3 times by 1 test | | FALSE | evaluated 30 times by 1 test |
| 3-30 |
| 1834 | , | TRUE | evaluated 3 times by 1 test | | FALSE | evaluated 30 times by 1 test |
| 3-30 |
| 1835 | disk| TRUE | evaluated 3 times by 1 test | | FALSE | evaluated 30 times by 1 test |
| 3-30 |
| 1836 | ) : (__builtin_constant_p (| TRUE | evaluated 3 times by 1 test | | FALSE | evaluated 30 times by 1 test |
| 3-30 |
| 1837 | dev_me->me_devname| TRUE | evaluated 3 times by 1 test | | FALSE | evaluated 30 times by 1 test |
| 3-30 |
| 1838 | ) && ((size_t)(const void *)((| TRUE | evaluated 3 times by 1 test | | FALSE | evaluated 30 times by 1 test |
| 3-30 |
| 1839 | dev_me->me_devname| TRUE | evaluated 3 times by 1 test | | FALSE | evaluated 30 times by 1 test |
| 3-30 |
| 1840 | ) + 1) - (size_t)(const void *)(| TRUE | evaluated 3 times by 1 test | | FALSE | evaluated 30 times by 1 test |
| 3-30 |
| 1841 | dev_me->me_devname| TRUE | evaluated 3 times by 1 test | | FALSE | evaluated 30 times by 1 test |
| 3-30 |
| 1842 | ) == 1) && (__s1_len = __builtin_strlen (| TRUE | evaluated 3 times by 1 test | | FALSE | evaluated 30 times by 1 test |
| 3-30 |
| 1843 | dev_me->me_devname| TRUE | evaluated 3 times by 1 test | | FALSE | evaluated 30 times by 1 test |
| 3-30 |
| 1844 | ), __s1_len < 4) ? (__builtin_constant_p (| TRUE | evaluated 3 times by 1 test | | FALSE | evaluated 30 times by 1 test |
| 3-30 |
| 1845 | disk| TRUE | evaluated 3 times by 1 test | | FALSE | evaluated 30 times by 1 test |
| 3-30 |
| 1846 | ) && ((size_t)(const void *)((| TRUE | evaluated 3 times by 1 test | | FALSE | evaluated 30 times by 1 test |
| 3-30 |
| 1847 | disk| TRUE | evaluated 3 times by 1 test | | FALSE | evaluated 30 times by 1 test |
| 3-30 |
| 1848 | ) + 1) - (size_t)(const void *)(| TRUE | evaluated 3 times by 1 test | | FALSE | evaluated 30 times by 1 test |
| 3-30 |
| 1849 | disk| TRUE | evaluated 3 times by 1 test | | FALSE | evaluated 30 times by 1 test |
| 3-30 |
| 1850 | ) == 1) ? __builtin_strcmp (| TRUE | evaluated 3 times by 1 test | | FALSE | evaluated 30 times by 1 test |
| 3-30 |
| 1851 | dev_me->me_devname| TRUE | evaluated 3 times by 1 test | | FALSE | evaluated 30 times by 1 test |
| 3-30 |
| 1852 | , | TRUE | evaluated 3 times by 1 test | | FALSE | evaluated 30 times by 1 test |
| 3-30 |
| 1853 | disk| TRUE | evaluated 3 times by 1 test | | FALSE | evaluated 30 times by 1 test |
| 3-30 |
| 1854 | ) : (__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (| TRUE | evaluated 3 times by 1 test | | FALSE | evaluated 30 times by 1 test |
| 3-30 |
| 1855 | disk| TRUE | evaluated 3 times by 1 test | | FALSE | evaluated 30 times by 1 test |
| 3-30 |
| 1856 | ); int __result = (((const unsigned char *) (const char *) (| TRUE | evaluated 3 times by 1 test | | FALSE | evaluated 30 times by 1 test |
| 3-30 |
| 1857 | dev_me->me_devname| TRUE | evaluated 3 times by 1 test | | FALSE | evaluated 30 times by 1 test |
| 3-30 |
| 1858 | ))[0] - __s2[0]); if (__s1_len > 0| TRUE | never evaluated | | FALSE | never evaluated |
&& __result == 0| TRUE | never evaluated | | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (| TRUE | evaluated 3 times by 1 test | | FALSE | evaluated 30 times by 1 test |
| 0-30 |
| 1859 | dev_me->me_devname| TRUE | evaluated 3 times by 1 test | | FALSE | evaluated 30 times by 1 test |
| 3-30 |
| 1860 | ))[1] - __s2[1]); if (__s1_len > 1| TRUE | never evaluated | | FALSE | never evaluated |
&& __result == 0| TRUE | never evaluated | | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (| TRUE | evaluated 3 times by 1 test | | FALSE | evaluated 30 times by 1 test |
| 0-30 |
| 1861 | dev_me->me_devname| TRUE | evaluated 3 times by 1 test | | FALSE | evaluated 30 times by 1 test |
| 3-30 |
| 1862 | ))[2] - __s2[2]); if (__s1_len > 2| TRUE | never evaluated | | FALSE | never evaluated |
&& __result == 0| TRUE | never evaluated | | FALSE | never evaluated |
) __result = (((const unsigned char *) (const char *) (never executed: __result = (((const unsigned char *) (const char *) ( dev_me->me_devname ))[3] - __s2[3]); | TRUE | evaluated 3 times by 1 test | | FALSE | evaluated 30 times by 1 test |
| 0-30 |
| 1863 | dev_me->me_devname| TRUE | evaluated 3 times by 1 test | | FALSE | evaluated 30 times by 1 test |
never executed: __result = (((const unsigned char *) (const char *) ( dev_me->me_devname ))[3] - __s2[3]); | 0-30 |
| 1864 | ))[3] - __s2[3]);| TRUE | evaluated 3 times by 1 test | | FALSE | evaluated 30 times by 1 test |
never executed: __result = (((const unsigned char *) (const char *) ( dev_me->me_devname ))[3] - __s2[3]); }never executed: end of block }never executed: end of block __result; }))) : (__builtin_constant_p (| TRUE | evaluated 3 times by 1 test | | FALSE | evaluated 30 times by 1 test |
| 0-30 |
| 1865 | disk| TRUE | evaluated 3 times by 1 test | | FALSE | evaluated 30 times by 1 test |
| 3-30 |
| 1866 | ) && ((size_t)(const void *)((| TRUE | evaluated 3 times by 1 test | | FALSE | evaluated 30 times by 1 test |
| 3-30 |
| 1867 | disk| TRUE | evaluated 3 times by 1 test | | FALSE | evaluated 30 times by 1 test |
| 3-30 |
| 1868 | ) + 1) - (size_t)(const void *)(| TRUE | evaluated 3 times by 1 test | | FALSE | evaluated 30 times by 1 test |
| 3-30 |
| 1869 | disk| TRUE | evaluated 3 times by 1 test | | FALSE | evaluated 30 times by 1 test |
| 3-30 |
| 1870 | ) == 1) && (__s2_len = __builtin_strlen (| TRUE | evaluated 3 times by 1 test | | FALSE | evaluated 30 times by 1 test |
| 3-30 |
| 1871 | disk| TRUE | evaluated 3 times by 1 test | | FALSE | evaluated 30 times by 1 test |
| 3-30 |
| 1872 | ), __s2_len < 4) ? (__builtin_constant_p (| TRUE | evaluated 3 times by 1 test | | FALSE | evaluated 30 times by 1 test |
| 3-30 |
| 1873 | dev_me->me_devname| TRUE | evaluated 3 times by 1 test | | FALSE | evaluated 30 times by 1 test |
| 3-30 |
| 1874 | ) && ((size_t)(const void *)((| TRUE | evaluated 3 times by 1 test | | FALSE | evaluated 30 times by 1 test |
| 3-30 |
| 1875 | dev_me->me_devname| TRUE | evaluated 3 times by 1 test | | FALSE | evaluated 30 times by 1 test |
| 3-30 |
| 1876 | ) + 1) - (size_t)(const void *)(| TRUE | evaluated 3 times by 1 test | | FALSE | evaluated 30 times by 1 test |
| 3-30 |
| 1877 | dev_me->me_devname| TRUE | evaluated 3 times by 1 test | | FALSE | evaluated 30 times by 1 test |
| 3-30 |
| 1878 | ) == 1) ? __builtin_strcmp (| TRUE | evaluated 3 times by 1 test | | FALSE | evaluated 30 times by 1 test |
| 3-30 |
| 1879 | dev_me->me_devname| TRUE | evaluated 3 times by 1 test | | FALSE | evaluated 30 times by 1 test |
| 3-30 |
| 1880 | , | TRUE | evaluated 3 times by 1 test | | FALSE | evaluated 30 times by 1 test |
| 3-30 |
| 1881 | disk| TRUE | evaluated 3 times by 1 test | | FALSE | evaluated 30 times by 1 test |
| 3-30 |
| 1882 | ) : -(__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (| TRUE | evaluated 3 times by 1 test | | FALSE | evaluated 30 times by 1 test |
| 3-30 |
| 1883 | dev_me->me_devname| TRUE | evaluated 3 times by 1 test | | FALSE | evaluated 30 times by 1 test |
| 3-30 |
| 1884 | ); int __result = (((const unsigned char *) (const char *) (| TRUE | evaluated 3 times by 1 test | | FALSE | evaluated 30 times by 1 test |
| 3-30 |
| 1885 | disk| TRUE | evaluated 3 times by 1 test | | FALSE | evaluated 30 times by 1 test |
| 3-30 |
| 1886 | ))[0] - __s2[0]); if (__s2_len > 0| TRUE | never evaluated | | FALSE | never evaluated |
&& __result == 0| TRUE | never evaluated | | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (| TRUE | evaluated 3 times by 1 test | | FALSE | evaluated 30 times by 1 test |
| 0-30 |
| 1887 | disk| TRUE | evaluated 3 times by 1 test | | FALSE | evaluated 30 times by 1 test |
| 3-30 |
| 1888 | ))[1] - __s2[1]); if (__s2_len > 1| TRUE | never evaluated | | FALSE | never evaluated |
&& __result == 0| TRUE | never evaluated | | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (| TRUE | evaluated 3 times by 1 test | | FALSE | evaluated 30 times by 1 test |
| 0-30 |
| 1889 | disk| TRUE | evaluated 3 times by 1 test | | FALSE | evaluated 30 times by 1 test |
| 3-30 |
| 1890 | ))[2] - __s2[2]); if (__s2_len > 2| TRUE | never evaluated | | FALSE | never evaluated |
&& __result == 0| TRUE | never evaluated | | FALSE | never evaluated |
) __result = (((const unsigned char *) (const char *) (never executed: __result = (((const unsigned char *) (const char *) ( disk ))[3] - __s2[3]); | TRUE | evaluated 3 times by 1 test | | FALSE | evaluated 30 times by 1 test |
| 0-30 |
| 1891 | disk| TRUE | evaluated 3 times by 1 test | | FALSE | evaluated 30 times by 1 test |
never executed: __result = (((const unsigned char *) (const char *) ( disk ))[3] - __s2[3]); | 0-30 |
| 1892 | ))[3] - __s2[3]);| TRUE | evaluated 3 times by 1 test | | FALSE | evaluated 30 times by 1 test |
never executed: __result = (((const unsigned char *) (const char *) ( disk ))[3] - __s2[3]); }never executed: end of block }never executed: end of block __result; }))) : __builtin_strcmp (| TRUE | evaluated 3 times by 1 test | | FALSE | evaluated 30 times by 1 test |
| 0-30 |
| 1893 | dev_me->me_devname| TRUE | evaluated 3 times by 1 test | | FALSE | evaluated 30 times by 1 test |
| 3-30 |
| 1894 | , | TRUE | evaluated 3 times by 1 test | | FALSE | evaluated 30 times by 1 test |
| 3-30 |
| 1895 | disk| TRUE | evaluated 3 times by 1 test | | FALSE | evaluated 30 times by 1 test |
| 3-30 |
| 1896 | )))); }) | TRUE | evaluated 3 times by 1 test | | FALSE | evaluated 30 times by 1 test |
| 3-30 |
| 1897 | == 0)| TRUE | evaluated 3 times by 1 test | | FALSE | evaluated 30 times by 1 test |
| 3-30 |
| 1898 | && (! dev_me->me_remote| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 1 time by 1 test |
|| ! me_remote| TRUE | never evaluated | | FALSE | evaluated 1 time by 1 test |
)) | 0-2 |
| 1899 | { | - |
| 1900 | fstype = "-"; | - |
| 1901 | fsu.fsu_bavail_top_bit_set = | - |
| 1902 | 0 | - |
| 1903 | ; | - |
| 1904 | fsu.fsu_blocksize = fsu.fsu_blocks = fsu.fsu_bfree = | - |
| 1905 | fsu.fsu_bavail = fsu.fsu_files = fsu.fsu_ffree = | - |
| 1906 | (18446744073709551615UL) | - |
| 1907 | ; | - |
| 1908 | }executed 2 times by 1 test: end of block | 2 |
| 1909 | }executed 34 times by 1 test: end of block | 34 |
| 1910 | }executed 34 times by 1 test: end of block | 34 |
| 1911 | | - |
| 1912 | if (fsu.fsu_blocks == 0| TRUE | evaluated 297 times by 1 test | | FALSE | evaluated 225 times by 1 test |
&& !show_all_fs| TRUE | evaluated 278 times by 1 test | | FALSE | evaluated 19 times by 1 test |
&& !show_listed_fs| TRUE | evaluated 278 times by 1 test | | FALSE | never evaluated |
) | 0-297 |
| 1913 | return;executed 278 times by 1 test: return; | 278 |
| 1914 | | - |
| 1915 | if (! force_fsu| TRUE | evaluated 238 times by 1 test | | FALSE | evaluated 6 times by 1 test |
) | 6-238 |
| 1916 | file_systems_processed = executed 238 times by 1 test: file_systems_processed = 1 ; | 238 |
| 1917 | 1executed 238 times by 1 test: file_systems_processed = 1 ; | 238 |
| 1918 | ;executed 238 times by 1 test: file_systems_processed = 1 ; | 238 |
| 1919 | | - |
| 1920 | alloc_table_row (); | - |
| 1921 | | - |
| 1922 | if (! disk| TRUE | evaluated 5 times by 1 test | | FALSE | evaluated 239 times by 1 test |
) | 5-239 |
| 1923 | disk = "-";executed 5 times by 1 test: disk = "-"; | 5 |
| 1924 | | - |
| 1925 | if (! file| TRUE | evaluated 202 times by 1 test | | FALSE | evaluated 42 times by 1 test |
) | 42-202 |
| 1926 | file = "-";executed 202 times by 1 test: file = "-"; | 202 |
| 1927 | | - |
| 1928 | char *dev_name = xstrdup (disk); | - |
| 1929 | char *resolved_dev; | - |
| 1930 | | - |
| 1931 | | - |
| 1932 | | - |
| 1933 | | - |
| 1934 | | - |
| 1935 | | - |
| 1936 | | - |
| 1937 | if (process_all| TRUE | evaluated 196 times by 1 test | | FALSE | evaluated 48 times by 1 test |
| 48-196 |
| 1938 | && has_uuid_suffix (dev_name)| TRUE | never evaluated | | FALSE | evaluated 196 times by 1 test |
| 0-196 |
| 1939 | && (| TRUE | never evaluated | | FALSE | never evaluated |
resolved_dev = canonicalize_filename_mode (dev_name, CAN_EXISTING))| TRUE | never evaluated | | FALSE | never evaluated |
) | 0 |
| 1940 | { | - |
| 1941 | free (dev_name); | - |
| 1942 | dev_name = resolved_dev; | - |
| 1943 | } never executed: end of block | 0 |
| 1944 | | - |
| 1945 | if (! fstype| TRUE | evaluated 11 times by 1 test | | FALSE | evaluated 233 times by 1 test |
) | 11-233 |
| 1946 | fstype = "-";executed 11 times by 1 test: fstype = "-"; | 11 |
| 1947 | | - |
| 1948 | struct field_values_t block_values; | - |
| 1949 | struct field_values_t inode_values; | - |
| 1950 | get_field_values (&block_values, &inode_values, &fsu); | - |
| 1951 | | - |
| 1952 | | - |
| 1953 | if (print_grand_total| TRUE | evaluated 26 times by 1 test | | FALSE | evaluated 218 times by 1 test |
&& ! force_fsu| TRUE | evaluated 20 times by 1 test | | FALSE | evaluated 6 times by 1 test |
) | 6-218 |
| 1954 | add_to_grand_total (&block_values, &inode_values);executed 20 times by 1 test: add_to_grand_total (&block_values, &inode_values); | 20 |
| 1955 | | - |
| 1956 | size_t col; | - |
| 1957 | for (col = 0; col < ncolumns| TRUE | evaluated 1326 times by 1 test | | FALSE | evaluated 244 times by 1 test |
; col++) | 244-1326 |
| 1958 | { | - |
| 1959 | char buf[((2 * sizeof (uintmax_t) * 8 * 146 / 485 + 1) * ( | - |
| 1960 | 16 | - |
| 1961 | + 1) - | - |
| 1962 | 16 | - |
| 1963 | + 1 + 3) + 2]; | - |
| 1964 | char *cell; | - |
| 1965 | | - |
| 1966 | struct field_values_t *v; | - |
| 1967 | switch (columns[col]->field_type) | - |
| 1968 | { | - |
| 1969 | caseexecuted 805 times by 1 test: case BLOCK_FLD: BLOCK_FLD:executed 805 times by 1 test: case BLOCK_FLD: | 805 |
| 1970 | v = &block_values; | - |
| 1971 | break;executed 805 times by 1 test: break; | 805 |
| 1972 | caseexecuted 48 times by 1 test: case INODE_FLD: INODE_FLD:executed 48 times by 1 test: case INODE_FLD: | 48 |
| 1973 | v = &inode_values; | - |
| 1974 | break;executed 48 times by 1 test: break; | 48 |
| 1975 | caseexecuted 473 times by 1 test: case OTHER_FLD: OTHER_FLD:executed 473 times by 1 test: case OTHER_FLD: | 473 |
| 1976 | v = | - |
| 1977 | ((void *)0) | - |
| 1978 | ; | - |
| 1979 | break;executed 473 times by 1 test: break; | 473 |
| 1980 | default never executed: default: :never executed: default: | 0 |
| 1981 | v = | - |
| 1982 | ((void *)0) | - |
| 1983 | ; | - |
| 1984 | | - |
| 1985 | (( | - |
| 1986 | !"bad field_type" | - |
| 1987 | ) ? (void) (0) : __assert_fail ( | - |
| 1988 | "!\"bad field_type\"" | - |
| 1989 | , "src/df.c", 1077, __PRETTY_FUNCTION__)) | - |
| 1990 | ; | - |
| 1991 | } never executed: end of block | 0 |
| 1992 | | - |
| 1993 | switch (columns[col]->field) | - |
| 1994 | { | - |
| 1995 | caseexecuted 224 times by 1 test: case SOURCE_FIELD: SOURCE_FIELD:executed 224 times by 1 test: case SOURCE_FIELD: | 224 |
| 1996 | cell = xstrdup (dev_name); | - |
| 1997 | break;executed 224 times by 1 test: break; | 224 |
| 1998 | | - |
| 1999 | caseexecuted 13 times by 1 test: case FSTYPE_FIELD: FSTYPE_FIELD:executed 13 times by 1 test: case FSTYPE_FIELD: | 13 |
| 2000 | cell = xstrdup (fstype); | - |
| 2001 | break;executed 13 times by 1 test: break; | 13 |
| 2002 | | - |
| 2003 | caseexecuted 202 times by 1 test: case SIZE_FIELD: SIZE_FIELD:executed 202 times by 1 test: case SIZE_FIELD: | 202 |
| 2004 | caseexecuted 12 times by 1 test: case ITOTAL_FIELD: ITOTAL_FIELD:executed 12 times by 1 test: case ITOTAL_FIELD: | 12 |
| 2005 | cell = xstrdup (df_readable ( | - |
| 2006 | 0 | - |
| 2007 | , v->total, buf, | - |
| 2008 | v->input_units, v->output_units)); | - |
| 2009 | break;executed 214 times by 1 test: break; | 214 |
| 2010 | | - |
| 2011 | caseexecuted 201 times by 1 test: case USED_FIELD: USED_FIELD:executed 201 times by 1 test: case USED_FIELD: | 201 |
| 2012 | caseexecuted 12 times by 1 test: case IUSED_FIELD: IUSED_FIELD:executed 12 times by 1 test: case IUSED_FIELD: | 12 |
| 2013 | cell = xstrdup (df_readable (v->negate_used, v->used, buf, | - |
| 2014 | v->input_units, v->output_units)); | - |
| 2015 | break;executed 213 times by 1 test: break; | 213 |
| 2016 | | - |
| 2017 | caseexecuted 201 times by 1 test: case AVAIL_FIELD: AVAIL_FIELD:executed 201 times by 1 test: case AVAIL_FIELD: | 201 |
| 2018 | caseexecuted 12 times by 1 test: case IAVAIL_FIELD: IAVAIL_FIELD:executed 12 times by 1 test: case IAVAIL_FIELD: | 12 |
| 2019 | cell = xstrdup (df_readable (v->negate_available, v->available, buf, | - |
| 2020 | v->input_units, v->output_units)); | - |
| 2021 | break;executed 213 times by 1 test: break; | 213 |
| 2022 | | - |
| 2023 | caseexecuted 201 times by 1 test: case PCENT_FIELD: PCENT_FIELD:executed 201 times by 1 test: case PCENT_FIELD: | 201 |
| 2024 | caseexecuted 12 times by 1 test: case IPCENT_FIELD: IPCENT_FIELD:executed 12 times by 1 test: case IPCENT_FIELD: | 12 |
| 2025 | { | - |
| 2026 | double pct = -1; | - |
| 2027 | if (! known_value (v->used)| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 211 times by 1 test |
|| ! known_value (v->available)| TRUE | never evaluated | | FALSE | evaluated 211 times by 1 test |
) | 0-211 |
| 2028 | ;executed 2 times by 1 test: ; | 2 |
| 2029 | else if (!v->negate_used| TRUE | evaluated 211 times by 1 test | | FALSE | never evaluated |
| 0-211 |
| 2030 | && v->used <= ((uintmax_t) (! (! ((uintmax_t) 0 < (uintmax_t) -1)) ? (uintmax_t) -1 : ((((uintmax_t) 1 << ((sizeof (uintmax_t) * 8) - 2)) - 1) * 2 + 1))) / 100| TRUE | evaluated 211 times by 1 test | | FALSE | never evaluated |
| 0-211 |
| 2031 | && v->used + v->available != 0| TRUE | evaluated 192 times by 1 test | | FALSE | evaluated 19 times by 1 test |
| 19-192 |
| 2032 | && (| TRUE | evaluated 192 times by 1 test | | FALSE | never evaluated |
v->used + v->available < v->used)| TRUE | evaluated 192 times by 1 test | | FALSE | never evaluated |
| 0-192 |
| 2033 | == v->negate_available| TRUE | evaluated 192 times by 1 test | | FALSE | never evaluated |
) | 0-192 |
| 2034 | { | - |
| 2035 | uintmax_t u100 = v->used * 100; | - |
| 2036 | uintmax_t nonroot_total = v->used + v->available; | - |
| 2037 | pct = u100 / nonroot_total + (u100 % nonroot_total != 0); | - |
| 2038 | }executed 192 times by 1 test: end of block | 192 |
| 2039 | else | - |
| 2040 | { | - |
| 2041 | | - |
| 2042 | | - |
| 2043 | | - |
| 2044 | | - |
| 2045 | | - |
| 2046 | double u = v->negate_used| TRUE | never evaluated | | FALSE | evaluated 19 times by 1 test |
? - (double) - v->used : v->used; | 0-19 |
| 2047 | double a = v->negate_available| TRUE | never evaluated | | FALSE | evaluated 19 times by 1 test |
| 0-19 |
| 2048 | ? - (double) - v->available : v->available; | - |
| 2049 | double nonroot_total = u + a; | - |
| 2050 | if (nonroot_total| TRUE | never evaluated | | FALSE | evaluated 19 times by 1 test |
) | 0-19 |
| 2051 | { | - |
| 2052 | long int lipct = pct = u * 100 / nonroot_total; | - |
| 2053 | double ipct = lipct; | - |
| 2054 | | - |
| 2055 | | - |
| 2056 | | - |
| 2057 | if (ipct - 1 < pct| TRUE | never evaluated | | FALSE | never evaluated |
&& pct <= ipct + 1| TRUE | never evaluated | | FALSE | never evaluated |
) | 0 |
| 2058 | pct = ipct + (ipct < pct); never executed: pct = ipct + (ipct < pct); | 0 |
| 2059 | } never executed: end of block | 0 |
| 2060 | }executed 19 times by 1 test: end of block | 19 |
| 2061 | | - |
| 2062 | if (0 <= pct| TRUE | evaluated 192 times by 1 test | | FALSE | evaluated 21 times by 1 test |
) | 21-192 |
| 2063 | { | - |
| 2064 | if (asprintf (&cell, "%.0f%%", pct) == -1| TRUE | never evaluated | | FALSE | evaluated 192 times by 1 test |
) | 0-192 |
| 2065 | cell = never executed: cell = ((void *)0) ; | 0 |
| 2066 | ((void *)0) never executed: cell = ((void *)0) ; | 0 |
| 2067 | ; never executed: cell = ((void *)0) ; | 0 |
| 2068 | }executed 192 times by 1 test: end of block | 192 |
| 2069 | else | - |
| 2070 | cell = executed 21 times by 1 test: cell = (__extension__ (__builtin_constant_p ( "-" ) && ((size_t)(const void *)(( "-" ) + 1) - (size_t)(const void *)( "-" ) == 1) ? (((const char *) ( "-" ))[0] == '\0' ? (char *) calloc ((size_t) 1, (size_t) 1) : ({ size_t __len = strlen ( "-" ) + 1; char *__retval = (char *) malloc (__len); if (__retval != ((void *)0)) __retval = (char *) memcpy (__retval, "-" , __len); __retval; })) : __strdup ( "-" ))) ; | 21 |
| 2071 | (__extension__ (__builtin_constant_p (| TRUE | evaluated 21 times by 1 test | | FALSE | never evaluated |
executed 21 times by 1 test: cell = (__extension__ (__builtin_constant_p ( "-" ) && ((size_t)(const void *)(( "-" ) + 1) - (size_t)(const void *)( "-" ) == 1) ? (((const char *) ( "-" ))[0] == '\0' ? (char *) calloc ((size_t) 1, (size_t) 1) : ({ size_t __len = strlen ( "-" ) + 1; char *__retval = (char *) malloc (__len); if (__retval != ((void *)0)) __retval = (char *) memcpy (__retval, "-" , __len); __retval; })) : __strdup ( "-" ))) ; | 0-21 |
| 2072 | "-"| TRUE | evaluated 21 times by 1 test | | FALSE | never evaluated |
executed 21 times by 1 test: cell = (__extension__ (__builtin_constant_p ( "-" ) && ((size_t)(const void *)(( "-" ) + 1) - (size_t)(const void *)( "-" ) == 1) ? (((const char *) ( "-" ))[0] == '\0' ? (char *) calloc ((size_t) 1, (size_t) 1) : ({ size_t __len = strlen ( "-" ) + 1; char *__retval = (char *) malloc (__len); if (__retval != ((void *)0)) __retval = (char *) memcpy (__retval, "-" , __len); __retval; })) : __strdup ( "-" ))) ; | 0-21 |
| 2073 | )| TRUE | evaluated 21 times by 1 test | | FALSE | never evaluated |
&& ((| TRUE | evaluated 21 times by 1 test | | FALSE | never evaluated |
size_t)(const void *)((| TRUE | evaluated 21 times by 1 test | | FALSE | never evaluated |
executed 21 times by 1 test: cell = (__extension__ (__builtin_constant_p ( "-" ) && ((size_t)(const void *)(( "-" ) + 1) - (size_t)(const void *)( "-" ) == 1) ? (((const char *) ( "-" ))[0] == '\0' ? (char *) calloc ((size_t) 1, (size_t) 1) : ({ size_t __len = strlen ( "-" ) + 1; char *__retval = (char *) malloc (__len); if (__retval != ((void *)0)) __retval = (char *) memcpy (__retval, "-" , __len); __retval; })) : __strdup ( "-" ))) ; | 0-21 |
| 2074 | "-"| TRUE | evaluated 21 times by 1 test | | FALSE | never evaluated |
executed 21 times by 1 test: cell = (__extension__ (__builtin_constant_p ( "-" ) && ((size_t)(const void *)(( "-" ) + 1) - (size_t)(const void *)( "-" ) == 1) ? (((const char *) ( "-" ))[0] == '\0' ? (char *) calloc ((size_t) 1, (size_t) 1) : ({ size_t __len = strlen ( "-" ) + 1; char *__retval = (char *) malloc (__len); if (__retval != ((void *)0)) __retval = (char *) memcpy (__retval, "-" , __len); __retval; })) : __strdup ( "-" ))) ; | 0-21 |
| 2075 | ) + 1) - (size_t)(const void *)(| TRUE | evaluated 21 times by 1 test | | FALSE | never evaluated |
executed 21 times by 1 test: cell = (__extension__ (__builtin_constant_p ( "-" ) && ((size_t)(const void *)(( "-" ) + 1) - (size_t)(const void *)( "-" ) == 1) ? (((const char *) ( "-" ))[0] == '\0' ? (char *) calloc ((size_t) 1, (size_t) 1) : ({ size_t __len = strlen ( "-" ) + 1; char *__retval = (char *) malloc (__len); if (__retval != ((void *)0)) __retval = (char *) memcpy (__retval, "-" , __len); __retval; })) : __strdup ( "-" ))) ; | 0-21 |
| 2076 | "-"| TRUE | evaluated 21 times by 1 test | | FALSE | never evaluated |
executed 21 times by 1 test: cell = (__extension__ (__builtin_constant_p ( "-" ) && ((size_t)(const void *)(( "-" ) + 1) - (size_t)(const void *)( "-" ) == 1) ? (((const char *) ( "-" ))[0] == '\0' ? (char *) calloc ((size_t) 1, (size_t) 1) : ({ size_t __len = strlen ( "-" ) + 1; char *__retval = (char *) malloc (__len); if (__retval != ((void *)0)) __retval = (char *) memcpy (__retval, "-" , __len); __retval; })) : __strdup ( "-" ))) ; | 0-21 |
| 2077 | ) == 1)| TRUE | evaluated 21 times by 1 test | | FALSE | never evaluated |
? (((const| TRUE | never evaluated | | FALSE | evaluated 21 times by 1 test |
char *) (| TRUE | never evaluated | | FALSE | evaluated 21 times by 1 test |
executed 21 times by 1 test: cell = (__extension__ (__builtin_constant_p ( "-" ) && ((size_t)(const void *)(( "-" ) + 1) - (size_t)(const void *)( "-" ) == 1) ? (((const char *) ( "-" ))[0] == '\0' ? (char *) calloc ((size_t) 1, (size_t) 1) : ({ size_t __len = strlen ( "-" ) + 1; char *__retval = (char *) malloc (__len); if (__retval != ((void *)0)) __retval = (char *) memcpy (__retval, "-" , __len); __retval; })) : __strdup ( "-" ))) ; | 0-21 |
| 2078 | "-"| TRUE | never evaluated | | FALSE | evaluated 21 times by 1 test |
executed 21 times by 1 test: cell = (__extension__ (__builtin_constant_p ( "-" ) && ((size_t)(const void *)(( "-" ) + 1) - (size_t)(const void *)( "-" ) == 1) ? (((const char *) ( "-" ))[0] == '\0' ? (char *) calloc ((size_t) 1, (size_t) 1) : ({ size_t __len = strlen ( "-" ) + 1; char *__retval = (char *) malloc (__len); if (__retval != ((void *)0)) __retval = (char *) memcpy (__retval, "-" , __len); __retval; })) : __strdup ( "-" ))) ; | 0-21 |
| 2079 | ))[0] == '\0'| TRUE | never evaluated | | FALSE | evaluated 21 times by 1 test |
? (char *) calloc ((size_t) 1, (size_t) 1) : ({ size_t __len = strlen (executed 21 times by 1 test: cell = (__extension__ (__builtin_constant_p ( "-" ) && ((size_t)(const void *)(( "-" ) + 1) - (size_t)(const void *)( "-" ) == 1) ? (((const char *) ( "-" ))[0] == '\0' ? (char *) calloc ((size_t) 1, (size_t) 1) : ({ size_t __len = strlen ( "-" ) + 1; char *__retval = (char *) malloc (__len); if (__retval != ((void *)0)) __retval = (char *) memcpy (__retval, "-" , __len); __retval; })) : __strdup ( "-" ))) ; | 0-21 |
| 2080 | "-"executed 21 times by 1 test: cell = (__extension__ (__builtin_constant_p ( "-" ) && ((size_t)(const void *)(( "-" ) + 1) - (size_t)(const void *)( "-" ) == 1) ? (((const char *) ( "-" ))[0] == '\0' ? (char *) calloc ((size_t) 1, (size_t) 1) : ({ size_t __len = strlen ( "-" ) + 1; char *__retval = (char *) malloc (__len); if (__retval != ((void *)0)) __retval = (char *) memcpy (__retval, "-" , __len); __retval; })) : __strdup ( "-" ))) ; | 21 |
| 2081 | ) + 1; char *__retval = (char *) malloc (__len); if (__retval != ((void *)0)| TRUE | evaluated 21 times by 1 test | | FALSE | never evaluated |
) __retval = (char *) memcpy (__retval, executed 21 times by 1 test: __retval = (char *) memcpy (__retval, "-" , __len); executed 21 times by 1 test: cell = (__extension__ (__builtin_constant_p ( "-" ) && ((size_t)(const void *)(( "-" ) + 1) - (size_t)(const void *)( "-" ) == 1) ? (((const char *) ( "-" ))[0] == '\0' ? (char *) calloc ((size_t) 1, (size_t) 1) : ({ size_t __len = strlen ( "-" ) + 1; char *__retval = (char *) malloc (__len); if (__retval != ((void *)0)) __retval = (char *) memcpy (__retval, "-" , __len); __retval; })) : __strdup ( "-" ))) ; | 0-21 |
| 2082 | "-"executed 21 times by 1 test: __retval = (char *) memcpy (__retval, "-" , __len); executed 21 times by 1 test: cell = (__extension__ (__builtin_constant_p ( "-" ) && ((size_t)(const void *)(( "-" ) + 1) - (size_t)(const void *)( "-" ) == 1) ? (((const char *) ( "-" ))[0] == '\0' ? (char *) calloc ((size_t) 1, (size_t) 1) : ({ size_t __len = strlen ( "-" ) + 1; char *__retval = (char *) malloc (__len); if (__retval != ((void *)0)) __retval = (char *) memcpy (__retval, "-" , __len); __retval; })) : __strdup ( "-" ))) ; | 21 |
| 2083 | , __len);executed 21 times by 1 test: __retval = (char *) memcpy (__retval, "-" , __len); __retval; })) : __strdup (executed 21 times by 1 test: cell = (__extension__ (__builtin_constant_p ( "-" ) && ((size_t)(const void *)(( "-" ) + 1) - (size_t)(const void *)( "-" ) == 1) ? (((const char *) ( "-" ))[0] == '\0' ? (char *) calloc ((size_t) 1, (size_t) 1) : ({ size_t __len = strlen ( "-" ) + 1; char *__retval = (char *) malloc (__len); if (__retval != ((void *)0)) __retval = (char *) memcpy (__retval, "-" , __len); __retval; })) : __strdup ( "-" ))) ; | 21 |
| 2084 | "-"executed 21 times by 1 test: cell = (__extension__ (__builtin_constant_p ( "-" ) && ((size_t)(const void *)(( "-" ) + 1) - (size_t)(const void *)( "-" ) == 1) ? (((const char *) ( "-" ))[0] == '\0' ? (char *) calloc ((size_t) 1, (size_t) 1) : ({ size_t __len = strlen ( "-" ) + 1; char *__retval = (char *) malloc (__len); if (__retval != ((void *)0)) __retval = (char *) memcpy (__retval, "-" , __len); __retval; })) : __strdup ( "-" ))) ; | 21 |
| 2085 | )))executed 21 times by 1 test: cell = (__extension__ (__builtin_constant_p ( "-" ) && ((size_t)(const void *)(( "-" ) + 1) - (size_t)(const void *)( "-" ) == 1) ? (((const char *) ( "-" ))[0] == '\0' ? (char *) calloc ((size_t) 1, (size_t) 1) : ({ size_t __len = strlen ( "-" ) + 1; char *__retval = (char *) malloc (__len); if (__retval != ((void *)0)) __retval = (char *) memcpy (__retval, "-" , __len); __retval; })) : __strdup ( "-" ))) ; | 21 |
| 2086 | ;executed 21 times by 1 test: cell = (__extension__ (__builtin_constant_p ( "-" ) && ((size_t)(const void *)(( "-" ) + 1) - (size_t)(const void *)( "-" ) == 1) ? (((const char *) ( "-" ))[0] == '\0' ? (char *) calloc ((size_t) 1, (size_t) 1) : ({ size_t __len = strlen ( "-" ) + 1; char *__retval = (char *) malloc (__len); if (__retval != ((void *)0)) __retval = (char *) memcpy (__retval, "-" , __len); __retval; })) : __strdup ( "-" ))) ; | 21 |
| 2087 | | - |
| 2088 | if (!cell| TRUE | never evaluated | | FALSE | evaluated 213 times by 1 test |
) | 0-213 |
| 2089 | xalloc_die (); never executed: xalloc_die (); | 0 |
| 2090 | | - |
| 2091 | break;executed 213 times by 1 test: break; | 213 |
| 2092 | } | - |
| 2093 | | - |
| 2094 | caseexecuted 4 times by 1 test: case FILE_FIELD: FILE_FIELD:executed 4 times by 1 test: case FILE_FIELD: | 4 |
| 2095 | cell = xstrdup (file); | - |
| 2096 | break;executed 4 times by 1 test: break; | 4 |
| 2097 | | - |
| 2098 | caseexecuted 232 times by 1 test: case TARGET_FIELD: TARGET_FIELD:executed 232 times by 1 test: case TARGET_FIELD: | 232 |
| 2099 | cell = xstrdup (mount_point); | - |
| 2100 | break;executed 232 times by 1 test: break; | 232 |
| 2101 | | - |
| 2102 | default never executed: default: :never executed: default: | 0 |
| 2103 | | - |
| 2104 | (( | - |
| 2105 | !"unhandled field" | - |
| 2106 | ) ? (void) (0) : __assert_fail ( | - |
| 2107 | "!\"unhandled field\"" | - |
| 2108 | , "src/df.c", 1179, __PRETTY_FUNCTION__)) | - |
| 2109 | ; | - |
| 2110 | } never executed: end of block | 0 |
| 2111 | | - |
| 2112 | if (!cell| TRUE | never evaluated | | FALSE | evaluated 1326 times by 1 test |
) | 0-1326 |
| 2113 | | - |
| 2114 | (( never executed: (( !"empty cell" ) ? (void) (0) : __assert_fail ( "!\"empty cell\"" , "src/df.c", 1183, __PRETTY_FUNCTION__)) ; | 0 |
| 2115 | !"empty cell" never executed: (( !"empty cell" ) ? (void) (0) : __assert_fail ( "!\"empty cell\"" , "src/df.c", 1183, __PRETTY_FUNCTION__)) ; | 0 |
| 2116 | ) ? (void) (0) : __assert_fail ( never executed: (( !"empty cell" ) ? (void) (0) : __assert_fail ( "!\"empty cell\"" , "src/df.c", 1183, __PRETTY_FUNCTION__)) ; | 0 |
| 2117 | "!\"empty cell\"" never executed: (( !"empty cell" ) ? (void) (0) : __assert_fail ( "!\"empty cell\"" , "src/df.c", 1183, __PRETTY_FUNCTION__)) ; | 0 |
| 2118 | , "src/df.c", 1183, __PRETTY_FUNCTION__)) never executed: (( !"empty cell" ) ? (void) (0) : __assert_fail ( "!\"empty cell\"" , "src/df.c", 1183, __PRETTY_FUNCTION__)) ; | 0 |
| 2119 | ; never executed: (( !"empty cell" ) ? (void) (0) : __assert_fail ( "!\"empty cell\"" , "src/df.c", 1183, __PRETTY_FUNCTION__)) ; | 0 |
| 2120 | | - |
| 2121 | hide_problematic_chars (cell); | - |
| 2122 | columns[col]->width = | - |
| 2123 | (((| TRUE | evaluated 1189 times by 1 test | | FALSE | evaluated 137 times by 1 test |
| 137-1189 |
| 2124 | columns[col]->width| TRUE | evaluated 1189 times by 1 test | | FALSE | evaluated 137 times by 1 test |
| 137-1189 |
| 2125 | )>(| TRUE | evaluated 1189 times by 1 test | | FALSE | evaluated 137 times by 1 test |
| 137-1189 |
| 2126 | gnu_mbswidth (cell, 0)| TRUE | evaluated 1189 times by 1 test | | FALSE | evaluated 137 times by 1 test |
| 137-1189 |
| 2127 | ))| TRUE | evaluated 1189 times by 1 test | | FALSE | evaluated 137 times by 1 test |
?( | 137-1189 |
| 2128 | columns[col]->width | - |
| 2129 | ):( | - |
| 2130 | gnu_mbswidth (cell, 0) | - |
| 2131 | )) | - |
| 2132 | ; | - |
| 2133 | table[nrows - 1][col] = cell; | - |
| 2134 | }executed 1326 times by 1 test: end of block | 1326 |
| 2135 | free (dev_name); | - |
| 2136 | }executed 244 times by 1 test: end of block | 244 |
| 2137 | | - |
| 2138 | | - |
| 2139 | | - |
| 2140 | static char * | - |
| 2141 | last_device_for_mount (char const* mount) | - |
| 2142 | { | - |
| 2143 | struct mount_entry const *me; | - |
| 2144 | struct mount_entry const *le = | - |
| 2145 | ((void *)0) | - |
| 2146 | ; | - |
| 2147 | | - |
| 2148 | for (me = mount_list; me| TRUE | evaluated 52 times by 1 test | | FALSE | evaluated 2 times by 1 test |
; me = me->me_next) | 2-52 |
| 2149 | { | - |
| 2150 | if ((| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 50 times by 1 test |
| 2-50 |
| 2151 | __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 50 times by 1 test |
| 2-50 |
| 2152 | me->me_mountdir| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 50 times by 1 test |
| 2-50 |
| 2153 | ) && __builtin_constant_p (| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 50 times by 1 test |
| 2-50 |
| 2154 | mount| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 50 times by 1 test |
| 2-50 |
| 2155 | ) && (__s1_len = __builtin_strlen (| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 50 times by 1 test |
| 2-50 |
| 2156 | me->me_mountdir| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 50 times by 1 test |
| 2-50 |
| 2157 | ), __s2_len = __builtin_strlen (| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 50 times by 1 test |
| 2-50 |
| 2158 | mount| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 50 times by 1 test |
| 2-50 |
| 2159 | ), (!((size_t)(const void *)((| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 50 times by 1 test |
| 2-50 |
| 2160 | me->me_mountdir| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 50 times by 1 test |
| 2-50 |
| 2161 | ) + 1) - (size_t)(const void *)(| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 50 times by 1 test |
| 2-50 |
| 2162 | me->me_mountdir| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 50 times by 1 test |
| 2-50 |
| 2163 | ) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 50 times by 1 test |
| 2-50 |
| 2164 | mount| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 50 times by 1 test |
| 2-50 |
| 2165 | ) + 1) - (size_t)(const void *)(| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 50 times by 1 test |
| 2-50 |
| 2166 | mount| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 50 times by 1 test |
| 2-50 |
| 2167 | ) == 1) || __s2_len >= 4)) ? __builtin_strcmp (| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 50 times by 1 test |
| 2-50 |
| 2168 | me->me_mountdir| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 50 times by 1 test |
| 2-50 |
| 2169 | , | TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 50 times by 1 test |
| 2-50 |
| 2170 | mount| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 50 times by 1 test |
| 2-50 |
| 2171 | ) : (__builtin_constant_p (| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 50 times by 1 test |
| 2-50 |
| 2172 | me->me_mountdir| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 50 times by 1 test |
| 2-50 |
| 2173 | ) && ((size_t)(const void *)((| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 50 times by 1 test |
| 2-50 |
| 2174 | me->me_mountdir| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 50 times by 1 test |
| 2-50 |
| 2175 | ) + 1) - (size_t)(const void *)(| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 50 times by 1 test |
| 2-50 |
| 2176 | me->me_mountdir| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 50 times by 1 test |
| 2-50 |
| 2177 | ) == 1) && (__s1_len = __builtin_strlen (| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 50 times by 1 test |
| 2-50 |
| 2178 | me->me_mountdir| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 50 times by 1 test |
| 2-50 |
| 2179 | ), __s1_len < 4) ? (__builtin_constant_p (| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 50 times by 1 test |
| 2-50 |
| 2180 | mount| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 50 times by 1 test |
| 2-50 |
| 2181 | ) && ((size_t)(const void *)((| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 50 times by 1 test |
| 2-50 |
| 2182 | mount| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 50 times by 1 test |
| 2-50 |
| 2183 | ) + 1) - (size_t)(const void *)(| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 50 times by 1 test |
| 2-50 |
| 2184 | mount| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 50 times by 1 test |
| 2-50 |
| 2185 | ) == 1) ? __builtin_strcmp (| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 50 times by 1 test |
| 2-50 |
| 2186 | me->me_mountdir| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 50 times by 1 test |
| 2-50 |
| 2187 | , | TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 50 times by 1 test |
| 2-50 |
| 2188 | mount| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 50 times by 1 test |
| 2-50 |
| 2189 | ) : (__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 50 times by 1 test |
| 2-50 |
| 2190 | mount| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 50 times by 1 test |
| 2-50 |
| 2191 | ); int __result = (((const unsigned char *) (const char *) (| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 50 times by 1 test |
| 2-50 |
| 2192 | me->me_mountdir| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 50 times by 1 test |
| 2-50 |
| 2193 | ))[0] - __s2[0]); if (__s1_len > 0| TRUE | never evaluated | | FALSE | never evaluated |
&& __result == 0| TRUE | never evaluated | | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 50 times by 1 test |
| 0-50 |
| 2194 | me->me_mountdir| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 50 times by 1 test |
| 2-50 |
| 2195 | ))[1] - __s2[1]); if (__s1_len > 1| TRUE | never evaluated | | FALSE | never evaluated |
&& __result == 0| TRUE | never evaluated | | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 50 times by 1 test |
| 0-50 |
| 2196 | me->me_mountdir| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 50 times by 1 test |
| 2-50 |
| 2197 | ))[2] - __s2[2]); if (__s1_len > 2| TRUE | never evaluated | | FALSE | never evaluated |
&& __result == 0| TRUE | never evaluated | | FALSE | never evaluated |
) __result = (((const unsigned char *) (const char *) (never executed: __result = (((const unsigned char *) (const char *) ( me->me_mountdir ))[3] - __s2[3]); | TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 50 times by 1 test |
| 0-50 |
| 2198 | me->me_mountdir| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 50 times by 1 test |
never executed: __result = (((const unsigned char *) (const char *) ( me->me_mountdir ))[3] - __s2[3]); | 0-50 |
| 2199 | ))[3] - __s2[3]);| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 50 times by 1 test |
never executed: __result = (((const unsigned char *) (const char *) ( me->me_mountdir ))[3] - __s2[3]); }never executed: end of block }never executed: end of block __result; }))) : (__builtin_constant_p (| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 50 times by 1 test |
| 0-50 |
| 2200 | mount| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 50 times by 1 test |
| 2-50 |
| 2201 | ) && ((size_t)(const void *)((| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 50 times by 1 test |
| 2-50 |
| 2202 | mount| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 50 times by 1 test |
| 2-50 |
| 2203 | ) + 1) - (size_t)(const void *)(| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 50 times by 1 test |
| 2-50 |
| 2204 | mount| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 50 times by 1 test |
| 2-50 |
| 2205 | ) == 1) && (__s2_len = __builtin_strlen (| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 50 times by 1 test |
| 2-50 |
| 2206 | mount| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 50 times by 1 test |
| 2-50 |
| 2207 | ), __s2_len < 4) ? (__builtin_constant_p (| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 50 times by 1 test |
| 2-50 |
| 2208 | me->me_mountdir| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 50 times by 1 test |
| 2-50 |
| 2209 | ) && ((size_t)(const void *)((| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 50 times by 1 test |
| 2-50 |
| 2210 | me->me_mountdir| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 50 times by 1 test |
| 2-50 |
| 2211 | ) + 1) - (size_t)(const void *)(| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 50 times by 1 test |
| 2-50 |
| 2212 | me->me_mountdir| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 50 times by 1 test |
| 2-50 |
| 2213 | ) == 1) ? __builtin_strcmp (| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 50 times by 1 test |
| 2-50 |
| 2214 | me->me_mountdir| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 50 times by 1 test |
| 2-50 |
| 2215 | , | TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 50 times by 1 test |
| 2-50 |
| 2216 | mount| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 50 times by 1 test |
| 2-50 |
| 2217 | ) : -(__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 50 times by 1 test |
| 2-50 |
| 2218 | me->me_mountdir| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 50 times by 1 test |
| 2-50 |
| 2219 | ); int __result = (((const unsigned char *) (const char *) (| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 50 times by 1 test |
| 2-50 |
| 2220 | mount| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 50 times by 1 test |
| 2-50 |
| 2221 | ))[0] - __s2[0]); if (__s2_len > 0| TRUE | never evaluated | | FALSE | never evaluated |
&& __result == 0| TRUE | never evaluated | | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 50 times by 1 test |
| 0-50 |
| 2222 | mount| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 50 times by 1 test |
| 2-50 |
| 2223 | ))[1] - __s2[1]); if (__s2_len > 1| TRUE | never evaluated | | FALSE | never evaluated |
&& __result == 0| TRUE | never evaluated | | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 50 times by 1 test |
| 0-50 |
| 2224 | mount| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 50 times by 1 test |
| 2-50 |
| 2225 | ))[2] - __s2[2]); if (__s2_len > 2| TRUE | never evaluated | | FALSE | never evaluated |
&& __result == 0| TRUE | never evaluated | | FALSE | never evaluated |
) __result = (((const unsigned char *) (const char *) (never executed: __result = (((const unsigned char *) (const char *) ( mount ))[3] - __s2[3]); | TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 50 times by 1 test |
| 0-50 |
| 2226 | mount| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 50 times by 1 test |
never executed: __result = (((const unsigned char *) (const char *) ( mount ))[3] - __s2[3]); | 0-50 |
| 2227 | ))[3] - __s2[3]);| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 50 times by 1 test |
never executed: __result = (((const unsigned char *) (const char *) ( mount ))[3] - __s2[3]); }never executed: end of block }never executed: end of block __result; }))) : __builtin_strcmp (| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 50 times by 1 test |
| 0-50 |
| 2228 | me->me_mountdir| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 50 times by 1 test |
| 2-50 |
| 2229 | , | TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 50 times by 1 test |
| 2-50 |
| 2230 | mount| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 50 times by 1 test |
| 2-50 |
| 2231 | )))); }) | TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 50 times by 1 test |
| 2-50 |
| 2232 | == 0)| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 50 times by 1 test |
) | 2-50 |
| 2233 | le = me;executed 2 times by 1 test: le = me; | 2 |
| 2234 | }executed 52 times by 1 test: end of block | 52 |
| 2235 | | - |
| 2236 | if (le| TRUE | evaluated 2 times by 1 test | | FALSE | never evaluated |
) | 0-2 |
| 2237 | { | - |
| 2238 | char *devname = le->me_devname; | - |
| 2239 | char *canon_dev = canonicalize_file_name (devname); | - |
| 2240 | if (canon_dev| TRUE | evaluated 2 times by 1 test | | FALSE | never evaluated |
&& ((((| TRUE | evaluated 2 times by 1 test | | FALSE | never evaluated |
canon_dev)[0]) == '/')| TRUE | evaluated 2 times by 1 test | | FALSE | never evaluated |
|| 0 != 0| TRUE | never evaluated | | FALSE | never evaluated |
)) | 0-2 |
| 2241 | returnexecuted 2 times by 1 test: return canon_dev; canon_dev;executed 2 times by 1 test: return canon_dev; | 2 |
| 2242 | free (canon_dev); | - |
| 2243 | return never executed: return xstrdup (le->me_devname); xstrdup (le->me_devname);never executed: return xstrdup (le->me_devname); | 0 |
| 2244 | } | - |
| 2245 | else | - |
| 2246 | return never executed: return ((void *)0) ; never executed: return ((void *)0) ; | 0 |
| 2247 | ((void *)0) never executed: return ((void *)0) ; | 0 |
| 2248 | ; never executed: return ((void *)0) ; | 0 |
| 2249 | } | - |
| 2250 | | - |
| 2251 | | - |
| 2252 | | - |
| 2253 | static | - |
| 2254 | _Bool | - |
| 2255 | | - |
| 2256 | get_disk (char const *disk) | - |
| 2257 | { | - |
| 2258 | struct mount_entry const *me; | - |
| 2259 | struct mount_entry const *best_match = | - |
| 2260 | ((void *)0) | - |
| 2261 | ; | - |
| 2262 | | - |
| 2263 | _Bool | - |
| 2264 | best_match_accessible = | - |
| 2265 | 0 | - |
| 2266 | ; | - |
| 2267 | | - |
| 2268 | _Bool | - |
| 2269 | eclipsed_device = | - |
| 2270 | 0 | - |
| 2271 | ; | - |
| 2272 | char const *file = disk; | - |
| 2273 | | - |
| 2274 | char *resolved = canonicalize_file_name (disk); | - |
| 2275 | if (resolved| TRUE | evaluated 2 times by 1 test | | FALSE | never evaluated |
&& ((((| TRUE | evaluated 2 times by 1 test | | FALSE | never evaluated |
resolved)[0]) == '/')| TRUE | evaluated 2 times by 1 test | | FALSE | never evaluated |
|| 0 != 0| TRUE | never evaluated | | FALSE | never evaluated |
)) | 0-2 |
| 2276 | disk = resolved;executed 2 times by 1 test: disk = resolved; | 2 |
| 2277 | | - |
| 2278 | size_t best_match_len = | - |
| 2279 | (18446744073709551615UL) | - |
| 2280 | ; | - |
| 2281 | for (me = mount_list; me| TRUE | evaluated 12 times by 1 test | | FALSE | never evaluated |
; me = me->me_next) | 0-12 |
| 2282 | { | - |
| 2283 | | - |
| 2284 | char *devname = me->me_devname; | - |
| 2285 | char *canon_dev = canonicalize_file_name (me->me_devname); | - |
| 2286 | if (canon_dev| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 10 times by 1 test |
&& ((((| TRUE | evaluated 2 times by 1 test | | FALSE | never evaluated |
canon_dev)[0]) == '/')| TRUE | evaluated 2 times by 1 test | | FALSE | never evaluated |
|| 0 != 0| TRUE | never evaluated | | FALSE | never evaluated |
)) | 0-10 |
| 2287 | devname = canon_dev;executed 2 times by 1 test: devname = canon_dev; | 2 |
| 2288 | | - |
| 2289 | if ((| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 10 times by 1 test |
| 2-10 |
| 2290 | __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 10 times by 1 test |
| 2-10 |
| 2291 | disk| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 10 times by 1 test |
| 2-10 |
| 2292 | ) && __builtin_constant_p (| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 10 times by 1 test |
| 2-10 |
| 2293 | devname| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 10 times by 1 test |
| 2-10 |
| 2294 | ) && (__s1_len = __builtin_strlen (| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 10 times by 1 test |
| 2-10 |
| 2295 | disk| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 10 times by 1 test |
| 2-10 |
| 2296 | ), __s2_len = __builtin_strlen (| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 10 times by 1 test |
| 2-10 |
| 2297 | devname| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 10 times by 1 test |
| 2-10 |
| 2298 | ), (!((size_t)(const void *)((| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 10 times by 1 test |
| 2-10 |
| 2299 | disk| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 10 times by 1 test |
| 2-10 |
| 2300 | ) + 1) - (size_t)(const void *)(| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 10 times by 1 test |
| 2-10 |
| 2301 | disk| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 10 times by 1 test |
| 2-10 |
| 2302 | ) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 10 times by 1 test |
| 2-10 |
| 2303 | devname| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 10 times by 1 test |
| 2-10 |
| 2304 | ) + 1) - (size_t)(const void *)(| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 10 times by 1 test |
| 2-10 |
| 2305 | devname| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 10 times by 1 test |
| 2-10 |
| 2306 | ) == 1) || __s2_len >= 4)) ? __builtin_strcmp (| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 10 times by 1 test |
| 2-10 |
| 2307 | disk| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 10 times by 1 test |
| 2-10 |
| 2308 | , | TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 10 times by 1 test |
| 2-10 |
| 2309 | devname| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 10 times by 1 test |
| 2-10 |
| 2310 | ) : (__builtin_constant_p (| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 10 times by 1 test |
| 2-10 |
| 2311 | disk| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 10 times by 1 test |
| 2-10 |
| 2312 | ) && ((size_t)(const void *)((| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 10 times by 1 test |
| 2-10 |
| 2313 | disk| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 10 times by 1 test |
| 2-10 |
| 2314 | ) + 1) - (size_t)(const void *)(| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 10 times by 1 test |
| 2-10 |
| 2315 | disk| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 10 times by 1 test |
| 2-10 |
| 2316 | ) == 1) && (__s1_len = __builtin_strlen (| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 10 times by 1 test |
| 2-10 |
| 2317 | disk| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 10 times by 1 test |
| 2-10 |
| 2318 | ), __s1_len < 4) ? (__builtin_constant_p (| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 10 times by 1 test |
| 2-10 |
| 2319 | devname| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 10 times by 1 test |
| 2-10 |
| 2320 | ) && ((size_t)(const void *)((| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 10 times by 1 test |
| 2-10 |
| 2321 | devname| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 10 times by 1 test |
| 2-10 |
| 2322 | ) + 1) - (size_t)(const void *)(| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 10 times by 1 test |
| 2-10 |
| 2323 | devname| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 10 times by 1 test |
| 2-10 |
| 2324 | ) == 1) ? __builtin_strcmp (| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 10 times by 1 test |
| 2-10 |
| 2325 | disk| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 10 times by 1 test |
| 2-10 |
| 2326 | , | TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 10 times by 1 test |
| 2-10 |
| 2327 | devname| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 10 times by 1 test |
| 2-10 |
| 2328 | ) : (__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 10 times by 1 test |
| 2-10 |
| 2329 | devname| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 10 times by 1 test |
| 2-10 |
| 2330 | ); int __result = (((const unsigned char *) (const char *) (| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 10 times by 1 test |
| 2-10 |
| 2331 | disk| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 10 times by 1 test |
| 2-10 |
| 2332 | ))[0] - __s2[0]); if (__s1_len > 0| TRUE | never evaluated | | FALSE | never evaluated |
&& __result == 0| TRUE | never evaluated | | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 10 times by 1 test |
| 0-10 |
| 2333 | disk| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 10 times by 1 test |
| 2-10 |
| 2334 | ))[1] - __s2[1]); if (__s1_len > 1| TRUE | never evaluated | | FALSE | never evaluated |
&& __result == 0| TRUE | never evaluated | | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 10 times by 1 test |
| 0-10 |
| 2335 | disk| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 10 times by 1 test |
| 2-10 |
| 2336 | ))[2] - __s2[2]); if (__s1_len > 2| TRUE | never evaluated | | FALSE | never evaluated |
&& __result == 0| TRUE | never evaluated | | FALSE | never evaluated |
) __result = (((const unsigned char *) (const char *) (never executed: __result = (((const unsigned char *) (const char *) ( disk ))[3] - __s2[3]); | TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 10 times by 1 test |
| 0-10 |
| 2337 | disk| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 10 times by 1 test |
never executed: __result = (((const unsigned char *) (const char *) ( disk ))[3] - __s2[3]); | 0-10 |
| 2338 | ))[3] - __s2[3]);| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 10 times by 1 test |
never executed: __result = (((const unsigned char *) (const char *) ( disk ))[3] - __s2[3]); }never executed: end of block }never executed: end of block __result; }))) : (__builtin_constant_p (| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 10 times by 1 test |
| 0-10 |
| 2339 | devname| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 10 times by 1 test |
| 2-10 |
| 2340 | ) && ((size_t)(const void *)((| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 10 times by 1 test |
| 2-10 |
| 2341 | devname| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 10 times by 1 test |
| 2-10 |
| 2342 | ) + 1) - (size_t)(const void *)(| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 10 times by 1 test |
| 2-10 |
| 2343 | devname| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 10 times by 1 test |
| 2-10 |
| 2344 | ) == 1) && (__s2_len = __builtin_strlen (| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 10 times by 1 test |
| 2-10 |
| 2345 | devname| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 10 times by 1 test |
| 2-10 |
| 2346 | ), __s2_len < 4) ? (__builtin_constant_p (| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 10 times by 1 test |
| 2-10 |
| 2347 | disk| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 10 times by 1 test |
| 2-10 |
| 2348 | ) && ((size_t)(const void *)((| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 10 times by 1 test |
| 2-10 |
| 2349 | disk| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 10 times by 1 test |
| 2-10 |
| 2350 | ) + 1) - (size_t)(const void *)(| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 10 times by 1 test |
| 2-10 |
| 2351 | disk| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 10 times by 1 test |
| 2-10 |
| 2352 | ) == 1) ? __builtin_strcmp (| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 10 times by 1 test |
| 2-10 |
| 2353 | disk| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 10 times by 1 test |
| 2-10 |
| 2354 | , | TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 10 times by 1 test |
| 2-10 |
| 2355 | devname| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 10 times by 1 test |
| 2-10 |
| 2356 | ) : -(__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 10 times by 1 test |
| 2-10 |
| 2357 | disk| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 10 times by 1 test |
| 2-10 |
| 2358 | ); int __result = (((const unsigned char *) (const char *) (| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 10 times by 1 test |
| 2-10 |
| 2359 | devname| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 10 times by 1 test |
| 2-10 |
| 2360 | ))[0] - __s2[0]); if (__s2_len > 0| TRUE | never evaluated | | FALSE | never evaluated |
&& __result == 0| TRUE | never evaluated | | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 10 times by 1 test |
| 0-10 |
| 2361 | devname| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 10 times by 1 test |
| 2-10 |
| 2362 | ))[1] - __s2[1]); if (__s2_len > 1| TRUE | never evaluated | | FALSE | never evaluated |
&& __result == 0| TRUE | never evaluated | | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 10 times by 1 test |
| 0-10 |
| 2363 | devname| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 10 times by 1 test |
| 2-10 |
| 2364 | ))[2] - __s2[2]); if (__s2_len > 2| TRUE | never evaluated | | FALSE | never evaluated |
&& __result == 0| TRUE | never evaluated | | FALSE | never evaluated |
) __result = (((const unsigned char *) (const char *) (never executed: __result = (((const unsigned char *) (const char *) ( devname ))[3] - __s2[3]); | TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 10 times by 1 test |
| 0-10 |
| 2365 | devname| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 10 times by 1 test |
never executed: __result = (((const unsigned char *) (const char *) ( devname ))[3] - __s2[3]); | 0-10 |
| 2366 | ))[3] - __s2[3]);| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 10 times by 1 test |
never executed: __result = (((const unsigned char *) (const char *) ( devname ))[3] - __s2[3]); }never executed: end of block }never executed: end of block __result; }))) : __builtin_strcmp (| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 10 times by 1 test |
| 0-10 |
| 2367 | disk| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 10 times by 1 test |
| 2-10 |
| 2368 | , | TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 10 times by 1 test |
| 2-10 |
| 2369 | devname| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 10 times by 1 test |
| 2-10 |
| 2370 | )))); }) | TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 10 times by 1 test |
| 2-10 |
| 2371 | == 0)| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 10 times by 1 test |
) | 2-10 |
| 2372 | { | - |
| 2373 | char *last_device = last_device_for_mount (me->me_mountdir); | - |
| 2374 | eclipsed_device = last_device| TRUE | evaluated 2 times by 1 test | | FALSE | never evaluated |
&& ! (| TRUE | never evaluated | | FALSE | evaluated 2 times by 1 test |
| 0-2 |
| 2375 | __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (| TRUE | never evaluated | | FALSE | evaluated 2 times by 1 test |
| 0-2 |
| 2376 | last_device| TRUE | never evaluated | | FALSE | evaluated 2 times by 1 test |
| 0-2 |
| 2377 | ) && __builtin_constant_p (| TRUE | never evaluated | | FALSE | evaluated 2 times by 1 test |
| 0-2 |
| 2378 | devname| TRUE | never evaluated | | FALSE | evaluated 2 times by 1 test |
| 0-2 |
| 2379 | ) && (__s1_len = __builtin_strlen (| TRUE | never evaluated | | FALSE | evaluated 2 times by 1 test |
| 0-2 |
| 2380 | last_device| TRUE | never evaluated | | FALSE | evaluated 2 times by 1 test |
| 0-2 |
| 2381 | ), __s2_len = __builtin_strlen (| TRUE | never evaluated | | FALSE | evaluated 2 times by 1 test |
| 0-2 |
| 2382 | devname| TRUE | never evaluated | | FALSE | evaluated 2 times by 1 test |
| 0-2 |
| 2383 | ), (!((size_t)(const void *)((| TRUE | never evaluated | | FALSE | evaluated 2 times by 1 test |
| 0-2 |
| 2384 | last_device| TRUE | never evaluated | | FALSE | evaluated 2 times by 1 test |
| 0-2 |
| 2385 | ) + 1) - (size_t)(const void *)(| TRUE | never evaluated | | FALSE | evaluated 2 times by 1 test |
| 0-2 |
| 2386 | last_device| TRUE | never evaluated | | FALSE | evaluated 2 times by 1 test |
| 0-2 |
| 2387 | ) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((| TRUE | never evaluated | | FALSE | evaluated 2 times by 1 test |
| 0-2 |
| 2388 | devname| TRUE | never evaluated | | FALSE | evaluated 2 times by 1 test |
| 0-2 |
| 2389 | ) + 1) - (size_t)(const void *)(| TRUE | never evaluated | | FALSE | evaluated 2 times by 1 test |
| 0-2 |
| 2390 | devname| TRUE | never evaluated | | FALSE | evaluated 2 times by 1 test |
| 0-2 |
| 2391 | ) == 1) || __s2_len >= 4)) ? __builtin_strcmp (| TRUE | never evaluated | | FALSE | evaluated 2 times by 1 test |
| 0-2 |
| 2392 | last_device| TRUE | never evaluated | | FALSE | evaluated 2 times by 1 test |
| 0-2 |
| 2393 | , | TRUE | never evaluated | | FALSE | evaluated 2 times by 1 test |
| 0-2 |
| 2394 | devname| TRUE | never evaluated | | FALSE | evaluated 2 times by 1 test |
| 0-2 |
| 2395 | ) : (__builtin_constant_p (| TRUE | never evaluated | | FALSE | evaluated 2 times by 1 test |
| 0-2 |
| 2396 | last_device| TRUE | never evaluated | | FALSE | evaluated 2 times by 1 test |
| 0-2 |
| 2397 | ) && ((size_t)(const void *)((| TRUE | never evaluated | | FALSE | evaluated 2 times by 1 test |
| 0-2 |
| 2398 | last_device| TRUE | never evaluated | | FALSE | evaluated 2 times by 1 test |
| 0-2 |
| 2399 | ) + 1) - (size_t)(const void *)(| TRUE | never evaluated | | FALSE | evaluated 2 times by 1 test |
| 0-2 |
| 2400 | last_device| TRUE | never evaluated | | FALSE | evaluated 2 times by 1 test |
| 0-2 |
| 2401 | ) == 1) && (__s1_len = __builtin_strlen (| TRUE | never evaluated | | FALSE | evaluated 2 times by 1 test |
| 0-2 |
| 2402 | last_device| TRUE | never evaluated | | FALSE | evaluated 2 times by 1 test |
| 0-2 |
| 2403 | ), __s1_len < 4) ? (__builtin_constant_p (| TRUE | never evaluated | | FALSE | evaluated 2 times by 1 test |
| 0-2 |
| 2404 | devname| TRUE | never evaluated | | FALSE | evaluated 2 times by 1 test |
| 0-2 |
| 2405 | ) && ((size_t)(const void *)((| TRUE | never evaluated | | FALSE | evaluated 2 times by 1 test |
| 0-2 |
| 2406 | devname| TRUE | never evaluated | | FALSE | evaluated 2 times by 1 test |
| 0-2 |
| 2407 | ) + 1) - (size_t)(const void *)(| TRUE | never evaluated | | FALSE | evaluated 2 times by 1 test |
| 0-2 |
| 2408 | devname| TRUE | never evaluated | | FALSE | evaluated 2 times by 1 test |
| 0-2 |
| 2409 | ) == 1) ? __builtin_strcmp (| TRUE | never evaluated | | FALSE | evaluated 2 times by 1 test |
| 0-2 |
| 2410 | last_device| TRUE | never evaluated | | FALSE | evaluated 2 times by 1 test |
| 0-2 |
| 2411 | , | TRUE | never evaluated | | FALSE | evaluated 2 times by 1 test |
| 0-2 |
| 2412 | devname| TRUE | never evaluated | | FALSE | evaluated 2 times by 1 test |
| 0-2 |
| 2413 | ) : (__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (| TRUE | never evaluated | | FALSE | evaluated 2 times by 1 test |
| 0-2 |
| 2414 | devname| TRUE | never evaluated | | FALSE | evaluated 2 times by 1 test |
| 0-2 |
| 2415 | ); int __result = (((const unsigned char *) (const char *) (| TRUE | never evaluated | | FALSE | evaluated 2 times by 1 test |
| 0-2 |
| 2416 | last_device| TRUE | never evaluated | | FALSE | evaluated 2 times by 1 test |
| 0-2 |
| 2417 | ))[0] - __s2[0]); if (__s1_len > 0| TRUE | never evaluated | | FALSE | never evaluated |
&& __result == 0| TRUE | never evaluated | | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (| TRUE | never evaluated | | FALSE | evaluated 2 times by 1 test |
| 0-2 |
| 2418 | last_device| TRUE | never evaluated | | FALSE | evaluated 2 times by 1 test |
| 0-2 |
| 2419 | ))[1] - __s2[1]); if (__s1_len > 1| TRUE | never evaluated | | FALSE | never evaluated |
&& __result == 0| TRUE | never evaluated | | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (| TRUE | never evaluated | | FALSE | evaluated 2 times by 1 test |
| 0-2 |
| 2420 | last_device| TRUE | never evaluated | | FALSE | evaluated 2 times by 1 test |
| 0-2 |
| 2421 | ))[2] - __s2[2]); if (__s1_len > 2| TRUE | never evaluated | | FALSE | never evaluated |
&& __result == 0| TRUE | never evaluated | | FALSE | never evaluated |
) __result = (((const unsigned char *) (const char *) (never executed: __result = (((const unsigned char *) (const char *) ( last_device ))[3] - __s2[3]); | TRUE | never evaluated | | FALSE | evaluated 2 times by 1 test |
| 0-2 |
| 2422 | last_device| TRUE | never evaluated | | FALSE | evaluated 2 times by 1 test |
never executed: __result = (((const unsigned char *) (const char *) ( last_device ))[3] - __s2[3]); | 0-2 |
| 2423 | ))[3] - __s2[3]);| TRUE | never evaluated | | FALSE | evaluated 2 times by 1 test |
never executed: __result = (((const unsigned char *) (const char *) ( last_device ))[3] - __s2[3]); }never executed: end of block }never executed: end of block __result; }))) : (__builtin_constant_p (| TRUE | never evaluated | | FALSE | evaluated 2 times by 1 test |
| 0-2 |
| 2424 | devname| TRUE | never evaluated | | FALSE | evaluated 2 times by 1 test |
| 0-2 |
| 2425 | ) && ((size_t)(const void *)((| TRUE | never evaluated | | FALSE | evaluated 2 times by 1 test |
| 0-2 |
| 2426 | devname| TRUE | never evaluated | | FALSE | evaluated 2 times by 1 test |
| 0-2 |
| 2427 | ) + 1) - (size_t)(const void *)(| TRUE | never evaluated | | FALSE | evaluated 2 times by 1 test |
| 0-2 |
| 2428 | devname| TRUE | never evaluated | | FALSE | evaluated 2 times by 1 test |
| 0-2 |
| 2429 | ) == 1) && (__s2_len = __builtin_strlen (| TRUE | never evaluated | | FALSE | evaluated 2 times by 1 test |
| 0-2 |
| 2430 | devname| TRUE | never evaluated | | FALSE | evaluated 2 times by 1 test |
| 0-2 |
| 2431 | ), __s2_len < 4) ? (__builtin_constant_p (| TRUE | never evaluated | | FALSE | evaluated 2 times by 1 test |
| 0-2 |
| 2432 | last_device| TRUE | never evaluated | | FALSE | evaluated 2 times by 1 test |
| 0-2 |
| 2433 | ) && ((size_t)(const void *)((| TRUE | never evaluated | | FALSE | evaluated 2 times by 1 test |
| 0-2 |
| 2434 | last_device| TRUE | never evaluated | | FALSE | evaluated 2 times by 1 test |
| 0-2 |
| 2435 | ) + 1) - (size_t)(const void *)(| TRUE | never evaluated | | FALSE | evaluated 2 times by 1 test |
| 0-2 |
| 2436 | last_device| TRUE | never evaluated | | FALSE | evaluated 2 times by 1 test |
| 0-2 |
| 2437 | ) == 1) ? __builtin_strcmp (| TRUE | never evaluated | | FALSE | evaluated 2 times by 1 test |
| 0-2 |
| 2438 | last_device| TRUE | never evaluated | | FALSE | evaluated 2 times by 1 test |
| 0-2 |
| 2439 | , | TRUE | never evaluated | | FALSE | evaluated 2 times by 1 test |
| 0-2 |
| 2440 | devname| TRUE | never evaluated | | FALSE | evaluated 2 times by 1 test |
| 0-2 |
| 2441 | ) : -(__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (| TRUE | never evaluated | | FALSE | evaluated 2 times by 1 test |
| 0-2 |
| 2442 | last_device| TRUE | never evaluated | | FALSE | evaluated 2 times by 1 test |
| 0-2 |
| 2443 | ); int __result = (((const unsigned char *) (const char *) (| TRUE | never evaluated | | FALSE | evaluated 2 times by 1 test |
| 0-2 |
| 2444 | devname| TRUE | never evaluated | | FALSE | evaluated 2 times by 1 test |
| 0-2 |
| 2445 | ))[0] - __s2[0]); if (__s2_len > 0| TRUE | never evaluated | | FALSE | never evaluated |
&& __result == 0| TRUE | never evaluated | | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (| TRUE | never evaluated | | FALSE | evaluated 2 times by 1 test |
| 0-2 |
| 2446 | devname| TRUE | never evaluated | | FALSE | evaluated 2 times by 1 test |
| 0-2 |
| 2447 | ))[1] - __s2[1]); if (__s2_len > 1| TRUE | never evaluated | | FALSE | never evaluated |
&& __result == 0| TRUE | never evaluated | | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (| TRUE | never evaluated | | FALSE | evaluated 2 times by 1 test |
| 0-2 |
| 2448 | devname| TRUE | never evaluated | | FALSE | evaluated 2 times by 1 test |
| 0-2 |
| 2449 | ))[2] - __s2[2]); if (__s2_len > 2| TRUE | never evaluated | | FALSE | never evaluated |
&& __result == 0| TRUE | never evaluated | | FALSE | never evaluated |
) __result = (((const unsigned char *) (const char *) (never executed: __result = (((const unsigned char *) (const char *) ( devname ))[3] - __s2[3]); | TRUE | never evaluated | | FALSE | evaluated 2 times by 1 test |
| 0-2 |
| 2450 | devname| TRUE | never evaluated | | FALSE | evaluated 2 times by 1 test |
never executed: __result = (((const unsigned char *) (const char *) ( devname ))[3] - __s2[3]); | 0-2 |
| 2451 | ))[3] - __s2[3]);| TRUE | never evaluated | | FALSE | evaluated 2 times by 1 test |
never executed: __result = (((const unsigned char *) (const char *) ( devname ))[3] - __s2[3]); }never executed: end of block }never executed: end of block __result; }))) : __builtin_strcmp (| TRUE | never evaluated | | FALSE | evaluated 2 times by 1 test |
| 0-2 |
| 2452 | last_device| TRUE | never evaluated | | FALSE | evaluated 2 times by 1 test |
| 0-2 |
| 2453 | , | TRUE | never evaluated | | FALSE | evaluated 2 times by 1 test |
| 0-2 |
| 2454 | devname| TRUE | never evaluated | | FALSE | evaluated 2 times by 1 test |
| 0-2 |
| 2455 | )))); }) | TRUE | never evaluated | | FALSE | evaluated 2 times by 1 test |
| 0-2 |
| 2456 | == 0)| TRUE | never evaluated | | FALSE | evaluated 2 times by 1 test |
; | 0-2 |
| 2457 | size_t len = strlen (me->me_mountdir); | - |
| 2458 | | - |
| 2459 | if (! eclipsed_device| TRUE | evaluated 2 times by 1 test | | FALSE | never evaluated |
| 0-2 |
| 2460 | && (! best_match_accessible| TRUE | evaluated 2 times by 1 test | | FALSE | never evaluated |
|| len < best_match_len| TRUE | never evaluated | | FALSE | never evaluated |
)) | 0-2 |
| 2461 | { | - |
| 2462 | struct stat disk_stats; | - |
| 2463 | | - |
| 2464 | _Bool | - |
| 2465 | this_match_accessible = | - |
| 2466 | 0 | - |
| 2467 | ; | - |
| 2468 | | - |
| 2469 | if (stat (me->me_mountdir, &disk_stats) == 0| TRUE | evaluated 2 times by 1 test | | FALSE | never evaluated |
) | 0-2 |
| 2470 | best_match_accessible = this_match_accessible = executed 2 times by 1 test: best_match_accessible = this_match_accessible = 1 ; | 2 |
| 2471 | 1executed 2 times by 1 test: best_match_accessible = this_match_accessible = 1 ; | 2 |
| 2472 | ;executed 2 times by 1 test: best_match_accessible = this_match_accessible = 1 ; | 2 |
| 2473 | | - |
| 2474 | if (this_match_accessible| TRUE | evaluated 2 times by 1 test | | FALSE | never evaluated |
| 0-2 |
| 2475 | || (! best_match_accessible| TRUE | never evaluated | | FALSE | never evaluated |
&& len < best_match_len| TRUE | never evaluated | | FALSE | never evaluated |
)) | 0 |
| 2476 | { | - |
| 2477 | best_match = me; | - |
| 2478 | if (len == 1| TRUE | evaluated 2 times by 1 test | | FALSE | never evaluated |
) | 0-2 |
| 2479 | { | - |
| 2480 | free (last_device); | - |
| 2481 | free (canon_dev); | - |
| 2482 | break;executed 2 times by 1 test: break; | 2 |
| 2483 | } | - |
| 2484 | else | - |
| 2485 | best_match_len = len; never executed: best_match_len = len; | 0 |
| 2486 | } | - |
| 2487 | } never executed: end of block | 0 |
| 2488 | | - |
| 2489 | free (last_device); | - |
| 2490 | } never executed: end of block | 0 |
| 2491 | | - |
| 2492 | free (canon_dev); | - |
| 2493 | }executed 10 times by 1 test: end of block | 10 |
| 2494 | | - |
| 2495 | free (resolved); | - |
| 2496 | | - |
| 2497 | if (best_match| TRUE | evaluated 2 times by 1 test | | FALSE | never evaluated |
) | 0-2 |
| 2498 | { | - |
| 2499 | get_dev (best_match->me_devname, best_match->me_mountdir, file, | - |
| 2500 | ((void *)0) | - |
| 2501 | , | - |
| 2502 | best_match->me_type, best_match->me_dummy, | - |
| 2503 | best_match->me_remote, | - |
| 2504 | ((void *)0) | - |
| 2505 | , | - |
| 2506 | 0 | - |
| 2507 | ); | - |
| 2508 | returnexecuted 2 times by 1 test: return 1 ; executed 2 times by 1 test: return 1 ; | 2 |
| 2509 | 1executed 2 times by 1 test: return 1 ; | 2 |
| 2510 | ;executed 2 times by 1 test: return 1 ; | 2 |
| 2511 | } | - |
| 2512 | else if (eclipsed_device| TRUE | never evaluated | | FALSE | never evaluated |
) | 0 |
| 2513 | { | - |
| 2514 | error (0, 0, | - |
| 2515 | dcgettext (((void *)0), | - |
| 2516 | "cannot access %s: over-mounted by another device" | - |
| 2517 | , 5) | - |
| 2518 | , | - |
| 2519 | quotearg_style (shell_escape_always_quoting_style, file)); | - |
| 2520 | exit_status = | - |
| 2521 | 1 | - |
| 2522 | ; | - |
| 2523 | return never executed: return 1 ; never executed: return 1 ; | 0 |
| 2524 | 1 never executed: return 1 ; | 0 |
| 2525 | ; never executed: return 1 ; | 0 |
| 2526 | } | - |
| 2527 | | - |
| 2528 | return never executed: return 0 ; never executed: return 0 ; | 0 |
| 2529 | 0 never executed: return 0 ; | 0 |
| 2530 | ; never executed: return 0 ; | 0 |
| 2531 | } | - |
| 2532 | | - |
| 2533 | | - |
| 2534 | | - |
| 2535 | | - |
| 2536 | static void | - |
| 2537 | get_point (const char *point, const struct stat *statp) | - |
| 2538 | { | - |
| 2539 | struct stat disk_stats; | - |
| 2540 | struct mount_entry *me; | - |
| 2541 | struct mount_entry const *best_match = | - |
| 2542 | ((void *)0) | - |
| 2543 | ; | - |
| 2544 | | - |
| 2545 | | - |
| 2546 | | - |
| 2547 | | - |
| 2548 | char *resolved = canonicalize_file_name (point); | - |
| 2549 | if (resolved| TRUE | evaluated 43 times by 1 test | | FALSE | never evaluated |
&& resolved[0] == '/'| TRUE | evaluated 43 times by 1 test | | FALSE | never evaluated |
) | 0-43 |
| 2550 | { | - |
| 2551 | size_t resolved_len = strlen (resolved); | - |
| 2552 | size_t best_match_len = 0; | - |
| 2553 | | - |
| 2554 | for (me = mount_list; me| TRUE | evaluated 994 times by 1 test | | FALSE | evaluated 43 times by 1 test |
; me = me->me_next) | 43-994 |
| 2555 | { | - |
| 2556 | if (!(| TRUE | evaluated 994 times by 1 test | | FALSE | never evaluated |
| 0-994 |
| 2557 | __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (| TRUE | evaluated 994 times by 1 test | | FALSE | never evaluated |
| 0-994 |
| 2558 | me->me_type| TRUE | evaluated 994 times by 1 test | | FALSE | never evaluated |
| 0-994 |
| 2559 | ) && __builtin_constant_p (| TRUE | evaluated 994 times by 1 test | | FALSE | never evaluated |
| 0-994 |
| 2560 | "lofs"| TRUE | evaluated 994 times by 1 test | | FALSE | never evaluated |
| 0-994 |
| 2561 | ) && (__s1_len = __builtin_strlen (| TRUE | evaluated 994 times by 1 test | | FALSE | never evaluated |
| 0-994 |
| 2562 | me->me_type| TRUE | evaluated 994 times by 1 test | | FALSE | never evaluated |
| 0-994 |
| 2563 | ), __s2_len = __builtin_strlen (| TRUE | evaluated 994 times by 1 test | | FALSE | never evaluated |
| 0-994 |
| 2564 | "lofs"| TRUE | evaluated 994 times by 1 test | | FALSE | never evaluated |
| 0-994 |
| 2565 | ), (!((size_t)(const void *)((| TRUE | evaluated 994 times by 1 test | | FALSE | never evaluated |
| 0-994 |
| 2566 | me->me_type| TRUE | evaluated 994 times by 1 test | | FALSE | never evaluated |
| 0-994 |
| 2567 | ) + 1) - (size_t)(const void *)(| TRUE | evaluated 994 times by 1 test | | FALSE | never evaluated |
| 0-994 |
| 2568 | me->me_type| TRUE | evaluated 994 times by 1 test | | FALSE | never evaluated |
| 0-994 |
| 2569 | ) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((| TRUE | evaluated 994 times by 1 test | | FALSE | never evaluated |
| 0-994 |
| 2570 | "lofs"| TRUE | evaluated 994 times by 1 test | | FALSE | never evaluated |
| 0-994 |
| 2571 | ) + 1) - (size_t)(const void *)(| TRUE | evaluated 994 times by 1 test | | FALSE | never evaluated |
| 0-994 |
| 2572 | "lofs"| TRUE | evaluated 994 times by 1 test | | FALSE | never evaluated |
| 0-994 |
| 2573 | ) == 1) || __s2_len >= 4)) ? __builtin_strcmp (| TRUE | evaluated 994 times by 1 test | | FALSE | never evaluated |
| 0-994 |
| 2574 | me->me_type| TRUE | evaluated 994 times by 1 test | | FALSE | never evaluated |
| 0-994 |
| 2575 | , | TRUE | evaluated 994 times by 1 test | | FALSE | never evaluated |
| 0-994 |
| 2576 | "lofs"| TRUE | evaluated 994 times by 1 test | | FALSE | never evaluated |
| 0-994 |
| 2577 | ) : (__builtin_constant_p (| TRUE | evaluated 994 times by 1 test | | FALSE | never evaluated |
| 0-994 |
| 2578 | me->me_type| TRUE | evaluated 994 times by 1 test | | FALSE | never evaluated |
| 0-994 |
| 2579 | ) && ((size_t)(const void *)((| TRUE | evaluated 994 times by 1 test | | FALSE | never evaluated |
| 0-994 |
| 2580 | me->me_type| TRUE | evaluated 994 times by 1 test | | FALSE | never evaluated |
| 0-994 |
| 2581 | ) + 1) - (size_t)(const void *)(| TRUE | evaluated 994 times by 1 test | | FALSE | never evaluated |
| 0-994 |
| 2582 | me->me_type| TRUE | evaluated 994 times by 1 test | | FALSE | never evaluated |
| 0-994 |
| 2583 | ) == 1) && (__s1_len = __builtin_strlen (| TRUE | evaluated 994 times by 1 test | | FALSE | never evaluated |
| 0-994 |
| 2584 | me->me_type| TRUE | evaluated 994 times by 1 test | | FALSE | never evaluated |
| 0-994 |
| 2585 | ), __s1_len < 4) ? (__builtin_constant_p (| TRUE | evaluated 994 times by 1 test | | FALSE | never evaluated |
| 0-994 |
| 2586 | "lofs"| TRUE | evaluated 994 times by 1 test | | FALSE | never evaluated |
| 0-994 |
| 2587 | ) && ((size_t)(const void *)((| TRUE | evaluated 994 times by 1 test | | FALSE | never evaluated |
| 0-994 |
| 2588 | "lofs"| TRUE | evaluated 994 times by 1 test | | FALSE | never evaluated |
| 0-994 |
| 2589 | ) + 1) - (size_t)(const void *)(| TRUE | evaluated 994 times by 1 test | | FALSE | never evaluated |
| 0-994 |
| 2590 | "lofs"| TRUE | evaluated 994 times by 1 test | | FALSE | never evaluated |
| 0-994 |
| 2591 | ) == 1) ? __builtin_strcmp (| TRUE | evaluated 994 times by 1 test | | FALSE | never evaluated |
| 0-994 |
| 2592 | me->me_type| TRUE | evaluated 994 times by 1 test | | FALSE | never evaluated |
| 0-994 |
| 2593 | , | TRUE | evaluated 994 times by 1 test | | FALSE | never evaluated |
| 0-994 |
| 2594 | "lofs"| TRUE | evaluated 994 times by 1 test | | FALSE | never evaluated |
| 0-994 |
| 2595 | ) : (__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (| TRUE | evaluated 994 times by 1 test | | FALSE | never evaluated |
| 0-994 |
| 2596 | "lofs"| TRUE | evaluated 994 times by 1 test | | FALSE | never evaluated |
| 0-994 |
| 2597 | ); int __result = (((const unsigned char *) (const char *) (| TRUE | evaluated 994 times by 1 test | | FALSE | never evaluated |
| 0-994 |
| 2598 | me->me_type| TRUE | evaluated 994 times by 1 test | | FALSE | never evaluated |
| 0-994 |
| 2599 | ))[0] - __s2[0]); if (__s1_len > 0| TRUE | never evaluated | | FALSE | never evaluated |
&& __result == 0| TRUE | never evaluated | | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (| TRUE | evaluated 994 times by 1 test | | FALSE | never evaluated |
| 0-994 |
| 2600 | me->me_type| TRUE | evaluated 994 times by 1 test | | FALSE | never evaluated |
| 0-994 |
| 2601 | ))[1] - __s2[1]); if (__s1_len > 1| TRUE | never evaluated | | FALSE | never evaluated |
&& __result == 0| TRUE | never evaluated | | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (| TRUE | evaluated 994 times by 1 test | | FALSE | never evaluated |
| 0-994 |
| 2602 | me->me_type| TRUE | evaluated 994 times by 1 test | | FALSE | never evaluated |
| 0-994 |
| 2603 | ))[2] - __s2[2]); if (__s1_len > 2| TRUE | never evaluated | | FALSE | never evaluated |
&& __result == 0| TRUE | never evaluated | | FALSE | never evaluated |
) __result = (((const unsigned char *) (const char *) (never executed: __result = (((const unsigned char *) (const char *) ( me->me_type ))[3] - __s2[3]); | TRUE | evaluated 994 times by 1 test | | FALSE | never evaluated |
| 0-994 |
| 2604 | me->me_type| TRUE | evaluated 994 times by 1 test | | FALSE | never evaluated |
never executed: __result = (((const unsigned char *) (const char *) ( me->me_type ))[3] - __s2[3]); | 0-994 |
| 2605 | ))[3] - __s2[3]);| TRUE | evaluated 994 times by 1 test | | FALSE | never evaluated |
never executed: __result = (((const unsigned char *) (const char *) ( me->me_type ))[3] - __s2[3]); }never executed: end of block }never executed: end of block __result; }))) : (__builtin_constant_p (| TRUE | evaluated 994 times by 1 test | | FALSE | never evaluated |
| 0-994 |
| 2606 | "lofs"| TRUE | evaluated 994 times by 1 test | | FALSE | never evaluated |
| 0-994 |
| 2607 | ) && ((size_t)(const void *)((| TRUE | evaluated 994 times by 1 test | | FALSE | never evaluated |
| 0-994 |
| 2608 | "lofs"| TRUE | evaluated 994 times by 1 test | | FALSE | never evaluated |
| 0-994 |
| 2609 | ) + 1) - (size_t)(const void *)(| TRUE | evaluated 994 times by 1 test | | FALSE | never evaluated |
| 0-994 |
| 2610 | "lofs"| TRUE | evaluated 994 times by 1 test | | FALSE | never evaluated |
| 0-994 |
| 2611 | ) == 1) && (__s2_len = __builtin_strlen (| TRUE | evaluated 994 times by 1 test | | FALSE | never evaluated |
| 0-994 |
| 2612 | "lofs"| TRUE | evaluated 994 times by 1 test | | FALSE | never evaluated |
| 0-994 |
| 2613 | ), __s2_len < 4) ? (__builtin_constant_p (| TRUE | evaluated 994 times by 1 test | | FALSE | never evaluated |
| 0-994 |
| 2614 | me->me_type| TRUE | evaluated 994 times by 1 test | | FALSE | never evaluated |
| 0-994 |
| 2615 | ) && ((size_t)(const void *)((| TRUE | evaluated 994 times by 1 test | | FALSE | never evaluated |
| 0-994 |
| 2616 | me->me_type| TRUE | evaluated 994 times by 1 test | | FALSE | never evaluated |
| 0-994 |
| 2617 | ) + 1) - (size_t)(const void *)(| TRUE | evaluated 994 times by 1 test | | FALSE | never evaluated |
| 0-994 |
| 2618 | me->me_type| TRUE | evaluated 994 times by 1 test | | FALSE | never evaluated |
| 0-994 |
| 2619 | ) == 1) ? __builtin_strcmp (| TRUE | evaluated 994 times by 1 test | | FALSE | never evaluated |
| 0-994 |
| 2620 | me->me_type| TRUE | evaluated 994 times by 1 test | | FALSE | never evaluated |
| 0-994 |
| 2621 | , | TRUE | evaluated 994 times by 1 test | | FALSE | never evaluated |
| 0-994 |
| 2622 | "lofs"| TRUE | evaluated 994 times by 1 test | | FALSE | never evaluated |
| 0-994 |
| 2623 | ) : -(__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (| TRUE | evaluated 994 times by 1 test | | FALSE | never evaluated |
| 0-994 |
| 2624 | me->me_type| TRUE | evaluated 994 times by 1 test | | FALSE | never evaluated |
| 0-994 |
| 2625 | ); int __result = (((const unsigned char *) (const char *) (| TRUE | evaluated 994 times by 1 test | | FALSE | never evaluated |
| 0-994 |
| 2626 | "lofs"| TRUE | evaluated 994 times by 1 test | | FALSE | never evaluated |
| 0-994 |
| 2627 | ))[0] - __s2[0]); if (__s2_len > 0| TRUE | never evaluated | | FALSE | never evaluated |
&& __result == 0| TRUE | never evaluated | | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (| TRUE | evaluated 994 times by 1 test | | FALSE | never evaluated |
| 0-994 |
| 2628 | "lofs"| TRUE | evaluated 994 times by 1 test | | FALSE | never evaluated |
| 0-994 |
| 2629 | ))[1] - __s2[1]); if (__s2_len > 1| TRUE | never evaluated | | FALSE | never evaluated |
&& __result == 0| TRUE | never evaluated | | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (| TRUE | evaluated 994 times by 1 test | | FALSE | never evaluated |
| 0-994 |
| 2630 | "lofs"| TRUE | evaluated 994 times by 1 test | | FALSE | never evaluated |
| 0-994 |
| 2631 | ))[2] - __s2[2]); if (__s2_len > 2| TRUE | never evaluated | | FALSE | never evaluated |
&& __result == 0| TRUE | never evaluated | | FALSE | never evaluated |
) __result = (((const unsigned char *) (const char *) (never executed: __result = (((const unsigned char *) (const char *) ( "lofs" ))[3] - __s2[3]); | TRUE | evaluated 994 times by 1 test | | FALSE | never evaluated |
| 0-994 |
| 2632 | "lofs"| TRUE | evaluated 994 times by 1 test | | FALSE | never evaluated |
never executed: __result = (((const unsigned char *) (const char *) ( "lofs" ))[3] - __s2[3]); | 0-994 |
| 2633 | ))[3] - __s2[3]);| TRUE | evaluated 994 times by 1 test | | FALSE | never evaluated |
never executed: __result = (((const unsigned char *) (const char *) ( "lofs" ))[3] - __s2[3]); }never executed: end of block }never executed: end of block __result; }))) : __builtin_strcmp (| TRUE | evaluated 994 times by 1 test | | FALSE | never evaluated |
| 0-994 |
| 2634 | me->me_type| TRUE | evaluated 994 times by 1 test | | FALSE | never evaluated |
| 0-994 |
| 2635 | , | TRUE | evaluated 994 times by 1 test | | FALSE | never evaluated |
| 0-994 |
| 2636 | "lofs"| TRUE | evaluated 994 times by 1 test | | FALSE | never evaluated |
| 0-994 |
| 2637 | )))); }) | TRUE | evaluated 994 times by 1 test | | FALSE | never evaluated |
| 0-994 |
| 2638 | == 0)| TRUE | evaluated 994 times by 1 test | | FALSE | never evaluated |
| 0-994 |
| 2639 | && (!best_match| TRUE | evaluated 228 times by 1 test | | FALSE | evaluated 766 times by 1 test |
|| best_match->me_dummy| TRUE | never evaluated | | FALSE | evaluated 766 times by 1 test |
|| !me->me_dummy| TRUE | evaluated 652 times by 1 test | | FALSE | evaluated 114 times by 1 test |
)) | 0-766 |
| 2640 | { | - |
| 2641 | size_t len = strlen (me->me_mountdir); | - |
| 2642 | if (best_match_len <= len| TRUE | evaluated 880 times by 1 test | | FALSE | never evaluated |
&& len <= resolved_len| TRUE | evaluated 858 times by 1 test | | FALSE | evaluated 22 times by 1 test |
| 0-880 |
| 2643 | && (len == 1| TRUE | evaluated 38 times by 1 test | | FALSE | evaluated 820 times by 1 test |
| 38-820 |
| 2644 | || ((len == resolved_len| TRUE | never evaluated | | FALSE | evaluated 820 times by 1 test |
|| resolved[len] == '/'| TRUE | evaluated 74 times by 1 test | | FALSE | evaluated 746 times by 1 test |
) | 0-820 |
| 2645 | && (| TRUE | never evaluated | | FALSE | evaluated 74 times by 1 test |
| 0-74 |
| 2646 | (__extension__ (__builtin_constant_p (| TRUE | never evaluated | | FALSE | evaluated 74 times by 1 test |
| TRUE | never evaluated | | FALSE | evaluated 74 times by 1 test |
| 0-74 |
| 2647 | len| TRUE | never evaluated | | FALSE | evaluated 74 times by 1 test |
| TRUE | never evaluated | | FALSE | evaluated 74 times by 1 test |
| 0-74 |
| 2648 | )| TRUE | never evaluated | | FALSE | evaluated 74 times by 1 test |
&& ((__builtin_constant_p (| TRUE | never evaluated | | FALSE | never evaluated |
| TRUE | never evaluated | | FALSE | evaluated 74 times by 1 test |
| 0-74 |
| 2649 | me->me_mountdir| TRUE | never evaluated | | FALSE | never evaluated |
| TRUE | never evaluated | | FALSE | evaluated 74 times by 1 test |
| 0-74 |
| 2650 | )| TRUE | never evaluated | | FALSE | never evaluated |
&& strlen (| TRUE | never evaluated | | FALSE | never evaluated |
| TRUE | never evaluated | | FALSE | evaluated 74 times by 1 test |
| 0-74 |
| 2651 | me->me_mountdir| TRUE | never evaluated | | FALSE | never evaluated |
| TRUE | never evaluated | | FALSE | evaluated 74 times by 1 test |
| 0-74 |
| 2652 | ) < ((size_t) (| TRUE | never evaluated | | FALSE | never evaluated |
| TRUE | never evaluated | | FALSE | evaluated 74 times by 1 test |
| 0-74 |
| 2653 | len| TRUE | never evaluated | | FALSE | never evaluated |
| TRUE | never evaluated | | FALSE | evaluated 74 times by 1 test |
| 0-74 |
| 2654 | ))| TRUE | never evaluated | | FALSE | never evaluated |
) || (__builtin_constant_p (| TRUE | never evaluated | | FALSE | never evaluated |
| TRUE | never evaluated | | FALSE | evaluated 74 times by 1 test |
| 0-74 |
| 2655 | resolved| TRUE | never evaluated | | FALSE | never evaluated |
| TRUE | never evaluated | | FALSE | evaluated 74 times by 1 test |
| 0-74 |
| 2656 | )| TRUE | never evaluated | | FALSE | never evaluated |
&& strlen (| TRUE | never evaluated | | FALSE | never evaluated |
| TRUE | never evaluated | | FALSE | evaluated 74 times by 1 test |
| 0-74 |
| 2657 | resolved| TRUE | never evaluated | | FALSE | never evaluated |
| TRUE | never evaluated | | FALSE | evaluated 74 times by 1 test |
| 0-74 |
| 2658 | ) < ((size_t) (| TRUE | never evaluated | | FALSE | never evaluated |
| TRUE | never evaluated | | FALSE | evaluated 74 times by 1 test |
| 0-74 |
| 2659 | len| TRUE | never evaluated | | FALSE | never evaluated |
| TRUE | never evaluated | | FALSE | evaluated 74 times by 1 test |
| 0-74 |
| 2660 | ))| TRUE | never evaluated | | FALSE | never evaluated |
)) ? __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (| TRUE | never evaluated | | FALSE | evaluated 74 times by 1 test |
| 0-74 |
| 2661 | me->me_mountdir| TRUE | never evaluated | | FALSE | evaluated 74 times by 1 test |
| 0-74 |
| 2662 | ) && __builtin_constant_p (| TRUE | never evaluated | | FALSE | evaluated 74 times by 1 test |
| 0-74 |
| 2663 | resolved| TRUE | never evaluated | | FALSE | evaluated 74 times by 1 test |
| 0-74 |
| 2664 | ) && (__s1_len = __builtin_strlen (| TRUE | never evaluated | | FALSE | evaluated 74 times by 1 test |
| 0-74 |
| 2665 | me->me_mountdir| TRUE | never evaluated | | FALSE | evaluated 74 times by 1 test |
| 0-74 |
| 2666 | ), __s2_len = __builtin_strlen (| TRUE | never evaluated | | FALSE | evaluated 74 times by 1 test |
| 0-74 |
| 2667 | resolved| TRUE | never evaluated | | FALSE | evaluated 74 times by 1 test |
| 0-74 |
| 2668 | ), (!((size_t)(const void *)((| TRUE | never evaluated | | FALSE | evaluated 74 times by 1 test |
| 0-74 |
| 2669 | me->me_mountdir| TRUE | never evaluated | | FALSE | evaluated 74 times by 1 test |
| 0-74 |
| 2670 | ) + 1) - (size_t)(const void *)(| TRUE | never evaluated | | FALSE | evaluated 74 times by 1 test |
| 0-74 |
| 2671 | me->me_mountdir| TRUE | never evaluated | | FALSE | evaluated 74 times by 1 test |
| 0-74 |
| 2672 | ) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((| TRUE | never evaluated | | FALSE | evaluated 74 times by 1 test |
| 0-74 |
| 2673 | resolved| TRUE | never evaluated | | FALSE | evaluated 74 times by 1 test |
| 0-74 |
| 2674 | ) + 1) - (size_t)(const void *)(| TRUE | never evaluated | | FALSE | evaluated 74 times by 1 test |
| 0-74 |
| 2675 | resolved| TRUE | never evaluated | | FALSE | evaluated 74 times by 1 test |
| 0-74 |
| 2676 | ) == 1) || __s2_len >= 4)) ? __builtin_strcmp (| TRUE | never evaluated | | FALSE | evaluated 74 times by 1 test |
| 0-74 |
| 2677 | me->me_mountdir| TRUE | never evaluated | | FALSE | evaluated 74 times by 1 test |
| 0-74 |
| 2678 | , | TRUE | never evaluated | | FALSE | evaluated 74 times by 1 test |
| 0-74 |
| 2679 | resolved| TRUE | never evaluated | | FALSE | evaluated 74 times by 1 test |
| 0-74 |
| 2680 | ) : (__builtin_constant_p (| TRUE | never evaluated | | FALSE | evaluated 74 times by 1 test |
| 0-74 |
| 2681 | me->me_mountdir| TRUE | never evaluated | | FALSE | evaluated 74 times by 1 test |
| 0-74 |
| 2682 | ) && ((size_t)(const void *)((| TRUE | never evaluated | | FALSE | evaluated 74 times by 1 test |
| 0-74 |
| 2683 | me->me_mountdir| TRUE | never evaluated | | FALSE | evaluated 74 times by 1 test |
| 0-74 |
| 2684 | ) + 1) - (size_t)(const void *)(| TRUE | never evaluated | | FALSE | evaluated 74 times by 1 test |
| 0-74 |
| 2685 | me->me_mountdir| TRUE | never evaluated | | FALSE | evaluated 74 times by 1 test |
| 0-74 |
| 2686 | ) == 1) && (__s1_len = __builtin_strlen (| TRUE | never evaluated | | FALSE | evaluated 74 times by 1 test |
| 0-74 |
| 2687 | me->me_mountdir| TRUE | never evaluated | | FALSE | evaluated 74 times by 1 test |
| 0-74 |
| 2688 | ), __s1_len < 4) ? (__builtin_constant_p (| TRUE | never evaluated | | FALSE | evaluated 74 times by 1 test |
| 0-74 |
| 2689 | resolved| TRUE | never evaluated | | FALSE | evaluated 74 times by 1 test |
| 0-74 |
| 2690 | ) && ((size_t)(const void *)((| TRUE | never evaluated | | FALSE | evaluated 74 times by 1 test |
| 0-74 |
| 2691 | resolved| TRUE | never evaluated | | FALSE | evaluated 74 times by 1 test |
| 0-74 |
| 2692 | ) + 1) - (size_t)(const void *)(| TRUE | never evaluated | | FALSE | evaluated 74 times by 1 test |
| 0-74 |
| 2693 | resolved| TRUE | never evaluated | | FALSE | evaluated 74 times by 1 test |
| 0-74 |
| 2694 | ) == 1) ? __builtin_strcmp (| TRUE | never evaluated | | FALSE | evaluated 74 times by 1 test |
| 0-74 |
| 2695 | me->me_mountdir| TRUE | never evaluated | | FALSE | evaluated 74 times by 1 test |
| 0-74 |
| 2696 | , | TRUE | never evaluated | | FALSE | evaluated 74 times by 1 test |
| 0-74 |
| 2697 | resolved| TRUE | never evaluated | | FALSE | evaluated 74 times by 1 test |
| 0-74 |
| 2698 | ) : (__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (| TRUE | never evaluated | | FALSE | evaluated 74 times by 1 test |
| 0-74 |
| 2699 | resolved| TRUE | never evaluated | | FALSE | evaluated 74 times by 1 test |
| 0-74 |
| 2700 | ); int __result = (((const unsigned char *) (const char *) (| TRUE | never evaluated | | FALSE | evaluated 74 times by 1 test |
| 0-74 |
| 2701 | me->me_mountdir| TRUE | never evaluated | | FALSE | evaluated 74 times by 1 test |
| 0-74 |
| 2702 | ))[0] - __s2[0]); if (__s1_len > 0| TRUE | never evaluated | | FALSE | never evaluated |
&& __result == 0| TRUE | never evaluated | | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (| TRUE | never evaluated | | FALSE | evaluated 74 times by 1 test |
| 0-74 |
| 2703 | me->me_mountdir| TRUE | never evaluated | | FALSE | evaluated 74 times by 1 test |
| 0-74 |
| 2704 | ))[1] - __s2[1]); if (__s1_len > 1| TRUE | never evaluated | | FALSE | never evaluated |
&& __result == 0| TRUE | never evaluated | | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (| TRUE | never evaluated | | FALSE | evaluated 74 times by 1 test |
| 0-74 |
| 2705 | me->me_mountdir| TRUE | never evaluated | | FALSE | evaluated 74 times by 1 test |
| 0-74 |
| 2706 | ))[2] - __s2[2]); if (__s1_len > 2| TRUE | never evaluated | | FALSE | never evaluated |
&& __result == 0| TRUE | never evaluated | | FALSE | never evaluated |
) __result = (((const unsigned char *) (const char *) (never executed: __result = (((const unsigned char *) (const char *) ( me->me_mountdir ))[3] - __s2[3]); | TRUE | never evaluated | | FALSE | evaluated 74 times by 1 test |
| 0-74 |
| 2707 | me->me_mountdir| TRUE | never evaluated | | FALSE | evaluated 74 times by 1 test |
never executed: __result = (((const unsigned char *) (const char *) ( me->me_mountdir ))[3] - __s2[3]); | 0-74 |
| 2708 | ))[3] - __s2[3]);| TRUE | never evaluated | | FALSE | evaluated 74 times by 1 test |
never executed: __result = (((const unsigned char *) (const char *) ( me->me_mountdir ))[3] - __s2[3]); }never executed: end of block }never executed: end of block __result; }))) : (__builtin_constant_p (| TRUE | never evaluated | | FALSE | evaluated 74 times by 1 test |
| 0-74 |
| 2709 | resolved| TRUE | never evaluated | | FALSE | evaluated 74 times by 1 test |
| 0-74 |
| 2710 | ) && ((size_t)(const void *)((| TRUE | never evaluated | | FALSE | evaluated 74 times by 1 test |
| 0-74 |
| 2711 | resolved| TRUE | never evaluated | | FALSE | evaluated 74 times by 1 test |
| 0-74 |
| 2712 | ) + 1) - (size_t)(const void *)(| TRUE | never evaluated | | FALSE | evaluated 74 times by 1 test |
| 0-74 |
| 2713 | resolved| TRUE | never evaluated | | FALSE | evaluated 74 times by 1 test |
| 0-74 |
| 2714 | ) == 1) && (__s2_len = __builtin_strlen (| TRUE | never evaluated | | FALSE | evaluated 74 times by 1 test |
| 0-74 |
| 2715 | resolved| TRUE | never evaluated | | FALSE | evaluated 74 times by 1 test |
| 0-74 |
| 2716 | ), __s2_len < 4) ? (__builtin_constant_p (| TRUE | never evaluated | | FALSE | evaluated 74 times by 1 test |
| 0-74 |
| 2717 | me->me_mountdir| TRUE | never evaluated | | FALSE | evaluated 74 times by 1 test |
| 0-74 |
| 2718 | ) && ((size_t)(const void *)((| TRUE | never evaluated | | FALSE | evaluated 74 times by 1 test |
| 0-74 |
| 2719 | me->me_mountdir| TRUE | never evaluated | | FALSE | evaluated 74 times by 1 test |
| 0-74 |
| 2720 | ) + 1) - (size_t)(const void *)(| TRUE | never evaluated | | FALSE | evaluated 74 times by 1 test |
| 0-74 |
| 2721 | me->me_mountdir| TRUE | never evaluated | | FALSE | evaluated 74 times by 1 test |
| 0-74 |
| 2722 | ) == 1) ? __builtin_strcmp (| TRUE | never evaluated | | FALSE | evaluated 74 times by 1 test |
| 0-74 |
| 2723 | me->me_mountdir| TRUE | never evaluated | | FALSE | evaluated 74 times by 1 test |
| 0-74 |
| 2724 | , | TRUE | never evaluated | | FALSE | evaluated 74 times by 1 test |
| 0-74 |
| 2725 | resolved| TRUE | never evaluated | | FALSE | evaluated 74 times by 1 test |
| 0-74 |
| 2726 | ) : -(__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (| TRUE | never evaluated | | FALSE | evaluated 74 times by 1 test |
| 0-74 |
| 2727 | me->me_mountdir| TRUE | never evaluated | | FALSE | evaluated 74 times by 1 test |
| 0-74 |
| 2728 | ); int __result = (((const unsigned char *) (const char *) (| TRUE | never evaluated | | FALSE | evaluated 74 times by 1 test |
| 0-74 |
| 2729 | resolved| TRUE | never evaluated | | FALSE | evaluated 74 times by 1 test |
| 0-74 |
| 2730 | ))[0] - __s2[0]); if (__s2_len > 0| TRUE | never evaluated | | FALSE | never evaluated |
&& __result == 0| TRUE | never evaluated | | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (| TRUE | never evaluated | | FALSE | evaluated 74 times by 1 test |
| 0-74 |
| 2731 | resolved| TRUE | never evaluated | | FALSE | evaluated 74 times by 1 test |
| 0-74 |
| 2732 | ))[1] - __s2[1]); if (__s2_len > 1| TRUE | never evaluated | | FALSE | never evaluated |
&& __result == 0| TRUE | never evaluated | | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (| TRUE | never evaluated | | FALSE | evaluated 74 times by 1 test |
| 0-74 |
| 2733 | resolved| TRUE | never evaluated | | FALSE | evaluated 74 times by 1 test |
| 0-74 |
| 2734 | ))[2] - __s2[2]); if (__s2_len > 2| TRUE | never evaluated | | FALSE | never evaluated |
&& __result == 0| TRUE | never evaluated | | FALSE | never evaluated |
) __result = (((const unsigned char *) (const char *) (never executed: __result = (((const unsigned char *) (const char *) ( resolved ))[3] - __s2[3]); | TRUE | never evaluated | | FALSE | evaluated 74 times by 1 test |
| 0-74 |
| 2735 | resolved| TRUE | never evaluated | | FALSE | evaluated 74 times by 1 test |
never executed: __result = (((const unsigned char *) (const char *) ( resolved ))[3] - __s2[3]); | 0-74 |
| 2736 | ))[3] - __s2[3]);| TRUE | never evaluated | | FALSE | evaluated 74 times by 1 test |
never executed: __result = (((const unsigned char *) (const char *) ( resolved ))[3] - __s2[3]); }never executed: end of block }never executed: end of block __result; }))) : __builtin_strcmp (| TRUE | never evaluated | | FALSE | evaluated 74 times by 1 test |
| 0-74 |
| 2737 | me->me_mountdir| TRUE | never evaluated | | FALSE | evaluated 74 times by 1 test |
| 0-74 |
| 2738 | , | TRUE | never evaluated | | FALSE | evaluated 74 times by 1 test |
| 0-74 |
| 2739 | resolved| TRUE | never evaluated | | FALSE | evaluated 74 times by 1 test |
| 0-74 |
| 2740 | )))); }) : strncmp (| TRUE | never evaluated | | FALSE | evaluated 74 times by 1 test |
| 0-74 |
| 2741 | me->me_mountdir| TRUE | never evaluated | | FALSE | evaluated 74 times by 1 test |
| 0-74 |
| 2742 | , | TRUE | never evaluated | | FALSE | evaluated 74 times by 1 test |
| 0-74 |
| 2743 | resolved| TRUE | never evaluated | | FALSE | evaluated 74 times by 1 test |
| 0-74 |
| 2744 | , | TRUE | never evaluated | | FALSE | evaluated 74 times by 1 test |
| 0-74 |
| 2745 | len| TRUE | never evaluated | | FALSE | evaluated 74 times by 1 test |
| 0-74 |
| 2746 | ))) | TRUE | never evaluated | | FALSE | evaluated 74 times by 1 test |
| 0-74 |
| 2747 | == 0)| TRUE | never evaluated | | FALSE | evaluated 74 times by 1 test |
))) | 0-74 |
| 2748 | { | - |
| 2749 | best_match = me; | - |
| 2750 | best_match_len = len; | - |
| 2751 | }executed 38 times by 1 test: end of block | 38 |
| 2752 | }executed 880 times by 1 test: end of block | 880 |
| 2753 | }executed 994 times by 1 test: end of block | 994 |
| 2754 | }executed 43 times by 1 test: end of block | 43 |
| 2755 | free (resolved); | - |
| 2756 | if (best_match| TRUE | evaluated 38 times by 1 test | | FALSE | evaluated 5 times by 1 test |
| 5-38 |
| 2757 | && (stat (best_match->me_mountdir, &disk_stats) != 0| TRUE | never evaluated | | FALSE | evaluated 38 times by 1 test |
| 0-38 |
| 2758 | || disk_stats.st_dev != statp->st_dev| TRUE | never evaluated | | FALSE | evaluated 38 times by 1 test |
)) | 0-38 |
| 2759 | best_match = never executed: best_match = ((void *)0) ; | 0 |
| 2760 | ((void *)0) never executed: best_match = ((void *)0) ; | 0 |
| 2761 | ; never executed: best_match = ((void *)0) ; | 0 |
| 2762 | | - |
| 2763 | if (! best_match| TRUE | evaluated 5 times by 1 test | | FALSE | evaluated 38 times by 1 test |
) | 5-38 |
| 2764 | for (me = mount_list; me| TRUE | never evaluated | | FALSE | evaluated 5 times by 1 test |
; me = me->me_next) | 0-5 |
| 2765 | { | - |
| 2766 | if (me->me_dev == (dev_t) -1| TRUE | never evaluated | | FALSE | never evaluated |
) | 0 |
| 2767 | { | - |
| 2768 | if (stat (me->me_mountdir, &disk_stats) == 0| TRUE | never evaluated | | FALSE | never evaluated |
) | 0 |
| 2769 | me->me_dev = disk_stats.st_dev; never executed: me->me_dev = disk_stats.st_dev; | 0 |
| 2770 | else | - |
| 2771 | { | - |
| 2772 | | - |
| 2773 | | - |
| 2774 | | - |
| 2775 | if ( | - |
| 2776 | (*| TRUE | never evaluated | | FALSE | never evaluated |
__errno_location ()) | TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 2777 | == | TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 2778 | 5| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 2779 | ) | - |
| 2780 | { | - |
| 2781 | error (0, | - |
| 2782 | (*__errno_location ()) | - |
| 2783 | , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, me->me_mountdir)); | - |
| 2784 | exit_status = | - |
| 2785 | 1 | - |
| 2786 | ; | - |
| 2787 | } never executed: end of block | 0 |
| 2788 | | - |
| 2789 | | - |
| 2790 | me->me_dev = (dev_t) -2; | - |
| 2791 | } never executed: end of block | 0 |
| 2792 | } | - |
| 2793 | | - |
| 2794 | if (statp->st_dev == me->me_dev| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 2795 | && !(| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 2796 | __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 2797 | me->me_type| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 2798 | ) && __builtin_constant_p (| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 2799 | "lofs"| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 2800 | ) && (__s1_len = __builtin_strlen (| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 2801 | me->me_type| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 2802 | ), __s2_len = __builtin_strlen (| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 2803 | "lofs"| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 2804 | ), (!((size_t)(const void *)((| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 2805 | me->me_type| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 2806 | ) + 1) - (size_t)(const void *)(| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 2807 | me->me_type| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 2808 | ) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 2809 | "lofs"| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 2810 | ) + 1) - (size_t)(const void *)(| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 2811 | "lofs"| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 2812 | ) == 1) || __s2_len >= 4)) ? __builtin_strcmp (| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 2813 | me->me_type| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 2814 | , | TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 2815 | "lofs"| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 2816 | ) : (__builtin_constant_p (| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 2817 | me->me_type| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 2818 | ) && ((size_t)(const void *)((| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 2819 | me->me_type| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 2820 | ) + 1) - (size_t)(const void *)(| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 2821 | me->me_type| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 2822 | ) == 1) && (__s1_len = __builtin_strlen (| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 2823 | me->me_type| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 2824 | ), __s1_len < 4) ? (__builtin_constant_p (| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 2825 | "lofs"| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 2826 | ) && ((size_t)(const void *)((| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 2827 | "lofs"| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 2828 | ) + 1) - (size_t)(const void *)(| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 2829 | "lofs"| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 2830 | ) == 1) ? __builtin_strcmp (| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 2831 | me->me_type| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 2832 | , | TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 2833 | "lofs"| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 2834 | ) : (__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 2835 | "lofs"| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 2836 | ); int __result = (((const unsigned char *) (const char *) (| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 2837 | me->me_type| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 2838 | ))[0] - __s2[0]); if (__s1_len > 0| TRUE | never evaluated | | FALSE | never evaluated |
&& __result == 0| TRUE | never evaluated | | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 2839 | me->me_type| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 2840 | ))[1] - __s2[1]); if (__s1_len > 1| TRUE | never evaluated | | FALSE | never evaluated |
&& __result == 0| TRUE | never evaluated | | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 2841 | me->me_type| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 2842 | ))[2] - __s2[2]); if (__s1_len > 2| TRUE | never evaluated | | FALSE | never evaluated |
&& __result == 0| TRUE | never evaluated | | FALSE | never evaluated |
) __result = (((const unsigned char *) (const char *) (never executed: __result = (((const unsigned char *) (const char *) ( me->me_type ))[3] - __s2[3]); | 0 |
| 2843 | me->me_type| TRUE | never evaluated | | FALSE | never evaluated |
never executed: __result = (((const unsigned char *) (const char *) ( me->me_type ))[3] - __s2[3]); | 0 |
| 2844 | ))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p (| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 2845 | "lofs"| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 2846 | ) && ((size_t)(const void *)((| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 2847 | "lofs"| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 2848 | ) + 1) - (size_t)(const void *)(| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 2849 | "lofs"| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 2850 | ) == 1) && (__s2_len = __builtin_strlen (| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 2851 | "lofs"| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 2852 | ), __s2_len < 4) ? (__builtin_constant_p (| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 2853 | me->me_type| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 2854 | ) && ((size_t)(const void *)((| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 2855 | me->me_type| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 2856 | ) + 1) - (size_t)(const void *)(| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 2857 | me->me_type| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 2858 | ) == 1) ? __builtin_strcmp (| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 2859 | me->me_type| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 2860 | , | TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 2861 | "lofs"| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 2862 | ) : -(__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 2863 | me->me_type| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 2864 | ); int __result = (((const unsigned char *) (const char *) (| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 2865 | "lofs"| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 2866 | ))[0] - __s2[0]); if (__s2_len > 0| TRUE | never evaluated | | FALSE | never evaluated |
&& __result == 0| TRUE | never evaluated | | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 2867 | "lofs"| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 2868 | ))[1] - __s2[1]); if (__s2_len > 1| TRUE | never evaluated | | FALSE | never evaluated |
&& __result == 0| TRUE | never evaluated | | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 2869 | "lofs"| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 2870 | ))[2] - __s2[2]); if (__s2_len > 2| TRUE | never evaluated | | FALSE | never evaluated |
&& __result == 0| TRUE | never evaluated | | FALSE | never evaluated |
) __result = (((const unsigned char *) (const char *) (never executed: __result = (((const unsigned char *) (const char *) ( "lofs" ))[3] - __s2[3]); | 0 |
| 2871 | "lofs"| TRUE | never evaluated | | FALSE | never evaluated |
never executed: __result = (((const unsigned char *) (const char *) ( "lofs" ))[3] - __s2[3]); | 0 |
| 2872 | ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp (| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 2873 | me->me_type| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 2874 | , | TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 2875 | "lofs"| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 2876 | )))); }) | TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 2877 | == 0)| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 2878 | && (!best_match| TRUE | never evaluated | | FALSE | never evaluated |
|| best_match->me_dummy| TRUE | never evaluated | | FALSE | never evaluated |
|| !me->me_dummy| TRUE | never evaluated | | FALSE | never evaluated |
)) | 0 |
| 2879 | { | - |
| 2880 | | - |
| 2881 | if (stat (me->me_mountdir, &disk_stats) != 0| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 2882 | || disk_stats.st_dev != me->me_dev| TRUE | never evaluated | | FALSE | never evaluated |
) | 0 |
| 2883 | me->me_dev = (dev_t) -2; never executed: me->me_dev = (dev_t) -2; | 0 |
| 2884 | else | - |
| 2885 | best_match = me; never executed: best_match = me; | 0 |
| 2886 | } | - |
| 2887 | } never executed: end of block | 0 |
| 2888 | | - |
| 2889 | if (best_match| TRUE | evaluated 38 times by 1 test | | FALSE | evaluated 5 times by 1 test |
) | 5-38 |
| 2890 | get_dev (best_match->me_devname, best_match->me_mountdir, point, point,executed 38 times by 1 test: get_dev (best_match->me_devname, best_match->me_mountdir, point, point, best_match->me_type, best_match->me_dummy, best_match->me_remote, ((void *)0) , 0 ); | 38 |
| 2891 | best_match->me_type, best_match->me_dummy, best_match->me_remote,executed 38 times by 1 test: get_dev (best_match->me_devname, best_match->me_mountdir, point, point, best_match->me_type, best_match->me_dummy, best_match->me_remote, ((void *)0) , 0 ); | 38 |
| 2892 | executed 38 times by 1 test: get_dev (best_match->me_devname, best_match->me_mountdir, point, point, best_match->me_type, best_match->me_dummy, best_match->me_remote, ((void *)0) , 0 ); | 38 |
| 2893 | ((void *)0)executed 38 times by 1 test: get_dev (best_match->me_devname, best_match->me_mountdir, point, point, best_match->me_type, best_match->me_dummy, best_match->me_remote, ((void *)0) , 0 ); | 38 |
| 2894 | , executed 38 times by 1 test: get_dev (best_match->me_devname, best_match->me_mountdir, point, point, best_match->me_type, best_match->me_dummy, best_match->me_remote, ((void *)0) , 0 ); | 38 |
| 2895 | 0executed 38 times by 1 test: get_dev (best_match->me_devname, best_match->me_mountdir, point, point, best_match->me_type, best_match->me_dummy, best_match->me_remote, ((void *)0) , 0 ); | 38 |
| 2896 | );executed 38 times by 1 test: get_dev (best_match->me_devname, best_match->me_mountdir, point, point, best_match->me_type, best_match->me_dummy, best_match->me_remote, ((void *)0) , 0 ); | 38 |
| 2897 | else | - |
| 2898 | { | - |
| 2899 | | - |
| 2900 | | - |
| 2901 | | - |
| 2902 | | - |
| 2903 | | - |
| 2904 | char *mp = find_mount_point (point, statp); | - |
| 2905 | if (mp| TRUE | evaluated 5 times by 1 test | | FALSE | never evaluated |
) | 0-5 |
| 2906 | { | - |
| 2907 | get_dev ( | - |
| 2908 | ((void *)0) | - |
| 2909 | , mp, point, | - |
| 2910 | ((void *)0) | - |
| 2911 | , | - |
| 2912 | ((void *)0) | - |
| 2913 | , | - |
| 2914 | 0 | - |
| 2915 | , | - |
| 2916 | 0 | - |
| 2917 | , | - |
| 2918 | ((void *)0) | - |
| 2919 | , | - |
| 2920 | 0 | - |
| 2921 | ); | - |
| 2922 | free (mp); | - |
| 2923 | }executed 5 times by 1 test: end of block | 5 |
| 2924 | }executed 5 times by 1 test: end of block | 5 |
| 2925 | } | - |
| 2926 | | - |
| 2927 | | - |
| 2928 | | - |
| 2929 | | - |
| 2930 | static void | - |
| 2931 | get_entry (char const *name, struct stat const *statp) | - |
| 2932 | { | - |
| 2933 | if (( | - |
| 2934 | ((((| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 43 times by 1 test |
| 2-43 |
| 2935 | statp->st_mode| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 43 times by 1 test |
| 2-43 |
| 2936 | )) & 0170000) == (0060000))| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 43 times by 1 test |
| 2-43 |
| 2937 | || | - |
| 2938 | ((((| TRUE | never evaluated | | FALSE | evaluated 43 times by 1 test |
| 0-43 |
| 2939 | statp->st_mode| TRUE | never evaluated | | FALSE | evaluated 43 times by 1 test |
| 0-43 |
| 2940 | )) & 0170000) == (0020000))| TRUE | never evaluated | | FALSE | evaluated 43 times by 1 test |
| 0-43 |
| 2941 | ) | - |
| 2942 | && get_disk (name)| TRUE | evaluated 2 times by 1 test | | FALSE | never evaluated |
) | 0-2 |
| 2943 | return;executed 2 times by 1 test: return; | 2 |
| 2944 | | - |
| 2945 | get_point (name, statp); | - |
| 2946 | }executed 43 times by 1 test: end of block | 43 |
| 2947 | | - |
| 2948 | | - |
| 2949 | | - |
| 2950 | | - |
| 2951 | static void | - |
| 2952 | get_all_entries (void) | - |
| 2953 | { | - |
| 2954 | struct mount_entry *me; | - |
| 2955 | | - |
| 2956 | filter_mount_list (show_all_fs); | - |
| 2957 | | - |
| 2958 | for (me = mount_list; me| TRUE | evaluated 606 times by 1 test | | FALSE | evaluated 27 times by 1 test |
; me = me->me_next) | 27-606 |
| 2959 | get_dev (me->me_devname, me->me_mountdir, executed 606 times by 1 test: get_dev (me->me_devname, me->me_mountdir, ((void *)0) , ((void *)0) , me->me_type, me->me_dummy, me->me_remote, ((void *)0) , 1 ); | 606 |
| 2960 | ((void *)0)executed 606 times by 1 test: get_dev (me->me_devname, me->me_mountdir, ((void *)0) , ((void *)0) , me->me_type, me->me_dummy, me->me_remote, ((void *)0) , 1 ); | 606 |
| 2961 | , executed 606 times by 1 test: get_dev (me->me_devname, me->me_mountdir, ((void *)0) , ((void *)0) , me->me_type, me->me_dummy, me->me_remote, ((void *)0) , 1 ); | 606 |
| 2962 | ((void *)0)executed 606 times by 1 test: get_dev (me->me_devname, me->me_mountdir, ((void *)0) , ((void *)0) , me->me_type, me->me_dummy, me->me_remote, ((void *)0) , 1 ); | 606 |
| 2963 | , me->me_type,executed 606 times by 1 test: get_dev (me->me_devname, me->me_mountdir, ((void *)0) , ((void *)0) , me->me_type, me->me_dummy, me->me_remote, ((void *)0) , 1 ); | 606 |
| 2964 | me->me_dummy, me->me_remote, executed 606 times by 1 test: get_dev (me->me_devname, me->me_mountdir, ((void *)0) , ((void *)0) , me->me_type, me->me_dummy, me->me_remote, ((void *)0) , 1 ); | 606 |
| 2965 | ((void *)0)executed 606 times by 1 test: get_dev (me->me_devname, me->me_mountdir, ((void *)0) , ((void *)0) , me->me_type, me->me_dummy, me->me_remote, ((void *)0) , 1 ); | 606 |
| 2966 | , executed 606 times by 1 test: get_dev (me->me_devname, me->me_mountdir, ((void *)0) , ((void *)0) , me->me_type, me->me_dummy, me->me_remote, ((void *)0) , 1 ); | 606 |
| 2967 | 1executed 606 times by 1 test: get_dev (me->me_devname, me->me_mountdir, ((void *)0) , ((void *)0) , me->me_type, me->me_dummy, me->me_remote, ((void *)0) , 1 ); | 606 |
| 2968 | );executed 606 times by 1 test: get_dev (me->me_devname, me->me_mountdir, ((void *)0) , ((void *)0) , me->me_type, me->me_dummy, me->me_remote, ((void *)0) , 1 ); | 606 |
| 2969 | }executed 27 times by 1 test: end of block | 27 |
| 2970 | | - |
| 2971 | | - |
| 2972 | | - |
| 2973 | static void | - |
| 2974 | add_fs_type (const char *fstype) | - |
| 2975 | { | - |
| 2976 | struct fs_type_list *fsp; | - |
| 2977 | | - |
| 2978 | fsp = xmalloc (sizeof *fsp); | - |
| 2979 | fsp->fs_name = (char *) fstype; | - |
| 2980 | fsp->fs_next = fs_select_list; | - |
| 2981 | fs_select_list = fsp; | - |
| 2982 | }executed 8 times by 1 test: end of block | 8 |
| 2983 | | - |
| 2984 | | - |
| 2985 | | - |
| 2986 | static void | - |
| 2987 | add_excluded_fs_type (const char *fstype) | - |
| 2988 | { | - |
| 2989 | struct fs_type_list *fsp; | - |
| 2990 | | - |
| 2991 | fsp = xmalloc (sizeof *fsp); | - |
| 2992 | fsp->fs_name = (char *) fstype; | - |
| 2993 | fsp->fs_next = fs_exclude_list; | - |
| 2994 | fs_exclude_list = fsp; | - |
| 2995 | }executed 4 times by 1 test: end of block | 4 |
| 2996 | | - |
| 2997 | void | - |
| 2998 | usage (int status) | - |
| 2999 | { | - |
| 3000 | if (status != | TRUE | evaluated 11 times by 1 test | | FALSE | evaluated 28 times by 1 test |
| 11-28 |
| 3001 | 0| TRUE | evaluated 11 times by 1 test | | FALSE | evaluated 28 times by 1 test |
| 11-28 |
| 3002 | ) | - |
| 3003 | do { fprintf ( | - |
| 3004 | stderr | - |
| 3005 | , | - |
| 3006 | dcgettext (((void *)0), | - |
| 3007 | "Try '%s --help' for more information.\n" | - |
| 3008 | , 5) | - |
| 3009 | , program_name); }executed 11 times by 1 test: end of block while (0); | 11 |
| 3010 | else | - |
| 3011 | { | - |
| 3012 | printf ( | - |
| 3013 | dcgettext (((void *)0), | - |
| 3014 | "Usage: %s [OPTION]... [FILE]...\n" | - |
| 3015 | , 5) | - |
| 3016 | , program_name); | - |
| 3017 | fputs_unlocked ( | - |
| 3018 | dcgettext (((void *)0), | - |
| 3019 | "Show information about the file system on which each FILE resides,\nor all file systems by default.\n" | - |
| 3020 | , 5) | - |
| 3021 | , | - |
| 3022 | stdout | - |
| 3023 | ) | - |
| 3024 | | - |
| 3025 | | - |
| 3026 | ; | - |
| 3027 | | - |
| 3028 | emit_mandatory_arg_note (); | - |
| 3029 | | - |
| 3030 | | - |
| 3031 | | - |
| 3032 | fputs_unlocked ( | - |
| 3033 | dcgettext (((void *)0), | - |
| 3034 | " -a, --all include pseudo, duplicate, inaccessible file systems\n -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 -h, --human-readable print sizes in powers of 1024 (e.g., 1023M)\n -H, --si print sizes in powers of 1000 (e.g., 1.1G)\n" | - |
| 3035 | , 5) | - |
| 3036 | , | - |
| 3037 | stdout | - |
| 3038 | ) | - |
| 3039 | | - |
| 3040 | | - |
| 3041 | | - |
| 3042 | | - |
| 3043 | | - |
| 3044 | | - |
| 3045 | ; | - |
| 3046 | fputs_unlocked ( | - |
| 3047 | dcgettext (((void *)0), | - |
| 3048 | " -i, --inodes list inode information instead of block usage\n -k like --block-size=1K\n -l, --local limit listing to local file systems\n --no-sync do not invoke sync before getting usage info (default)\n" | - |
| 3049 | , 5) | - |
| 3050 | , | - |
| 3051 | stdout | - |
| 3052 | ) | - |
| 3053 | | - |
| 3054 | | - |
| 3055 | | - |
| 3056 | | - |
| 3057 | | - |
| 3058 | ; | - |
| 3059 | fputs_unlocked ( | - |
| 3060 | dcgettext (((void *)0), | - |
| 3061 | " --output[=FIELD_LIST] use the output format defined by FIELD_LIST,\n or print all fields if FIELD_LIST is omitted.\n -P, --portability use the POSIX output format\n --sync invoke sync before getting usage info\n" | - |
| 3062 | , 5) | - |
| 3063 | , | - |
| 3064 | stdout | - |
| 3065 | ) | - |
| 3066 | | - |
| 3067 | | - |
| 3068 | | - |
| 3069 | | - |
| 3070 | ; | - |
| 3071 | fputs_unlocked ( | - |
| 3072 | dcgettext (((void *)0), | - |
| 3073 | " --total elide all entries insignificant to available space,\n and produce a grand total\n" | - |
| 3074 | , 5) | - |
| 3075 | , | - |
| 3076 | stdout | - |
| 3077 | ) | - |
| 3078 | | - |
| 3079 | | - |
| 3080 | ; | - |
| 3081 | fputs_unlocked ( | - |
| 3082 | dcgettext (((void *)0), | - |
| 3083 | " -t, --type=TYPE limit listing to file systems of type TYPE\n -T, --print-type print file system type\n -x, --exclude-type=TYPE limit listing to file systems not of type TYPE\n -v (ignored)\n" | - |
| 3084 | , 5) | - |
| 3085 | , | - |
| 3086 | stdout | - |
| 3087 | ) | - |
| 3088 | | - |
| 3089 | | - |
| 3090 | | - |
| 3091 | | - |
| 3092 | ; | - |
| 3093 | fputs_unlocked ( | - |
| 3094 | dcgettext (((void *)0), | - |
| 3095 | " --help display this help and exit\n" | - |
| 3096 | , 5) | - |
| 3097 | , | - |
| 3098 | stdout | - |
| 3099 | ); | - |
| 3100 | fputs_unlocked ( | - |
| 3101 | dcgettext (((void *)0), | - |
| 3102 | " --version output version information and exit\n" | - |
| 3103 | , 5) | - |
| 3104 | , | - |
| 3105 | stdout | - |
| 3106 | ); | - |
| 3107 | emit_blocksize_note ("DF"); | - |
| 3108 | emit_size_note (); | - |
| 3109 | fputs_unlocked ( | - |
| 3110 | dcgettext (((void *)0), | - |
| 3111 | "\nFIELD_LIST is a comma-separated list of columns to be included. Valid\nfield names are: 'source', 'fstype', 'itotal', 'iused', 'iavail', 'ipcent',\n'size', 'used', 'avail', 'pcent', 'file' and 'target' (see info page).\n" | - |
| 3112 | , 5) | - |
| 3113 | , | - |
| 3114 | stdout | - |
| 3115 | ) | - |
| 3116 | | - |
| 3117 | | - |
| 3118 | | - |
| 3119 | ; | - |
| 3120 | emit_ancillary_info ("df"); | - |
| 3121 | }executed 28 times by 1 test: end of block | 28 |
| 3122 | exit (status);executed 39 times by 1 test: exit (status); | 39 |
| 3123 | } | - |
| 3124 | | - |
| 3125 | int | - |
| 3126 | main (int argc, char **argv) | - |
| 3127 | { | - |
| 3128 | struct stat *stats ; | - |
| 3129 | | - |
| 3130 | ; | - |
| 3131 | set_program_name (argv[0]); | - |
| 3132 | setlocale ( | - |
| 3133 | 6 | - |
| 3134 | , ""); | - |
| 3135 | bindtextdomain ("coreutils", "/usr/local/share/locale"); | - |
| 3136 | textdomain ("coreutils"); | - |
| 3137 | | - |
| 3138 | atexit (close_stdout); | - |
| 3139 | | - |
| 3140 | fs_select_list = | - |
| 3141 | ((void *)0) | - |
| 3142 | ; | - |
| 3143 | fs_exclude_list = | - |
| 3144 | ((void *)0) | - |
| 3145 | ; | - |
| 3146 | show_all_fs = | - |
| 3147 | 0 | - |
| 3148 | ; | - |
| 3149 | show_listed_fs = | - |
| 3150 | 0 | - |
| 3151 | ; | - |
| 3152 | human_output_opts = -1; | - |
| 3153 | print_type = | - |
| 3154 | 0 | - |
| 3155 | ; | - |
| 3156 | file_systems_processed = | - |
| 3157 | 0 | - |
| 3158 | ; | - |
| 3159 | exit_status = | - |
| 3160 | 0 | - |
| 3161 | ; | - |
| 3162 | print_grand_total = | - |
| 3163 | 0 | - |
| 3164 | ; | - |
| 3165 | grand_fsu.fsu_blocksize = 1; | - |
| 3166 | | - |
| 3167 | | - |
| 3168 | | - |
| 3169 | _Bool | - |
| 3170 | posix_format = | - |
| 3171 | 0 | - |
| 3172 | ; | - |
| 3173 | | - |
| 3174 | const char *msg_mut_excl = | - |
| 3175 | dcgettext (((void *)0), | - |
| 3176 | "options %s and %s are mutually exclusive" | - |
| 3177 | , 5) | - |
| 3178 | ; | - |
| 3179 | | - |
| 3180 | while ( | - |
| 3181 | 1 | - |
| 3182 | ) | - |
| 3183 | { | - |
| 3184 | int oi = -1; | - |
| 3185 | int c = getopt_long (argc, argv, "aB:iF:hHklmPTt:vx:", long_options, | - |
| 3186 | &oi); | - |
| 3187 | if (c == -1| TRUE | evaluated 85 times by 1 test | | FALSE | evaluated 176 times by 1 test |
) | 85-176 |
| 3188 | break;executed 85 times by 1 test: break; | 85 |
| 3189 | | - |
| 3190 | switch (c) | - |
| 3191 | { | - |
| 3192 | caseexecuted 6 times by 1 test: case 'a': 'a':executed 6 times by 1 test: case 'a': | 6 |
| 3193 | show_all_fs = | - |
| 3194 | 1 | - |
| 3195 | ; | - |
| 3196 | break;executed 6 times by 1 test: break; | 6 |
| 3197 | caseexecuted 4 times by 1 test: case 'B': 'B':executed 4 times by 1 test: case 'B': | 4 |
| 3198 | { | - |
| 3199 | enum strtol_error e = human_options (optarg, &human_output_opts, | - |
| 3200 | &output_block_size); | - |
| 3201 | if (e != LONGINT_OK| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 2 times by 1 test |
) | 2 |
| 3202 | xstrtol_fatal (e, oi, c, long_options, optarg);executed 2 times by 1 test: xstrtol_fatal (e, oi, c, long_options, optarg); | 2 |
| 3203 | } | - |
| 3204 | break;executed 2 times by 1 test: break; | 2 |
| 3205 | caseexecuted 9 times by 1 test: case 'i': 'i':executed 9 times by 1 test: case 'i': | 9 |
| 3206 | if (header_mode == OUTPUT_MODE| TRUE | evaluated 1 time by 1 test | | FALSE | evaluated 8 times by 1 test |
) | 1-8 |
| 3207 | { | - |
| 3208 | error (0, 0, msg_mut_excl, "-i", "--output"); | - |
| 3209 | usage ( | - |
| 3210 | 1 | - |
| 3211 | ); | - |
| 3212 | } never executed: end of block | 0 |
| 3213 | header_mode = INODES_MODE; | - |
| 3214 | break;executed 8 times by 1 test: break; | 8 |
| 3215 | caseexecuted 4 times by 1 test: case 'h': 'h':executed 4 times by 1 test: case 'h': | 4 |
| 3216 | human_output_opts = human_autoscale | human_SI | human_base_1024; | - |
| 3217 | output_block_size = 1; | - |
| 3218 | break;executed 4 times by 1 test: break; | 4 |
| 3219 | caseexecuted 2 times by 1 test: case 'H': 'H':executed 2 times by 1 test: case 'H': | 2 |
| 3220 | human_output_opts = human_autoscale | human_SI; | - |
| 3221 | output_block_size = 1; | - |
| 3222 | break;executed 2 times by 1 test: break; | 2 |
| 3223 | caseexecuted 1 time by 1 test: case 'k': 'k':executed 1 time by 1 test: case 'k': | 1 |
| 3224 | human_output_opts = 0; | - |
| 3225 | output_block_size = 1024; | - |
| 3226 | break;executed 1 time by 1 test: break; | 1 |
| 3227 | caseexecuted 36 times by 1 test: case 'l': 'l':executed 36 times by 1 test: case 'l': | 36 |
| 3228 | show_local_fs = | - |
| 3229 | 1 | - |
| 3230 | ; | - |
| 3231 | break;executed 36 times by 1 test: break; | 36 |
| 3232 | case never executed: case 'm': 'm':never executed: case 'm': | 0 |
| 3233 | human_output_opts = 0; | - |
| 3234 | output_block_size = 1024 * 1024; | - |
| 3235 | break; never executed: break; | 0 |
| 3236 | caseexecuted 10 times by 1 test: case 'T': 'T':executed 10 times by 1 test: case 'T': | 10 |
| 3237 | if (header_mode == OUTPUT_MODE| TRUE | evaluated 1 time by 1 test | | FALSE | evaluated 9 times by 1 test |
) | 1-9 |
| 3238 | { | - |
| 3239 | error (0, 0, msg_mut_excl, "-T", "--output"); | - |
| 3240 | usage ( | - |
| 3241 | 1 | - |
| 3242 | ); | - |
| 3243 | } never executed: end of block | 0 |
| 3244 | print_type = | - |
| 3245 | 1 | - |
| 3246 | ; | - |
| 3247 | break;executed 9 times by 1 test: break; | 9 |
| 3248 | caseexecuted 8 times by 1 test: case 'P': 'P':executed 8 times by 1 test: case 'P': | 8 |
| 3249 | if (header_mode == OUTPUT_MODE| TRUE | evaluated 1 time by 1 test | | FALSE | evaluated 7 times by 1 test |
) | 1-7 |
| 3250 | { | - |
| 3251 | error (0, 0, msg_mut_excl, "-P", "--output"); | - |
| 3252 | usage ( | - |
| 3253 | 1 | - |
| 3254 | ); | - |
| 3255 | } never executed: end of block | 0 |
| 3256 | posix_format = | - |
| 3257 | 1 | - |
| 3258 | ; | - |
| 3259 | break;executed 7 times by 1 test: break; | 7 |
| 3260 | caseexecuted 1 time by 1 test: case SYNC_OPTION: SYNC_OPTION:executed 1 time by 1 test: case SYNC_OPTION: | 1 |
| 3261 | require_sync = | - |
| 3262 | 1 | - |
| 3263 | ; | - |
| 3264 | break;executed 1 time by 1 test: break; | 1 |
| 3265 | caseexecuted 1 time by 1 test: case NO_SYNC_OPTION: NO_SYNC_OPTION:executed 1 time by 1 test: case NO_SYNC_OPTION: | 1 |
| 3266 | require_sync = | - |
| 3267 | 0 | - |
| 3268 | ; | - |
| 3269 | break;executed 1 time by 1 test: break; | 1 |
| 3270 | | - |
| 3271 | case never executed: case 'F': 'F':never executed: case 'F': | 0 |
| 3272 | | - |
| 3273 | caseexecuted 8 times by 1 test: case 't': 't':executed 8 times by 1 test: case 't': | 8 |
| 3274 | add_fs_type (optarg); | - |
| 3275 | break;executed 8 times by 1 test: break; | 8 |
| 3276 | | - |
| 3277 | caseexecuted 1 time by 1 test: case 'v': 'v':executed 1 time by 1 test: case 'v': | 1 |
| 3278 | | - |
| 3279 | break;executed 1 time by 1 test: break; | 1 |
| 3280 | caseexecuted 4 times by 1 test: case 'x': 'x':executed 4 times by 1 test: case 'x': | 4 |
| 3281 | add_excluded_fs_type (optarg); | - |
| 3282 | break;executed 4 times by 1 test: break; | 4 |
| 3283 | | - |
| 3284 | caseexecuted 25 times by 1 test: case OUTPUT_OPTION: OUTPUT_OPTION:executed 25 times by 1 test: case OUTPUT_OPTION: | 25 |
| 3285 | if (header_mode == INODES_MODE| TRUE | evaluated 1 time by 1 test | | FALSE | evaluated 24 times by 1 test |
) | 1-24 |
| 3286 | { | - |
| 3287 | error (0, 0, msg_mut_excl, "-i", "--output"); | - |
| 3288 | usage ( | - |
| 3289 | 1 | - |
| 3290 | ); | - |
| 3291 | } never executed: end of block | 0 |
| 3292 | if (posix_format| TRUE | evaluated 1 time by 1 test | | FALSE | evaluated 23 times by 1 test |
&& header_mode == DEFAULT_MODE| TRUE | evaluated 1 time by 1 test | | FALSE | never evaluated |
) | 0-23 |
| 3293 | { | - |
| 3294 | error (0, 0, msg_mut_excl, "-P", "--output"); | - |
| 3295 | usage ( | - |
| 3296 | 1 | - |
| 3297 | ); | - |
| 3298 | } never executed: end of block | 0 |
| 3299 | if (print_type| TRUE | evaluated 1 time by 1 test | | FALSE | evaluated 22 times by 1 test |
) | 1-22 |
| 3300 | { | - |
| 3301 | error (0, 0, msg_mut_excl, "-T", "--output"); | - |
| 3302 | usage ( | - |
| 3303 | 1 | - |
| 3304 | ); | - |
| 3305 | } never executed: end of block | 0 |
| 3306 | header_mode = OUTPUT_MODE; | - |
| 3307 | if (optarg| TRUE | evaluated 17 times by 1 test | | FALSE | evaluated 5 times by 1 test |
) | 5-17 |
| 3308 | decode_output_arg (optarg);executed 17 times by 1 test: decode_output_arg (optarg); | 17 |
| 3309 | break;executed 20 times by 1 test: break; | 20 |
| 3310 | | - |
| 3311 | caseexecuted 10 times by 1 test: case TOTAL_OPTION: TOTAL_OPTION:executed 10 times by 1 test: case TOTAL_OPTION: | 10 |
| 3312 | print_grand_total = | - |
| 3313 | 1 | - |
| 3314 | ; | - |
| 3315 | break;executed 10 times by 1 test: break; | 10 |
| 3316 | | - |
| 3317 | caseexecuted 28 times by 1 test: case GETOPT_HELP_CHAR: GETOPT_HELP_CHAR:executed 28 times by 1 test: case GETOPT_HELP_CHAR: usage ( | 28 |
| 3318 | 0 | - |
| 3319 | ); break; never executed: break; ; | 0 |
| 3320 | caseexecuted 15 times by 1 test: case GETOPT_VERSION_CHAR: GETOPT_VERSION_CHAR:executed 15 times by 1 test: case GETOPT_VERSION_CHAR: version_etc ( | 15 |
| 3321 | stdout | - |
| 3322 | , "df", "GNU coreutils", Version, ("Torbjorn Granlund"), ("David MacKenzie"), ("Paul Eggert"), (char *) | - |
| 3323 | ((void *)0) | - |
| 3324 | ); exit (executed 15 times by 1 test: exit ( 0 ); | 15 |
| 3325 | 0executed 15 times by 1 test: exit ( 0 ); | 15 |
| 3326 | );executed 15 times by 1 test: exit ( 0 ); break;never executed: break; ; | 0-15 |
| 3327 | | - |
| 3328 | defaultexecuted 3 times by 1 test: default: :executed 3 times by 1 test: default: | 3 |
| 3329 | usage ( | - |
| 3330 | 1 | - |
| 3331 | ); | - |
| 3332 | } never executed: end of block | 0 |
| 3333 | } | - |
| 3334 | | - |
| 3335 | if (human_output_opts == -1| TRUE | evaluated 81 times by 1 test | | FALSE | evaluated 4 times by 1 test |
) | 4-81 |
| 3336 | { | - |
| 3337 | if (posix_format| TRUE | evaluated 3 times by 1 test | | FALSE | evaluated 78 times by 1 test |
) | 3-78 |
| 3338 | { | - |
| 3339 | human_output_opts = 0; | - |
| 3340 | output_block_size = (getenv ("POSIXLY_CORRECT")| TRUE | never evaluated | | FALSE | evaluated 3 times by 1 test |
? 512 : 1024); | 0-3 |
| 3341 | }executed 3 times by 1 test: end of block | 3 |
| 3342 | else | - |
| 3343 | human_options (getenv ("DF_BLOCK_SIZE"),executed 78 times by 1 test: human_options (getenv ("DF_BLOCK_SIZE"), &human_output_opts, &output_block_size); | 78 |
| 3344 | &human_output_opts, &output_block_size);executed 78 times by 1 test: human_options (getenv ("DF_BLOCK_SIZE"), &human_output_opts, &output_block_size); | 78 |
| 3345 | } | - |
| 3346 | | - |
| 3347 | if (header_mode == INODES_MODE| TRUE | evaluated 5 times by 1 test | | FALSE | evaluated 80 times by 1 test |
|| header_mode == OUTPUT_MODE| TRUE | evaluated 14 times by 1 test | | FALSE | evaluated 66 times by 1 test |
) | 5-80 |
| 3348 | ;executed 19 times by 1 test: ; | 19 |
| 3349 | else if (human_output_opts & human_autoscale| TRUE | never evaluated | | FALSE | evaluated 66 times by 1 test |
) | 0-66 |
| 3350 | header_mode = HUMAN_MODE; never executed: header_mode = HUMAN_MODE; | 0 |
| 3351 | else if (posix_format| TRUE | evaluated 3 times by 1 test | | FALSE | evaluated 63 times by 1 test |
) | 3-63 |
| 3352 | header_mode = POSIX_MODE;executed 3 times by 1 test: header_mode = POSIX_MODE; | 3 |
| 3353 | | - |
| 3354 | | - |
| 3355 | { | - |
| 3356 | | - |
| 3357 | _Bool | - |
| 3358 | match = | - |
| 3359 | 0 | - |
| 3360 | ; | - |
| 3361 | struct fs_type_list *fs_incl; | - |
| 3362 | for (fs_incl = fs_select_list; fs_incl| TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 85 times by 1 test |
; fs_incl = fs_incl->fs_next) | 6-85 |
| 3363 | { | - |
| 3364 | struct fs_type_list *fs_excl; | - |
| 3365 | for (fs_excl = fs_exclude_list; fs_excl| TRUE | never evaluated | | FALSE | evaluated 6 times by 1 test |
; fs_excl = fs_excl->fs_next) | 0-6 |
| 3366 | { | - |
| 3367 | if ((| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 3368 | __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 3369 | fs_incl->fs_name| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 3370 | ) && __builtin_constant_p (| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 3371 | fs_excl->fs_name| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 3372 | ) && (__s1_len = __builtin_strlen (| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 3373 | fs_incl->fs_name| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 3374 | ), __s2_len = __builtin_strlen (| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 3375 | fs_excl->fs_name| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 3376 | ), (!((size_t)(const void *)((| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 3377 | fs_incl->fs_name| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 3378 | ) + 1) - (size_t)(const void *)(| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 3379 | fs_incl->fs_name| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 3380 | ) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 3381 | fs_excl->fs_name| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 3382 | ) + 1) - (size_t)(const void *)(| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 3383 | fs_excl->fs_name| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 3384 | ) == 1) || __s2_len >= 4)) ? __builtin_strcmp (| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 3385 | fs_incl->fs_name| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 3386 | , | TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 3387 | fs_excl->fs_name| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 3388 | ) : (__builtin_constant_p (| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 3389 | fs_incl->fs_name| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 3390 | ) && ((size_t)(const void *)((| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 3391 | fs_incl->fs_name| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 3392 | ) + 1) - (size_t)(const void *)(| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 3393 | fs_incl->fs_name| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 3394 | ) == 1) && (__s1_len = __builtin_strlen (| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 3395 | fs_incl->fs_name| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 3396 | ), __s1_len < 4) ? (__builtin_constant_p (| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 3397 | fs_excl->fs_name| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 3398 | ) && ((size_t)(const void *)((| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 3399 | fs_excl->fs_name| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 3400 | ) + 1) - (size_t)(const void *)(| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 3401 | fs_excl->fs_name| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 3402 | ) == 1) ? __builtin_strcmp (| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 3403 | fs_incl->fs_name| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 3404 | , | TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 3405 | fs_excl->fs_name| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 3406 | ) : (__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 3407 | fs_excl->fs_name| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 3408 | ); int __result = (((const unsigned char *) (const char *) (| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 3409 | fs_incl->fs_name| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 3410 | ))[0] - __s2[0]); if (__s1_len > 0| TRUE | never evaluated | | FALSE | never evaluated |
&& __result == 0| TRUE | never evaluated | | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 3411 | fs_incl->fs_name| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 3412 | ))[1] - __s2[1]); if (__s1_len > 1| TRUE | never evaluated | | FALSE | never evaluated |
&& __result == 0| TRUE | never evaluated | | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 3413 | fs_incl->fs_name| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 3414 | ))[2] - __s2[2]); if (__s1_len > 2| TRUE | never evaluated | | FALSE | never evaluated |
&& __result == 0| TRUE | never evaluated | | FALSE | never evaluated |
) __result = (((const unsigned char *) (const char *) (never executed: __result = (((const unsigned char *) (const char *) ( fs_incl->fs_name ))[3] - __s2[3]); | 0 |
| 3415 | fs_incl->fs_name| TRUE | never evaluated | | FALSE | never evaluated |
never executed: __result = (((const unsigned char *) (const char *) ( fs_incl->fs_name ))[3] - __s2[3]); | 0 |
| 3416 | ))[3] - __s2[3]); } } __result; }))) : (__builtin_constant_p (| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 3417 | fs_excl->fs_name| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 3418 | ) && ((size_t)(const void *)((| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 3419 | fs_excl->fs_name| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 3420 | ) + 1) - (size_t)(const void *)(| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 3421 | fs_excl->fs_name| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 3422 | ) == 1) && (__s2_len = __builtin_strlen (| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 3423 | fs_excl->fs_name| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 3424 | ), __s2_len < 4) ? (__builtin_constant_p (| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 3425 | fs_incl->fs_name| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 3426 | ) && ((size_t)(const void *)((| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 3427 | fs_incl->fs_name| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 3428 | ) + 1) - (size_t)(const void *)(| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 3429 | fs_incl->fs_name| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 3430 | ) == 1) ? __builtin_strcmp (| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 3431 | fs_incl->fs_name| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 3432 | , | TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 3433 | fs_excl->fs_name| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 3434 | ) : -(__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 3435 | fs_incl->fs_name| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 3436 | ); int __result = (((const unsigned char *) (const char *) (| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 3437 | fs_excl->fs_name| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 3438 | ))[0] - __s2[0]); if (__s2_len > 0| TRUE | never evaluated | | FALSE | never evaluated |
&& __result == 0| TRUE | never evaluated | | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 3439 | fs_excl->fs_name| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 3440 | ))[1] - __s2[1]); if (__s2_len > 1| TRUE | never evaluated | | FALSE | never evaluated |
&& __result == 0| TRUE | never evaluated | | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 3441 | fs_excl->fs_name| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 3442 | ))[2] - __s2[2]); if (__s2_len > 2| TRUE | never evaluated | | FALSE | never evaluated |
&& __result == 0| TRUE | never evaluated | | FALSE | never evaluated |
) __result = (((const unsigned char *) (const char *) (never executed: __result = (((const unsigned char *) (const char *) ( fs_excl->fs_name ))[3] - __s2[3]); | 0 |
| 3443 | fs_excl->fs_name| TRUE | never evaluated | | FALSE | never evaluated |
never executed: __result = (((const unsigned char *) (const char *) ( fs_excl->fs_name ))[3] - __s2[3]); | 0 |
| 3444 | ))[3] - __s2[3]); } } __result; }))) : __builtin_strcmp (| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 3445 | fs_incl->fs_name| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 3446 | , | TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 3447 | fs_excl->fs_name| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 3448 | )))); }) | TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 3449 | == 0)| TRUE | never evaluated | | FALSE | never evaluated |
) | 0 |
| 3450 | { | - |
| 3451 | error (0, 0, | - |
| 3452 | | - |
| 3453 | dcgettext (((void *)0), | - |
| 3454 | "file system type %s both selected and excluded" | - |
| 3455 | , 5) | - |
| 3456 | , | - |
| 3457 | quote (fs_incl->fs_name)); | - |
| 3458 | match = | - |
| 3459 | 1 | - |
| 3460 | ; | - |
| 3461 | break; never executed: break; | 0 |
| 3462 | } | - |
| 3463 | } never executed: end of block | 0 |
| 3464 | }executed 6 times by 1 test: end of block | 6 |
| 3465 | if (match| TRUE | never evaluated | | FALSE | evaluated 85 times by 1 test |
) | 0-85 |
| 3466 | return never executed: return 1 ; never executed: return 1 ; | 0 |
| 3467 | 1 never executed: return 1 ; | 0 |
| 3468 | ; never executed: return 1 ; | 0 |
| 3469 | } | - |
| 3470 | | - |
| 3471 | ((0 < optind) ? (void) 0 : __builtin_unreachable ()); | - |
| 3472 | | - |
| 3473 | if (optind < argc| TRUE | evaluated 48 times by 1 test | | FALSE | evaluated 37 times by 1 test |
) | 37-48 |
| 3474 | { | - |
| 3475 | | - |
| 3476 | | - |
| 3477 | | - |
| 3478 | stats = xnmalloc (argc - optind, sizeof *stats); | - |
| 3479 | for (int i = optind; i < argc| TRUE | evaluated 50 times by 1 test | | FALSE | evaluated 48 times by 1 test |
; ++i) | 48-50 |
| 3480 | { | - |
| 3481 | if (stat (argv[i], &stats[i - optind])| TRUE | evaluated 1 time by 1 test | | FALSE | evaluated 49 times by 1 test |
) | 1-49 |
| 3482 | { | - |
| 3483 | error (0, | - |
| 3484 | (*__errno_location ()) | - |
| 3485 | , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, argv[i])); | - |
| 3486 | exit_status = | - |
| 3487 | 1 | - |
| 3488 | ; | - |
| 3489 | argv[i] = | - |
| 3490 | ((void *)0) | - |
| 3491 | ; | - |
| 3492 | }executed 1 time by 1 test: end of block | 1 |
| 3493 | else if (! | TRUE | evaluated 48 times by 1 test | | FALSE | evaluated 1 time by 1 test |
| 1-48 |
| 3494 | ((((| TRUE | evaluated 48 times by 1 test | | FALSE | evaluated 1 time by 1 test |
| 1-48 |
| 3495 | stats[i - optind].st_mode| TRUE | evaluated 48 times by 1 test | | FALSE | evaluated 1 time by 1 test |
| 1-48 |
| 3496 | )) & 0170000) == (0010000))| TRUE | evaluated 48 times by 1 test | | FALSE | evaluated 1 time by 1 test |
| 1-48 |
| 3497 | ) | - |
| 3498 | { | - |
| 3499 | | - |
| 3500 | int fd = open (argv[i], | - |
| 3501 | 00 | - |
| 3502 | | | - |
| 3503 | 0400 | - |
| 3504 | ); | - |
| 3505 | if (0 <= fd| TRUE | evaluated 45 times by 1 test | | FALSE | evaluated 3 times by 1 test |
) | 3-45 |
| 3506 | close (fd);executed 45 times by 1 test: close (fd); | 45 |
| 3507 | }executed 48 times by 1 test: end of block | 48 |
| 3508 | }executed 50 times by 1 test: end of block | 50 |
| 3509 | }executed 48 times by 1 test: end of block | 48 |
| 3510 | | - |
| 3511 | mount_list = | - |
| 3512 | read_file_system_list ((fs_select_list != | - |
| 3513 | ((void *)0) | - |
| 3514 | | - |
| 3515 | || fs_exclude_list != | - |
| 3516 | ((void *)0) | - |
| 3517 | | - |
| 3518 | || print_type | - |
| 3519 | || field_data[FSTYPE_FIELD].used | - |
| 3520 | || show_local_fs)); | - |
| 3521 | | - |
| 3522 | if (mount_list == | TRUE | evaluated 19 times by 1 test | | FALSE | evaluated 66 times by 1 test |
| 19-66 |
| 3523 | ((void *)0)| TRUE | evaluated 19 times by 1 test | | FALSE | evaluated 66 times by 1 test |
| 19-66 |
| 3524 | ) | - |
| 3525 | { | - |
| 3526 | | - |
| 3527 | | - |
| 3528 | | - |
| 3529 | | - |
| 3530 | int status = 0; | - |
| 3531 | if ( ! (optind < argc)| TRUE | evaluated 10 times by 1 test | | FALSE | evaluated 9 times by 1 test |
| 9-10 |
| 3532 | || (show_all_fs| TRUE | evaluated 1 time by 1 test | | FALSE | evaluated 8 times by 1 test |
| 1-8 |
| 3533 | || show_local_fs| TRUE | evaluated 1 time by 1 test | | FALSE | evaluated 7 times by 1 test |
| 1-7 |
| 3534 | || fs_select_list != | TRUE | evaluated 1 time by 1 test | | FALSE | evaluated 6 times by 1 test |
| 1-6 |
| 3535 | ((void *)0)| TRUE | evaluated 1 time by 1 test | | FALSE | evaluated 6 times by 1 test |
| 1-6 |
| 3536 | | - |
| 3537 | || fs_exclude_list != | TRUE | evaluated 1 time by 1 test | | FALSE | evaluated 5 times by 1 test |
| 1-5 |
| 3538 | ((void *)0)| TRUE | evaluated 1 time by 1 test | | FALSE | evaluated 5 times by 1 test |
| 1-5 |
| 3539 | )) | - |
| 3540 | { | - |
| 3541 | status = | - |
| 3542 | 1 | - |
| 3543 | ; | - |
| 3544 | }executed 14 times by 1 test: end of block | 14 |
| 3545 | const char *warning = (status == 0| TRUE | evaluated 5 times by 1 test | | FALSE | evaluated 14 times by 1 test |
? | 5-14 |
| 3546 | dcgettext (((void *)0), | - |
| 3547 | "Warning: " | - |
| 3548 | , 5) | - |
| 3549 | : ""); | - |
| 3550 | error (status, | - |
| 3551 | (*__errno_location ()) | - |
| 3552 | , "%s%s", warning, | - |
| 3553 | | - |
| 3554 | dcgettext (((void *)0), | - |
| 3555 | "cannot read table of mounted file systems" | - |
| 3556 | , 5) | - |
| 3557 | ); | - |
| 3558 | }executed 5 times by 1 test: end of block | 5 |
| 3559 | | - |
| 3560 | if (require_sync| TRUE | never evaluated | | FALSE | evaluated 71 times by 1 test |
) | 0-71 |
| 3561 | sync (); never executed: sync (); | 0 |
| 3562 | | - |
| 3563 | get_field_list (); | - |
| 3564 | get_header (); | - |
| 3565 | | - |
| 3566 | if (optind < argc| TRUE | evaluated 44 times by 1 test | | FALSE | evaluated 27 times by 1 test |
) | 27-44 |
| 3567 | { | - |
| 3568 | | - |
| 3569 | show_listed_fs = | - |
| 3570 | 1 | - |
| 3571 | ; | - |
| 3572 | | - |
| 3573 | for (int i = optind; i < argc| TRUE | evaluated 46 times by 1 test | | FALSE | evaluated 44 times by 1 test |
; ++i) | 44-46 |
| 3574 | if (argv[i]| TRUE | evaluated 45 times by 1 test | | FALSE | evaluated 1 time by 1 test |
) | 1-45 |
| 3575 | get_entry (argv[i], &stats[i - optind]);executed 45 times by 1 test: get_entry (argv[i], &stats[i - optind]); | 45 |
| 3576 | | - |
| 3577 | ; | - |
| 3578 | }executed 44 times by 1 test: end of block | 44 |
| 3579 | else | - |
| 3580 | get_all_entries ();executed 27 times by 1 test: get_all_entries (); | 27 |
| 3581 | | - |
| 3582 | if (file_systems_processed| TRUE | evaluated 67 times by 1 test | | FALSE | evaluated 4 times by 1 test |
) | 4-67 |
| 3583 | { | - |
| 3584 | if (print_grand_total| TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 61 times by 1 test |
) | 6-61 |
| 3585 | get_dev ("total",executed 6 times by 1 test: get_dev ("total", (field_data[SOURCE_FIELD].used ? "-" : "total"), ((void *)0) , ((void *)0) , ((void *)0) , 0 , 0 , &grand_fsu, 0 ); | 6 |
| 3586 | (field_data[SOURCE_FIELD].used ? "-" : "total"),executed 6 times by 1 test: get_dev ("total", (field_data[SOURCE_FIELD].used ? "-" : "total"), ((void *)0) , ((void *)0) , ((void *)0) , 0 , 0 , &grand_fsu, 0 ); | 6 |
| 3587 | executed 6 times by 1 test: get_dev ("total", (field_data[SOURCE_FIELD].used ? "-" : "total"), ((void *)0) , ((void *)0) , ((void *)0) , 0 , 0 , &grand_fsu, 0 ); | 6 |
| 3588 | ((void *)0)executed 6 times by 1 test: get_dev ("total", (field_data[SOURCE_FIELD].used ? "-" : "total"), ((void *)0) , ((void *)0) , ((void *)0) , 0 , 0 , &grand_fsu, 0 ); | 6 |
| 3589 | , executed 6 times by 1 test: get_dev ("total", (field_data[SOURCE_FIELD].used ? "-" : "total"), ((void *)0) , ((void *)0) , ((void *)0) , 0 , 0 , &grand_fsu, 0 ); | 6 |
| 3590 | ((void *)0)executed 6 times by 1 test: get_dev ("total", (field_data[SOURCE_FIELD].used ? "-" : "total"), ((void *)0) , ((void *)0) , ((void *)0) , 0 , 0 , &grand_fsu, 0 ); | 6 |
| 3591 | , executed 6 times by 1 test: get_dev ("total", (field_data[SOURCE_FIELD].used ? "-" : "total"), ((void *)0) , ((void *)0) , ((void *)0) , 0 , 0 , &grand_fsu, 0 ); | 6 |
| 3592 | ((void *)0)executed 6 times by 1 test: get_dev ("total", (field_data[SOURCE_FIELD].used ? "-" : "total"), ((void *)0) , ((void *)0) , ((void *)0) , 0 , 0 , &grand_fsu, 0 ); | 6 |
| 3593 | , executed 6 times by 1 test: get_dev ("total", (field_data[SOURCE_FIELD].used ? "-" : "total"), ((void *)0) , ((void *)0) , ((void *)0) , 0 , 0 , &grand_fsu, 0 ); | 6 |
| 3594 | 0executed 6 times by 1 test: get_dev ("total", (field_data[SOURCE_FIELD].used ? "-" : "total"), ((void *)0) , ((void *)0) , ((void *)0) , 0 , 0 , &grand_fsu, 0 ); | 6 |
| 3595 | , executed 6 times by 1 test: get_dev ("total", (field_data[SOURCE_FIELD].used ? "-" : "total"), ((void *)0) , ((void *)0) , ((void *)0) , 0 , 0 , &grand_fsu, 0 ); | 6 |
| 3596 | 0executed 6 times by 1 test: get_dev ("total", (field_data[SOURCE_FIELD].used ? "-" : "total"), ((void *)0) , ((void *)0) , ((void *)0) , 0 , 0 , &grand_fsu, 0 ); | 6 |
| 3597 | , &grand_fsu, executed 6 times by 1 test: get_dev ("total", (field_data[SOURCE_FIELD].used ? "-" : "total"), ((void *)0) , ((void *)0) , ((void *)0) , 0 , 0 , &grand_fsu, 0 ); | 6 |
| 3598 | 0executed 6 times by 1 test: get_dev ("total", (field_data[SOURCE_FIELD].used ? "-" : "total"), ((void *)0) , ((void *)0) , ((void *)0) , 0 , 0 , &grand_fsu, 0 ); | 6 |
| 3599 | );executed 6 times by 1 test: get_dev ("total", (field_data[SOURCE_FIELD].used ? "-" : "total"), ((void *)0) , ((void *)0) , ((void *)0) , 0 , 0 , &grand_fsu, 0 ); | 6 |
| 3600 | | - |
| 3601 | print_table (); | - |
| 3602 | }executed 67 times by 1 test: end of block | 67 |
| 3603 | else | - |
| 3604 | { | - |
| 3605 | | - |
| 3606 | | - |
| 3607 | if (exit_status == | TRUE | evaluated 3 times by 1 test | | FALSE | evaluated 1 time by 1 test |
| 1-3 |
| 3608 | 0| TRUE | evaluated 3 times by 1 test | | FALSE | evaluated 1 time by 1 test |
| 1-3 |
| 3609 | ) | - |
| 3610 | ((executed 3 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"no file systems processed\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "no file systems processed" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "no file systems processed" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); !!sizeof (struct { _Static_assert (executed 3 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"no file systems processed\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "no file systems processed" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "no file systems processed" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 3 |
| 3611 | 1executed 3 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"no file systems processed\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "no file systems processed" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "no file systems processed" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 3 |
| 3612 | , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"no file systems processed\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error (executed 3 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"no file systems processed\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "no file systems processed" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "no file systems processed" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 3 |
| 3613 | 1executed 3 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"no file systems processed\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "no file systems processed" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "no file systems processed" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 3 |
| 3614 | , 0, executed 3 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"no file systems processed\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "no file systems processed" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "no file systems processed" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 3 |
| 3615 | dcgettext (((void *)0), executed 3 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"no file systems processed\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "no file systems processed" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "no file systems processed" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 3 |
| 3616 | "no file systems processed"executed 3 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"no file systems processed\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "no file systems processed" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "no file systems processed" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 3 |
| 3617 | , 5)executed 3 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"no file systems processed\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "no file systems processed" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "no file systems processed" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 3 |
| 3618 | ), ((executed 3 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"no file systems processed\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "no file systems processed" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "no file systems processed" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 3 |
| 3619 | 0executed 3 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"no file systems processed\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "no file systems processed" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "no file systems processed" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 3 |
| 3620 | ) ? (void) 0 : __builtin_unreachable ()))) : ((error (executed 3 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"no file systems processed\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "no file systems processed" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "no file systems processed" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 3 |
| 3621 | 1executed 3 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"no file systems processed\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "no file systems processed" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "no file systems processed" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 3 |
| 3622 | , 0, executed 3 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"no file systems processed\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "no file systems processed" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "no file systems processed" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 3 |
| 3623 | dcgettext (((void *)0), executed 3 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"no file systems processed\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "no file systems processed" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "no file systems processed" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 3 |
| 3624 | "no file systems processed"executed 3 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"no file systems processed\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "no file systems processed" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "no file systems processed" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 3 |
| 3625 | , 5)executed 3 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"no file systems processed\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "no file systems processed" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "no file systems processed" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 3 |
| 3626 | ), ((executed 3 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"no file systems processed\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "no file systems processed" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "no file systems processed" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 3 |
| 3627 | 0executed 3 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"no file systems processed\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "no file systems processed" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "no file systems processed" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 3 |
| 3628 | ) ? (void) 0 : __builtin_unreachable ()))));executed 3 times by 1 test: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"no file systems processed\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , 0, dcgettext (((void *)0), "no file systems processed" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "no file systems processed" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 3 |
| 3629 | }executed 1 time by 1 test: end of block | 1 |
| 3630 | | - |
| 3631 | ; | - |
| 3632 | | - |
| 3633 | returnexecuted 68 times by 1 test: return exit_status; exit_status;executed 68 times by 1 test: return exit_status; | 68 |
| 3634 | } | - |
| | |