OpenCoverage

fseeko.c

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/coreutils/src/lib/fseeko.c
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3-
4-
5-
6-
7-
8int-
9-
10rpl_fseeko -
11 (FILE *fp, off_t offset, int whence)-
12{-
13 if (fp->_IO_read_end == fp->_IO_read_ptr
fp->_IO_read_e...->_IO_read_ptrDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tac
FALSEevaluated 2 times by 1 test
Evaluated by:
  • rm
2
14 && fp->_IO_write_ptr == fp->_IO_write_base
fp->_IO_write_..._IO_write_baseDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tac
FALSEnever evaluated
0-2
15 && fp->_IO_save_base ==
fp->_IO_save_b...== ((void *)0)Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tac
FALSEnever evaluated
0-2
16 ((void *)0)
fp->_IO_save_b...== ((void *)0)Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tac
FALSEnever evaluated
0-2
17 )-
18 {-
19-
20-
21-
22 off_t pos = lseek (fileno (fp), offset, whence);-
23 if (pos == -1
pos == -1Description
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tac
)
0-2
24 {-
25-
26-
27-
28-
29 return
never executed: return -1;
-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: return 0;
Executed by:
  • tac
0;
executed 2 times by 1 test: return 0;
Executed by:
  • tac
2
38 }-
39 return
executed 2 times by 1 test: return fseeko (fp, offset, whence);
Executed by:
  • rm
fseeko (fp, offset, whence);
executed 2 times by 1 test: return fseeko (fp, offset, whence);
Executed by:
  • rm
2
40}-
Switch to Source codePreprocessed file

Generated by Squish Coco 4.1.2