Lines Matching full:tv

212 	struct timespec64 tv[2];  in SYSCALL_DEFINE2()  local
215 if (get_user(tv[0].tv_sec, &times->actime) || in SYSCALL_DEFINE2()
216 get_user(tv[1].tv_sec, &times->modtime)) in SYSCALL_DEFINE2()
218 tv[0].tv_nsec = 0; in SYSCALL_DEFINE2()
219 tv[1].tv_nsec = 0; in SYSCALL_DEFINE2()
221 return do_utimes(AT_FDCWD, filename, times ? tv : NULL, 0); in SYSCALL_DEFINE2()
234 struct timespec64 tv[2]; in SYSCALL_DEFINE2() local
237 if (get_user(tv[0].tv_sec, &t->actime) || in SYSCALL_DEFINE2()
238 get_user(tv[1].tv_sec, &t->modtime)) in SYSCALL_DEFINE2()
240 tv[0].tv_nsec = 0; in SYSCALL_DEFINE2()
241 tv[1].tv_nsec = 0; in SYSCALL_DEFINE2()
243 return do_utimes(AT_FDCWD, filename, t ? tv : NULL, 0); in SYSCALL_DEFINE2()
249 struct timespec64 tv[2]; in SYSCALL_DEFINE4() local
252 if (get_old_timespec32(&tv[0], &t[0]) || in SYSCALL_DEFINE4()
253 get_old_timespec32(&tv[1], &t[1])) in SYSCALL_DEFINE4()
256 if (tv[0].tv_nsec == UTIME_OMIT && tv[1].tv_nsec == UTIME_OMIT) in SYSCALL_DEFINE4()
259 return do_utimes(dfd, filename, t ? tv : NULL, flags); in SYSCALL_DEFINE4()
266 struct timespec64 tv[2]; in do_compat_futimesat() local
269 if (get_user(tv[0].tv_sec, &t[0].tv_sec) || in do_compat_futimesat()
270 get_user(tv[0].tv_nsec, &t[0].tv_usec) || in do_compat_futimesat()
271 get_user(tv[1].tv_sec, &t[1].tv_sec) || in do_compat_futimesat()
272 get_user(tv[1].tv_nsec, &t[1].tv_usec)) in do_compat_futimesat()
274 if (tv[0].tv_nsec >= 1000000 || tv[0].tv_nsec < 0 || in do_compat_futimesat()
275 tv[1].tv_nsec >= 1000000 || tv[1].tv_nsec < 0) in do_compat_futimesat()
277 tv[0].tv_nsec *= 1000; in do_compat_futimesat()
278 tv[1].tv_nsec *= 1000; in do_compat_futimesat()
280 return do_utimes(dfd, filename, t ? tv : NULL, 0); in do_compat_futimesat()