| Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/coreutils/src/gnulib/lib/fd-safer.c |
| Switch to Source code | Preprocessed file |
| Line | Source | Count | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | - | |||||||||||||
| 2 | - | |||||||||||||
| 3 | - | |||||||||||||
| 4 | int | - | ||||||||||||
| 5 | fd_safer (int fd) | - | ||||||||||||
| 6 | { | - | ||||||||||||
| 7 | if ( | - | ||||||||||||
| 8 | 0
| 328-87721 | ||||||||||||
| 9 | <= fd
| 5-87721 | ||||||||||||
| 10 | 2
| 5-87716 | ||||||||||||
| 11 | ) | - | ||||||||||||
| 12 | { | - | ||||||||||||
| 13 | int f = dup_safer (fd); | - | ||||||||||||
| 14 | int e = | - | ||||||||||||
| 15 | (*__errno_location ()) | - | ||||||||||||
| 16 | ; | - | ||||||||||||
| 17 | close (fd); | - | ||||||||||||
| 18 | - | |||||||||||||
| 19 | (*__errno_location ()) | - | ||||||||||||
| 20 | = e; | - | ||||||||||||
| 21 | fd = f; | - | ||||||||||||
| 22 | } executed 5 times by 3 tests: end of blockExecuted by:
| 5 | ||||||||||||
| 23 | - | |||||||||||||
| 24 | return executed 88049 times by 15 tests: fd;return fd;Executed by:
executed 88049 times by 15 tests: return fd;Executed by:
| 88049 | ||||||||||||
| 25 | } | - | ||||||||||||
| Switch to Source code | Preprocessed file |