Lines Matching refs:tv
216 struct timespec64 tv[2]; in SYSCALL_DEFINE2() local
219 if (get_user(tv[0].tv_sec, ×->actime) || in SYSCALL_DEFINE2()
220 get_user(tv[1].tv_sec, ×->modtime)) in SYSCALL_DEFINE2()
222 tv[0].tv_nsec = 0; in SYSCALL_DEFINE2()
223 tv[1].tv_nsec = 0; in SYSCALL_DEFINE2()
225 return do_utimes(AT_FDCWD, filename, times ? tv : NULL, 0); in SYSCALL_DEFINE2()
238 struct timespec64 tv[2]; in SYSCALL_DEFINE2() local
241 if (get_user(tv[0].tv_sec, &t->actime) || in SYSCALL_DEFINE2()
242 get_user(tv[1].tv_sec, &t->modtime)) in SYSCALL_DEFINE2()
244 tv[0].tv_nsec = 0; in SYSCALL_DEFINE2()
245 tv[1].tv_nsec = 0; in SYSCALL_DEFINE2()
247 return do_utimes(AT_FDCWD, filename, t ? tv : NULL, 0); in SYSCALL_DEFINE2()
253 struct timespec64 tv[2]; in SYSCALL_DEFINE4() local
256 if (get_old_timespec32(&tv[0], &t[0]) || in SYSCALL_DEFINE4()
257 get_old_timespec32(&tv[1], &t[1])) in SYSCALL_DEFINE4()
260 if (tv[0].tv_nsec == UTIME_OMIT && tv[1].tv_nsec == UTIME_OMIT) in SYSCALL_DEFINE4()
263 return do_utimes(dfd, filename, t ? tv : NULL, flags); in SYSCALL_DEFINE4()
270 struct timespec64 tv[2]; in do_compat_futimesat() local
273 if (get_user(tv[0].tv_sec, &t[0].tv_sec) || in do_compat_futimesat()
274 get_user(tv[0].tv_nsec, &t[0].tv_usec) || in do_compat_futimesat()
275 get_user(tv[1].tv_sec, &t[1].tv_sec) || in do_compat_futimesat()
276 get_user(tv[1].tv_nsec, &t[1].tv_usec)) in do_compat_futimesat()
278 if (tv[0].tv_nsec >= 1000000 || tv[0].tv_nsec < 0 || in do_compat_futimesat()
279 tv[1].tv_nsec >= 1000000 || tv[1].tv_nsec < 0) in do_compat_futimesat()
281 tv[0].tv_nsec *= 1000; in do_compat_futimesat()
282 tv[1].tv_nsec *= 1000; in do_compat_futimesat()
284 return do_utimes(dfd, filename, t ? tv : NULL, 0); in do_compat_futimesat()