OpenCoverage

fdutimensat.c

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/coreutils/src/gnulib/lib/fdutimensat.c
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3-
4int-
5fdutimensat (int fd, int dir, char const *file, struct timespec const ts[2],-
6 int atflag)-
7{-
8 int result = 1;-
9 if (0 <= fd
0 <= fdDescription
TRUEevaluated 222825 times by 1 test
Evaluated by:
  • touch
FALSEevaluated 32 times by 1 test
Evaluated by:
  • touch
)
32-222825
10 result = futimens (fd, ts);
executed 222825 times by 1 test: result = futimens (fd, ts);
Executed by:
  • touch
222825
11 if (file
fileDescription
TRUEevaluated 222849 times by 1 test
Evaluated by:
  • touch
FALSEevaluated 8 times by 1 test
Evaluated by:
  • touch
&& (fd < 0
fd < 0Description
TRUEevaluated 32 times by 1 test
Evaluated by:
  • touch
FALSEevaluated 222817 times by 1 test
Evaluated by:
  • touch
|| (result == -1
result == -1Description
TRUEnever evaluated
FALSEevaluated 222817 times by 1 test
Evaluated by:
  • touch
&&
0-222849
12 (*
(*__errno_location ()) == 38Description
TRUEnever evaluated
FALSEnever evaluated
__errno_location ())
(*__errno_location ()) == 38Description
TRUEnever evaluated
FALSEnever evaluated
0
13 ==
(*__errno_location ()) == 38Description
TRUEnever evaluated
FALSEnever evaluated
0
14 38
(*__errno_location ()) == 38Description
TRUEnever evaluated
FALSEnever evaluated
0
15 )))-
16 result = utimensat (dir, file, ts, atflag);
executed 32 times by 1 test: result = utimensat (dir, file, ts, atflag);
Executed by:
  • touch
32
17 if (result == 1
result == 1Description
TRUEnever evaluated
FALSEevaluated 222857 times by 1 test
Evaluated by:
  • touch
)
0-222857
18 {-
19 -
20 (*__errno_location ()) -
21 = -
22 9-
23 ;-
24 result = -1;-
25 }
never executed: end of block
0
26 return
executed 222857 times by 1 test: return result;
Executed by:
  • touch
result;
executed 222857 times by 1 test: return result;
Executed by:
  • touch
222857
27}-
Switch to Source codePreprocessed file

Generated by Squish Coco 4.1.2