OpenCoverage

stat-time.h

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/coreutils/src/gnulib/lib/stat-time.h
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3-
4-
5-
6inline long int -
7 __attribute__ ((__pure__))-
8-
9get_stat_atime_ns (struct stat const *st)-
10{-
11-
12 return
executed 2 times by 1 test: return ((st)->st_atim).tv_nsec;
Executed by:
  • cp
((st)->st_atim).tv_nsec;
executed 2 times by 1 test: return ((st)->st_atim).tv_nsec;
Executed by:
  • cp
2
13-
14-
15-
16-
17-
18}-
19-
20-
21inline long int -
22 __attribute__ ((__pure__))-
23-
24get_stat_ctime_ns (struct stat const *st)-
25{-
26-
27 return
executed 2 times by 1 test: return ((st)->st_ctim).tv_nsec;
Executed by:
  • cp
((st)->st_ctim).tv_nsec;
executed 2 times by 1 test: return ((st)->st_ctim).tv_nsec;
Executed by:
  • cp
2
28-
29-
30-
31-
32-
33}-
34-
35-
36inline long int -
37 __attribute__ ((__pure__))-
38-
39get_stat_mtime_ns (struct stat const *st)-
40{-
41-
42 return
executed 32 times by 2 tests: return ((st)->st_mtim).tv_nsec;
Executed by:
  • cp
  • mv
((st)->st_mtim).tv_nsec;
executed 32 times by 2 tests: return ((st)->st_mtim).tv_nsec;
Executed by:
  • cp
  • mv
32
43-
44-
45-
46-
47-
48}-
49-
50-
51inline long int -
52 __attribute__ ((__pure__))-
53-
54get_stat_birthtime_ns (struct stat const *st __attribute__ ((__unused__)))-
55{-
56-
57-
58-
59-
60-
61 return
never executed: return 0;
0;
never executed: return 0;
0
62-
63}-
64-
65-
66inline struct timespec -
67 __attribute__ ((__pure__))-
68-
69get_stat_atime (struct stat const *st)-
70{-
71-
72 return
executed 37910 times by 5 tests: return ((st)->st_atim);
Executed by:
  • cp
  • ls
  • mv
  • stat
  • touch
((st)->st_atim);
executed 37910 times by 5 tests: return ((st)->st_atim);
Executed by:
  • cp
  • ls
  • mv
  • stat
  • touch
37910
73-
74-
75-
76-
77-
78-
79}-
80-
81-
82inline struct timespec -
83 __attribute__ ((__pure__))-
84-
85get_stat_ctime (struct stat const *st)-
86{-
87-
88 return
executed 9 times by 2 tests: return ((st)->st_ctim);
Executed by:
  • ls
  • stat
((st)->st_ctim);
executed 9 times by 2 tests: return ((st)->st_ctim);
Executed by:
  • ls
  • stat
9
89-
90-
91-
92-
93-
94-
95}-
96-
97-
98inline struct timespec -
99 __attribute__ ((__pure__))-
100-
101get_stat_mtime (struct stat const *st)-
102{-
103-
104 return
executed 250499 times by 9 tests: return ((st)->st_mtim);
Executed by:
  • cp
  • du
  • ls
  • mv
  • pr
  • stat
  • tail
  • touch
  • vdir
((st)->st_mtim);
executed 250499 times by 9 tests: return ((st)->st_mtim);
Executed by:
  • cp
  • du
  • ls
  • mv
  • pr
  • stat
  • tail
  • touch
  • vdir
250499
105-
106-
107-
108-
109-
110-
111}-
112-
113-
114-
115inline struct timespec -
116 __attribute__ ((__pure__))-
117-
118get_stat_birthtime (struct stat const *st __attribute__ ((__unused__)))-
119{-
120 struct timespec t;-
121 t.tv_sec = -1;-
122 t.tv_nsec = -1;-
123 return
executed 6 times by 1 test: return t;
Executed by:
  • stat
t;
executed 6 times by 1 test: return t;
Executed by:
  • stat
6
124}-
125-
126-
127-
128-
129-
130-
131inline int-
132stat_time_normalize (int result, struct stat *st __attribute__ ((__unused__)))-
133{-
134 return
never executed: return result;
result;
never executed: return result;
0
135}-
136-
137-
138-
139-
140-
141-
Switch to Source codePreprocessed file

Generated by Squish Coco 4.1.2