Lines Matching refs:tv
206 struct timespec64 tv[2]; in SYSCALL_DEFINE2() local
209 if (get_user(tv[0].tv_sec, ×->actime) || in SYSCALL_DEFINE2()
210 get_user(tv[1].tv_sec, ×->modtime)) in SYSCALL_DEFINE2()
212 tv[0].tv_nsec = 0; in SYSCALL_DEFINE2()
213 tv[1].tv_nsec = 0; in SYSCALL_DEFINE2()
215 return do_utimes(AT_FDCWD, filename, times ? tv : NULL, 0); in SYSCALL_DEFINE2()
228 struct timespec64 tv[2]; in SYSCALL_DEFINE2() local
231 if (get_user(tv[0].tv_sec, &t->actime) || in SYSCALL_DEFINE2()
232 get_user(tv[1].tv_sec, &t->modtime)) in SYSCALL_DEFINE2()
234 tv[0].tv_nsec = 0; in SYSCALL_DEFINE2()
235 tv[1].tv_nsec = 0; in SYSCALL_DEFINE2()
237 return do_utimes(AT_FDCWD, filename, t ? tv : NULL, 0); in SYSCALL_DEFINE2()
243 struct timespec64 tv[2]; in SYSCALL_DEFINE4() local
246 if (get_old_timespec32(&tv[0], &t[0]) || in SYSCALL_DEFINE4()
247 get_old_timespec32(&tv[1], &t[1])) in SYSCALL_DEFINE4()
250 if (tv[0].tv_nsec == UTIME_OMIT && tv[1].tv_nsec == UTIME_OMIT) in SYSCALL_DEFINE4()
253 return do_utimes(dfd, filename, t ? tv : NULL, flags); in SYSCALL_DEFINE4()
260 struct timespec64 tv[2]; in do_compat_futimesat() local
263 if (get_user(tv[0].tv_sec, &t[0].tv_sec) || in do_compat_futimesat()
264 get_user(tv[0].tv_nsec, &t[0].tv_usec) || in do_compat_futimesat()
265 get_user(tv[1].tv_sec, &t[1].tv_sec) || in do_compat_futimesat()
266 get_user(tv[1].tv_nsec, &t[1].tv_usec)) in do_compat_futimesat()
268 if (tv[0].tv_nsec >= 1000000 || tv[0].tv_nsec < 0 || in do_compat_futimesat()
269 tv[1].tv_nsec >= 1000000 || tv[1].tv_nsec < 0) in do_compat_futimesat()
271 tv[0].tv_nsec *= 1000; in do_compat_futimesat()
272 tv[1].tv_nsec *= 1000; in do_compat_futimesat()
274 return do_utimes(dfd, filename, t ? tv : NULL, 0); in do_compat_futimesat()