| Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/coreutils/src/lib/fseeko.c |
| Switch to Source code | Preprocessed file |
| Line | Source | Count | ||||||
|---|---|---|---|---|---|---|---|---|
| 1 | - | |||||||
| 2 | - | |||||||
| 3 | - | |||||||
| 4 | - | |||||||
| 5 | - | |||||||
| 6 | - | |||||||
| 7 | - | |||||||
| 8 | int | - | ||||||
| 9 | - | |||||||
| 10 | rpl_fseeko | - | ||||||
| 11 | (FILE *fp, off_t offset, int whence) | - | ||||||
| 12 | { | - | ||||||
| 13 | if (fp->_IO_read_end == fp->_IO_read_ptr
| 2 | ||||||
| 14 | && fp->_IO_write_ptr == fp->_IO_write_base
| 0-2 | ||||||
| 15 | && fp->_IO_save_base ==
| 0-2 | ||||||
| 16 | ((void *)0)
| 0-2 | ||||||
| 17 | ) | - | ||||||
| 18 | { | - | ||||||
| 19 | - | |||||||
| 20 | - | |||||||
| 21 | - | |||||||
| 22 | off_t pos = lseek (fileno (fp), offset, whence); | - | ||||||
| 23 | if (pos == -1
| 0-2 | ||||||
| 24 | { | - | ||||||
| 25 | - | |||||||
| 26 | - | |||||||
| 27 | - | |||||||
| 28 | - | |||||||
| 29 | return never executed: -1;return -1;never executed: return -1; | 0 | ||||||
| 30 | } | - | ||||||
| 31 | - | |||||||
| 32 | - | |||||||
| 33 | fp->_flags &= ~ | - | ||||||
| 34 | 0x10 | - | ||||||
| 35 | ; | - | ||||||
| 36 | fp->_offset = pos; | - | ||||||
| 37 | return executed 2 times by 1 test: 0;return 0;Executed by:
executed 2 times by 1 test: return 0;Executed by:
| 2 | ||||||
| 38 | } | - | ||||||
| 39 | return executed 2 times by 1 test: fseeko (fp, offset, whence);return fseeko (fp, offset, whence);Executed by:
executed 2 times by 1 test: return fseeko (fp, offset, whence);Executed by:
| 2 | ||||||
| 40 | } | - | ||||||
| Switch to Source code | Preprocessed file |