Line | Source | Count |
1 | | - |
2 | | - |
3 | | - |
4 | | - |
5 | static int utimensat_works_really; | - |
6 | static int lutimensat_works_really; | - |
7 | static int | - |
8 | validate_timespec (struct timespec timespec[2]) | - |
9 | { | - |
10 | int result = 0; | - |
11 | int utime_omit_count = 0; | - |
12 | if ((timespec[0].tv_nsec != TRUE | evaluated 37881 times by 2 tests | FALSE | never evaluated |
| 0-37881 |
13 | ((1l << 30) - 1l)TRUE | evaluated 37881 times by 2 tests | FALSE | never evaluated |
| 0-37881 |
14 | | - |
15 | && timespec[0].tv_nsec != TRUE | evaluated 37881 times by 2 tests | FALSE | never evaluated |
| 0-37881 |
16 | ((1l << 30) - 2l)TRUE | evaluated 37881 times by 2 tests | FALSE | never evaluated |
| 0-37881 |
17 | | - |
18 | && ! (0 <= timespec[0].tv_nsecTRUE | evaluated 37881 times by 2 tests | FALSE | never evaluated |
| 0-37881 |
19 | && timespec[0].tv_nsec < TIMESPEC_RESOLUTIONTRUE | evaluated 37881 times by 2 tests | FALSE | never evaluated |
)) | 0-37881 |
20 | || (timespec[1].tv_nsec != TRUE | evaluated 37881 times by 2 tests | FALSE | never evaluated |
| 0-37881 |
21 | ((1l << 30) - 1l)TRUE | evaluated 37881 times by 2 tests | FALSE | never evaluated |
| 0-37881 |
22 | | - |
23 | && timespec[1].tv_nsec != TRUE | evaluated 37881 times by 2 tests | FALSE | never evaluated |
| 0-37881 |
24 | ((1l << 30) - 2l)TRUE | evaluated 37881 times by 2 tests | FALSE | never evaluated |
| 0-37881 |
25 | | - |
26 | && ! (0 <= timespec[1].tv_nsecTRUE | evaluated 37881 times by 2 tests | FALSE | never evaluated |
| 0-37881 |
27 | && timespec[1].tv_nsec < TIMESPEC_RESOLUTIONTRUE | evaluated 37881 times by 2 tests | FALSE | never evaluated |
))) | 0-37881 |
28 | { | - |
29 | | - |
30 | (*__errno_location ()) | - |
31 | = | - |
32 | 22 | - |
33 | ; | - |
34 | return never executed: return -1; -1;never executed: return -1; | 0 |
35 | } | - |
36 | | - |
37 | | - |
38 | | - |
39 | | - |
40 | if (timespec[0].tv_nsec == TRUE | never evaluated | FALSE | evaluated 37881 times by 2 tests |
| 0-37881 |
41 | ((1l << 30) - 1l)TRUE | never evaluated | FALSE | evaluated 37881 times by 2 tests |
| 0-37881 |
42 | | - |
43 | || timespec[0].tv_nsec == TRUE | never evaluated | FALSE | evaluated 37881 times by 2 tests |
| 0-37881 |
44 | ((1l << 30) - 2l)TRUE | never evaluated | FALSE | evaluated 37881 times by 2 tests |
| 0-37881 |
45 | ) | - |
46 | { | - |
47 | timespec[0].tv_sec = 0; | - |
48 | result = 1; | - |
49 | if (timespec[0].tv_nsec == TRUE | never evaluated | FALSE | never evaluated |
| 0 |
50 | ((1l << 30) - 2l)TRUE | never evaluated | FALSE | never evaluated |
| 0 |
51 | ) | - |
52 | utime_omit_count++; never executed: utime_omit_count++; | 0 |
53 | } never executed: end of block | 0 |
54 | if (timespec[1].tv_nsec == TRUE | never evaluated | FALSE | evaluated 37881 times by 2 tests |
| 0-37881 |
55 | ((1l << 30) - 1l)TRUE | never evaluated | FALSE | evaluated 37881 times by 2 tests |
| 0-37881 |
56 | | - |
57 | || timespec[1].tv_nsec == TRUE | never evaluated | FALSE | evaluated 37881 times by 2 tests |
| 0-37881 |
58 | ((1l << 30) - 2l)TRUE | never evaluated | FALSE | evaluated 37881 times by 2 tests |
| 0-37881 |
59 | ) | - |
60 | { | - |
61 | timespec[1].tv_sec = 0; | - |
62 | result = 1; | - |
63 | if (timespec[1].tv_nsec == TRUE | never evaluated | FALSE | never evaluated |
| 0 |
64 | ((1l << 30) - 2l)TRUE | never evaluated | FALSE | never evaluated |
| 0 |
65 | ) | - |
66 | utime_omit_count++; never executed: utime_omit_count++; | 0 |
67 | } never executed: end of block | 0 |
68 | returnexecuted 37881 times by 2 tests: return result + (utime_omit_count == 1); result + (utime_omit_count == 1);executed 37881 times by 2 tests: return result + (utime_omit_count == 1); | 37881 |
69 | } | - |
70 | | - |
71 | | - |
72 | | - |
73 | | - |
74 | | - |
75 | | - |
76 | | - |
77 | static | - |
78 | _Bool | - |
79 | | - |
80 | update_timespec (struct stat const *statbuf, struct timespec *ts[2]) | - |
81 | { | - |
82 | struct timespec *timespec = *ts; | - |
83 | if (timespec[0].tv_nsec == TRUE | never evaluated | FALSE | never evaluated |
| 0 |
84 | ((1l << 30) - 2l)TRUE | never evaluated | FALSE | never evaluated |
| 0 |
85 | | - |
86 | && timespec[1].tv_nsec == TRUE | never evaluated | FALSE | never evaluated |
| 0 |
87 | ((1l << 30) - 2l)TRUE | never evaluated | FALSE | never evaluated |
| 0 |
88 | ) | - |
89 | return never executed: return 1 ; never executed: return 1 ; | 0 |
90 | 1 never executed: return 1 ; | 0 |
91 | ; never executed: return 1 ; | 0 |
92 | if (timespec[0].tv_nsec == TRUE | never evaluated | FALSE | never evaluated |
| 0 |
93 | ((1l << 30) - 1l)TRUE | never evaluated | FALSE | never evaluated |
| 0 |
94 | | - |
95 | && timespec[1].tv_nsec == TRUE | never evaluated | FALSE | never evaluated |
| 0 |
96 | ((1l << 30) - 1l)TRUE | never evaluated | FALSE | never evaluated |
| 0 |
97 | ) | - |
98 | { | - |
99 | *ts = | - |
100 | ((void *)0) | - |
101 | ; | - |
102 | return never executed: return 0 ; never executed: return 0 ; | 0 |
103 | 0 never executed: return 0 ; | 0 |
104 | ; never executed: return 0 ; | 0 |
105 | } | - |
106 | | - |
107 | if (timespec[0].tv_nsec == TRUE | never evaluated | FALSE | never evaluated |
| 0 |
108 | ((1l << 30) - 2l)TRUE | never evaluated | FALSE | never evaluated |
| 0 |
109 | ) | - |
110 | timespec[0] = get_stat_atime (statbuf); never executed: timespec[0] = get_stat_atime (statbuf); | 0 |
111 | else if (timespec[0].tv_nsec == TRUE | never evaluated | FALSE | never evaluated |
| 0 |
112 | ((1l << 30) - 1l)TRUE | never evaluated | FALSE | never evaluated |
| 0 |
113 | ) | - |
114 | gettime (×pec[0]); never executed: gettime (×pec[0]); | 0 |
115 | | - |
116 | if (timespec[1].tv_nsec == TRUE | never evaluated | FALSE | never evaluated |
| 0 |
117 | ((1l << 30) - 2l)TRUE | never evaluated | FALSE | never evaluated |
| 0 |
118 | ) | - |
119 | timespec[1] = get_stat_mtime (statbuf); never executed: timespec[1] = get_stat_mtime (statbuf); | 0 |
120 | else if (timespec[1].tv_nsec == TRUE | never evaluated | FALSE | never evaluated |
| 0 |
121 | ((1l << 30) - 1l)TRUE | never evaluated | FALSE | never evaluated |
| 0 |
122 | ) | - |
123 | gettime (×pec[1]); never executed: gettime (×pec[1]); | 0 |
124 | | - |
125 | return never executed: return 0 ; never executed: return 0 ; | 0 |
126 | 0 never executed: return 0 ; | 0 |
127 | ; never executed: return 0 ; | 0 |
128 | } | - |
129 | int | - |
130 | fdutimens (int fd, char const *file, struct timespec const timespec[2]) | - |
131 | { | - |
132 | struct timespec adjusted_timespec[2]; | - |
133 | struct timespec *ts = timespecTRUE | evaluated 37878 times by 2 tests | FALSE | never evaluated |
? adjusted_timespec : | 0-37878 |
134 | ((void *)0) | - |
135 | ; | - |
136 | int adjustment_needed = 0; | - |
137 | struct stat st; | - |
138 | | - |
139 | if (tsTRUE | evaluated 37878 times by 2 tests | FALSE | never evaluated |
) | 0-37878 |
140 | { | - |
141 | adjusted_timespec[0] = timespec[0]; | - |
142 | adjusted_timespec[1] = timespec[1]; | - |
143 | adjustment_needed = validate_timespec (ts); | - |
144 | }executed 37878 times by 2 tests: end of block | 37878 |
145 | if (adjustment_needed < 0TRUE | never evaluated | FALSE | evaluated 37878 times by 2 tests |
) | 0-37878 |
146 | return never executed: return -1; -1;never executed: return -1; | 0 |
147 | | - |
148 | | - |
149 | | - |
150 | | - |
151 | if (fd < 0TRUE | evaluated 33949 times by 2 tests | FALSE | evaluated 3929 times by 2 tests |
&& !fileTRUE | never evaluated | FALSE | evaluated 33949 times by 2 tests |
) | 0-33949 |
152 | { | - |
153 | | - |
154 | (*__errno_location ()) | - |
155 | = | - |
156 | 9 | - |
157 | ; | - |
158 | return never executed: return -1; -1;never executed: return -1; | 0 |
159 | } | - |
160 | if (0 <= utimensat_works_reallyTRUE | evaluated 37878 times by 2 tests | FALSE | never evaluated |
) | 0-37878 |
161 | { | - |
162 | int result; | - |
163 | if (adjustment_needed == 2TRUE | never evaluated | FALSE | evaluated 37878 times by 2 tests |
) | 0-37878 |
164 | { | - |
165 | if (fd < 0TRUE | never evaluated | FALSE | never evaluated |
? stat (file, &st) : fstat (fd, &st)TRUE | never evaluated | FALSE | never evaluated |
) | 0 |
166 | return never executed: return -1; -1;never executed: return -1; | 0 |
167 | if (ts[0].tv_nsec == TRUE | never evaluated | FALSE | never evaluated |
| 0 |
168 | ((1l << 30) - 2l)TRUE | never evaluated | FALSE | never evaluated |
| 0 |
169 | ) | - |
170 | ts[0] = get_stat_atime (&st); never executed: ts[0] = get_stat_atime (&st); | 0 |
171 | else if (ts[1].tv_nsec == TRUE | never evaluated | FALSE | never evaluated |
| 0 |
172 | ((1l << 30) - 2l)TRUE | never evaluated | FALSE | never evaluated |
| 0 |
173 | ) | - |
174 | ts[1] = get_stat_mtime (&st); never executed: ts[1] = get_stat_mtime (&st); | 0 |
175 | | - |
176 | adjustment_needed++; | - |
177 | } never executed: end of block | 0 |
178 | | - |
179 | | - |
180 | if (fd < 0TRUE | evaluated 33949 times by 2 tests | FALSE | evaluated 3929 times by 2 tests |
) | 3929-33949 |
181 | { | - |
182 | result = utimensat ( | - |
183 | -100 | - |
184 | , file, ts, 0); | - |
185 | if (0 < resultTRUE | never evaluated | FALSE | evaluated 33949 times by 2 tests |
) | 0-33949 |
186 | | - |
187 | (* never executed: (*__errno_location ()) = 38 ; __errno_location ()) never executed: (*__errno_location ()) = 38 ; | 0 |
188 | = never executed: (*__errno_location ()) = 38 ; | 0 |
189 | 38 never executed: (*__errno_location ()) = 38 ; | 0 |
190 | ; never executed: (*__errno_location ()) = 38 ; | 0 |
191 | | - |
192 | if (result == 0TRUE | evaluated 33949 times by 2 tests | FALSE | never evaluated |
|| | 0-33949 |
193 | (*TRUE | never evaluated | FALSE | never evaluated |
__errno_location ()) TRUE | never evaluated | FALSE | never evaluated |
| 0 |
194 | != TRUE | never evaluated | FALSE | never evaluated |
| 0 |
195 | 38TRUE | never evaluated | FALSE | never evaluated |
| 0 |
196 | ) | - |
197 | { | - |
198 | utimensat_works_really = 1; | - |
199 | returnexecuted 33949 times by 2 tests: return result; result;executed 33949 times by 2 tests: return result; | 33949 |
200 | } | - |
201 | } never executed: end of block | 0 |
202 | | - |
203 | | - |
204 | if (0 <= fdTRUE | evaluated 3929 times by 2 tests | FALSE | never evaluated |
) | 0-3929 |
205 | { | - |
206 | result = futimens (fd, ts); | - |
207 | | - |
208 | | - |
209 | if (0 < resultTRUE | never evaluated | FALSE | evaluated 3929 times by 2 tests |
) | 0-3929 |
210 | | - |
211 | (* never executed: (*__errno_location ()) = 38 ; __errno_location ()) never executed: (*__errno_location ()) = 38 ; | 0 |
212 | = never executed: (*__errno_location ()) = 38 ; | 0 |
213 | 38 never executed: (*__errno_location ()) = 38 ; | 0 |
214 | ; never executed: (*__errno_location ()) = 38 ; | 0 |
215 | | - |
216 | if (result == 0TRUE | evaluated 3929 times by 2 tests | FALSE | never evaluated |
|| | 0-3929 |
217 | (*TRUE | never evaluated | FALSE | never evaluated |
__errno_location ()) TRUE | never evaluated | FALSE | never evaluated |
| 0 |
218 | != TRUE | never evaluated | FALSE | never evaluated |
| 0 |
219 | 38TRUE | never evaluated | FALSE | never evaluated |
| 0 |
220 | ) | - |
221 | { | - |
222 | utimensat_works_really = 1; | - |
223 | returnexecuted 3929 times by 2 tests: return result; result;executed 3929 times by 2 tests: return result; | 3929 |
224 | } | - |
225 | } never executed: end of block | 0 |
226 | | - |
227 | } never executed: end of block | 0 |
228 | utimensat_works_really = -1; | - |
229 | lutimensat_works_really = -1; | - |
230 | if (adjustment_neededTRUE | never evaluated | FALSE | never evaluated |
|| (0 && fd < 0dead code: fd < 0 )) | - |
231 | { | - |
232 | if (adjustment_needed != 3TRUE | never evaluated | FALSE | never evaluated |
| 0 |
233 | && (TRUE | never evaluated | FALSE | never evaluated |
fd < 0 ? stat (file, &st) : fstat (fd, &st))TRUE | never evaluated | FALSE | never evaluated |
) | 0 |
234 | return never executed: return -1; -1;never executed: return -1; | 0 |
235 | if (tsTRUE | never evaluated | FALSE | never evaluated |
&& update_timespec (&st, &ts)TRUE | never evaluated | FALSE | never evaluated |
) | 0 |
236 | return never executed: return 0; 0;never executed: return 0; | 0 |
237 | } never executed: end of block | 0 |
238 | | - |
239 | { | - |
240 | | - |
241 | struct timeval timeval[2]; | - |
242 | struct timeval *t; | - |
243 | if (tsTRUE | never evaluated | FALSE | never evaluated |
) | 0 |
244 | { | - |
245 | timeval[0].tv_sec = ts[0].tv_sec; | - |
246 | timeval[0].tv_usec = ts[0].tv_nsec / 1000; | - |
247 | timeval[1].tv_sec = ts[1].tv_sec; | - |
248 | timeval[1].tv_usec = ts[1].tv_nsec / 1000; | - |
249 | t = timeval; | - |
250 | } never executed: end of block | 0 |
251 | else | - |
252 | t = never executed: t = ((void *)0) ; | 0 |
253 | ((void *)0) never executed: t = ((void *)0) ; | 0 |
254 | ; never executed: t = ((void *)0) ; | 0 |
255 | | - |
256 | if (fd < 0TRUE | never evaluated | FALSE | never evaluated |
) | 0 |
257 | { | - |
258 | | - |
259 | return never executed: return futimesat ( -100 , file, t); futimesat (never executed: return futimesat ( -100 , file, t); | 0 |
260 | -100 never executed: return futimesat ( -100 , file, t); | 0 |
261 | , file, t); never executed: return futimesat ( -100 , file, t); | 0 |
262 | | - |
263 | } | - |
264 | else | - |
265 | { | - |
266 | if (futimesat (fd, TRUE | never evaluated | FALSE | never evaluated |
| 0 |
267 | ((void *)0)TRUE | never evaluated | FALSE | never evaluated |
| 0 |
268 | , t) == 0TRUE | never evaluated | FALSE | never evaluated |
) | 0 |
269 | { | - |
270 | | - |
271 | | - |
272 | | - |
273 | | - |
274 | | - |
275 | | - |
276 | if (tTRUE | never evaluated | FALSE | never evaluated |
) | 0 |
277 | { | - |
278 | | - |
279 | _Bool | - |
280 | abig = 500000 <= t[0].tv_usec; | - |
281 | | - |
282 | _Bool | - |
283 | mbig = 500000 <= t[1].tv_usec; | - |
284 | if ((TRUE | never evaluated | FALSE | never evaluated |
abig | mbig)TRUE | never evaluated | FALSE | never evaluated |
&& fstat (fd, &st) == 0TRUE | never evaluated | FALSE | never evaluated |
) | 0 |
285 | { | - |
286 | | - |
287 | | - |
288 | time_t adiff = st. | - |
289 | st_atim.tv_sec | - |
290 | - t[0].tv_sec; | - |
291 | time_t mdiff = st. | - |
292 | st_mtim.tv_sec | - |
293 | - t[1].tv_sec; | - |
294 | | - |
295 | struct timeval *tt = | - |
296 | ((void *)0) | - |
297 | ; | - |
298 | struct timeval truncated_timeval[2]; | - |
299 | truncated_timeval[0] = t[0]; | - |
300 | truncated_timeval[1] = t[1]; | - |
301 | if (abigTRUE | never evaluated | FALSE | never evaluated |
&& adiff == 1TRUE | never evaluated | FALSE | never evaluated |
&& get_stat_atime_ns (&st) == 0TRUE | never evaluated | FALSE | never evaluated |
) | 0 |
302 | { | - |
303 | tt = truncated_timeval; | - |
304 | tt[0].tv_usec = 0; | - |
305 | } never executed: end of block | 0 |
306 | if (mbigTRUE | never evaluated | FALSE | never evaluated |
&& mdiff == 1TRUE | never evaluated | FALSE | never evaluated |
&& get_stat_mtime_ns (&st) == 0TRUE | never evaluated | FALSE | never evaluated |
) | 0 |
307 | { | - |
308 | tt = truncated_timeval; | - |
309 | tt[1].tv_usec = 0; | - |
310 | } never executed: end of block | 0 |
311 | if (ttTRUE | never evaluated | FALSE | never evaluated |
) | 0 |
312 | futimesat (fd, never executed: futimesat (fd, ((void *)0) , tt); | 0 |
313 | ((void *)0) never executed: futimesat (fd, ((void *)0) , tt); | 0 |
314 | , tt); never executed: futimesat (fd, ((void *)0) , tt); | 0 |
315 | } never executed: end of block | 0 |
316 | } never executed: end of block | 0 |
317 | | - |
318 | | - |
319 | return never executed: return 0; 0;never executed: return 0; | 0 |
320 | } | - |
321 | | - |
322 | } never executed: end of block | 0 |
323 | | - |
324 | | - |
325 | if (!fileTRUE | never evaluated | FALSE | never evaluated |
) | 0 |
326 | { | - |
327 | | - |
328 | | - |
329 | | - |
330 | | - |
331 | return never executed: return -1; -1;never executed: return -1; | 0 |
332 | } | - |
333 | | - |
334 | | - |
335 | | - |
336 | | - |
337 | return never executed: return utimes (file, t); utimes (file, t);never executed: return utimes (file, t); | 0 |
338 | } | - |
339 | } | - |
340 | | - |
341 | | - |
342 | | - |
343 | int | - |
344 | utimens (char const *file, struct timespec const timespec[2]) | - |
345 | { | - |
346 | returnexecuted 33949 times by 2 tests: return fdutimens (-1, file, timespec); fdutimens (-1, file, timespec);executed 33949 times by 2 tests: return fdutimens (-1, file, timespec); | 33949 |
347 | } | - |
348 | | - |
349 | | - |
350 | | - |
351 | | - |
352 | | - |
353 | int | - |
354 | lutimens (char const *file, struct timespec const timespec[2]) | - |
355 | { | - |
356 | struct timespec adjusted_timespec[2]; | - |
357 | struct timespec *ts = timespecTRUE | evaluated 3 times by 2 tests | FALSE | never evaluated |
? adjusted_timespec : | 0-3 |
358 | ((void *)0) | - |
359 | ; | - |
360 | int adjustment_needed = 0; | - |
361 | struct stat st; | - |
362 | | - |
363 | if (tsTRUE | evaluated 3 times by 2 tests | FALSE | never evaluated |
) | 0-3 |
364 | { | - |
365 | adjusted_timespec[0] = timespec[0]; | - |
366 | adjusted_timespec[1] = timespec[1]; | - |
367 | adjustment_needed = validate_timespec (ts); | - |
368 | }executed 3 times by 2 tests: end of block | 3 |
369 | if (adjustment_needed < 0TRUE | never evaluated | FALSE | evaluated 3 times by 2 tests |
) | 0-3 |
370 | return never executed: return -1; -1;never executed: return -1; | 0 |
371 | | - |
372 | | - |
373 | | - |
374 | | - |
375 | | - |
376 | | - |
377 | | - |
378 | if (0 <= lutimensat_works_reallyTRUE | evaluated 3 times by 2 tests | FALSE | never evaluated |
) | 0-3 |
379 | { | - |
380 | int result; | - |
381 | if (adjustment_needed == 2TRUE | never evaluated | FALSE | evaluated 3 times by 2 tests |
) | 0-3 |
382 | { | - |
383 | if (lstat (file, &st)TRUE | never evaluated | FALSE | never evaluated |
) | 0 |
384 | return never executed: return -1; -1;never executed: return -1; | 0 |
385 | if (ts[0].tv_nsec == TRUE | never evaluated | FALSE | never evaluated |
| 0 |
386 | ((1l << 30) - 2l)TRUE | never evaluated | FALSE | never evaluated |
| 0 |
387 | ) | - |
388 | ts[0] = get_stat_atime (&st); never executed: ts[0] = get_stat_atime (&st); | 0 |
389 | else if (ts[1].tv_nsec == TRUE | never evaluated | FALSE | never evaluated |
| 0 |
390 | ((1l << 30) - 2l)TRUE | never evaluated | FALSE | never evaluated |
| 0 |
391 | ) | - |
392 | ts[1] = get_stat_mtime (&st); never executed: ts[1] = get_stat_mtime (&st); | 0 |
393 | | - |
394 | adjustment_needed++; | - |
395 | } never executed: end of block | 0 |
396 | | - |
397 | result = utimensat ( | - |
398 | -100 | - |
399 | , file, ts, | - |
400 | 0x100 | - |
401 | ); | - |
402 | if (0 < resultTRUE | never evaluated | FALSE | evaluated 3 times by 2 tests |
) | 0-3 |
403 | | - |
404 | (* never executed: (*__errno_location ()) = 38 ; __errno_location ()) never executed: (*__errno_location ()) = 38 ; | 0 |
405 | = never executed: (*__errno_location ()) = 38 ; | 0 |
406 | 38 never executed: (*__errno_location ()) = 38 ; | 0 |
407 | ; never executed: (*__errno_location ()) = 38 ; | 0 |
408 | | - |
409 | if (result == 0TRUE | evaluated 3 times by 2 tests | FALSE | never evaluated |
|| | 0-3 |
410 | (*TRUE | never evaluated | FALSE | never evaluated |
__errno_location ()) TRUE | never evaluated | FALSE | never evaluated |
| 0 |
411 | != TRUE | never evaluated | FALSE | never evaluated |
| 0 |
412 | 38TRUE | never evaluated | FALSE | never evaluated |
| 0 |
413 | ) | - |
414 | { | - |
415 | utimensat_works_really = 1; | - |
416 | lutimensat_works_really = 1; | - |
417 | returnexecuted 3 times by 2 tests: return result; result;executed 3 times by 2 tests: return result; | 3 |
418 | } | - |
419 | } never executed: end of block | 0 |
420 | lutimensat_works_really = -1; | - |
421 | | - |
422 | | - |
423 | | - |
424 | | - |
425 | | - |
426 | | - |
427 | if (adjustment_neededTRUE | never evaluated | FALSE | never evaluated |
|| 0) | 0 |
428 | { | - |
429 | if (adjustment_needed != 3TRUE | never evaluated | FALSE | never evaluated |
&& lstat (file, &st)TRUE | never evaluated | FALSE | never evaluated |
) | 0 |
430 | return never executed: return -1; -1;never executed: return -1; | 0 |
431 | if (tsTRUE | never evaluated | FALSE | never evaluated |
&& update_timespec (&st, &ts)TRUE | never evaluated | FALSE | never evaluated |
) | 0 |
432 | return never executed: return 0; 0;never executed: return 0; | 0 |
433 | } never executed: end of block | 0 |
434 | if (!(adjustment_neededTRUE | never evaluated | FALSE | never evaluated |
|| 0) && lstat (file, &st)TRUE | never evaluated | FALSE | never evaluated |
) | 0 |
435 | return never executed: return -1; -1;never executed: return -1; | 0 |
436 | if (!TRUE | never evaluated | FALSE | never evaluated |
| 0 |
437 | ((((TRUE | never evaluated | FALSE | never evaluated |
| 0 |
438 | st.st_modeTRUE | never evaluated | FALSE | never evaluated |
| 0 |
439 | )) & 0170000) == (0120000))TRUE | never evaluated | FALSE | never evaluated |
| 0 |
440 | ) | - |
441 | return never executed: return fdutimens (-1, file, ts); fdutimens (-1, file, ts);never executed: return fdutimens (-1, file, ts); | 0 |
442 | | - |
443 | (*__errno_location ()) | - |
444 | = | - |
445 | 38 | - |
446 | ; | - |
447 | return never executed: return -1; -1;never executed: return -1; | 0 |
448 | } | - |
| | |