Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/coreutils/src/gnulib/lib/close-stream.c |
Switch to Source code | Preprocessed file |
Line | Source | Count | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | - | |||||||||||||||||||
2 | - | |||||||||||||||||||
3 | - | |||||||||||||||||||
4 | - | |||||||||||||||||||
5 | - | |||||||||||||||||||
6 | - | |||||||||||||||||||
7 | int | - | ||||||||||||||||||
8 | close_stream (FILE *stream) | - | ||||||||||||||||||
9 | { | - | ||||||||||||||||||
10 | const | - | ||||||||||||||||||
11 | _Bool | - | ||||||||||||||||||
12 | some_pending = (__fpending (stream) != 0); | - | ||||||||||||||||||
13 | const | - | ||||||||||||||||||
14 | _Bool | - | ||||||||||||||||||
15 | prev_fail = (ferror_unlocked (stream) != 0); | - | ||||||||||||||||||
16 | const | - | ||||||||||||||||||
17 | _Bool | - | ||||||||||||||||||
18 | fclose_fail = ( | - | ||||||||||||||||||
19 | rpl_fclose | - | ||||||||||||||||||
20 | (stream) != 0); | - | ||||||||||||||||||
21 | if (prev_fail
| 0-78835 | ||||||||||||||||||
22 | (*
| 0-24 | ||||||||||||||||||
23 | !=
| 0-24 | ||||||||||||||||||
24 | 9
| 0-24 | ||||||||||||||||||
25 | ))) | - | ||||||||||||||||||
26 | { | - | ||||||||||||||||||
27 | if (! fclose_fail
| 0-4 | ||||||||||||||||||
28 | - | |||||||||||||||||||
29 | (* never executed: __errno_location ()) (*__errno_location ()) = 0; never executed: (*__errno_location ()) = 0; | 0 | ||||||||||||||||||
30 | = 0; never executed: (*__errno_location ()) = 0; | 0 | ||||||||||||||||||
31 | return executed 4 times by 1 test: return (-1) ; Executed by:
executed 4 times by 1 test: return (-1) ; Executed by:
| 4 | ||||||||||||||||||
32 | (-1) executed 4 times by 1 test: return (-1) ; Executed by:
| 4 | ||||||||||||||||||
33 | ; executed 4 times by 1 test: return (-1) ; Executed by:
| 4 | ||||||||||||||||||
34 | } | - | ||||||||||||||||||
35 | - | |||||||||||||||||||
36 | return executed 78831 times by 106 tests: 0;return 0; Executed by:
executed 78831 times by 106 tests: return 0; Executed by:
| 78831 | ||||||||||||||||||
37 | } | - | ||||||||||||||||||
Switch to Source code | Preprocessed file |