| Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/coreutils/src/gnulib/lib/write-any-file.c |
| Switch to Source code | Preprocessed file |
| Line | Source | Count | ||||||
|---|---|---|---|---|---|---|---|---|
| 1 | - | |||||||
| 2 | - | |||||||
| 3 | - | |||||||
| 4 | - | |||||||
| 5 | - | |||||||
| 6 | - | |||||||
| 7 | _Bool | - | ||||||
| 8 | - | |||||||
| 9 | can_write_any_file (void) | - | ||||||
| 10 | { | - | ||||||
| 11 | static | - | ||||||
| 12 | _Bool | - | ||||||
| 13 | initialized; | - | ||||||
| 14 | static | - | ||||||
| 15 | _Bool | - | ||||||
| 16 | can_write; | - | ||||||
| 17 | - | |||||||
| 18 | if (! initialized
| 26-130 | ||||||
| 19 | { | - | ||||||
| 20 | - | |||||||
| 21 | _Bool | - | ||||||
| 22 | can = | - | ||||||
| 23 | 0 | - | ||||||
| 24 | ; | - | ||||||
| 25 | - | |||||||
| 26 | - | |||||||
| 27 | - | |||||||
| 28 | - | |||||||
| 29 | can = (geteuid () == 0); | - | ||||||
| 30 | - | |||||||
| 31 | can_write = can; | - | ||||||
| 32 | initialized = | - | ||||||
| 33 | 1 | - | ||||||
| 34 | ; | - | ||||||
| 35 | } executed 26 times by 3 tests: end of blockExecuted by:
| 26 | ||||||
| 36 | - | |||||||
| 37 | return executed 156 times by 3 tests: can_write;return can_write;Executed by:
executed 156 times by 3 tests: return can_write;Executed by:
| 156 | ||||||
| 38 | } | - | ||||||
| Switch to Source code | Preprocessed file |