Lines Matching full:tv
215 struct timespec64 tv[2]; in SYSCALL_DEFINE2() local
218 if (get_user(tv[0].tv_sec, ×->actime) || in SYSCALL_DEFINE2()
219 get_user(tv[1].tv_sec, ×->modtime)) in SYSCALL_DEFINE2()
221 tv[0].tv_nsec = 0; in SYSCALL_DEFINE2()
222 tv[1].tv_nsec = 0; in SYSCALL_DEFINE2()
224 return do_utimes(AT_FDCWD, filename, times ? tv : NULL, 0); in SYSCALL_DEFINE2()
237 struct timespec64 tv[2]; in SYSCALL_DEFINE2() local
240 if (get_user(tv[0].tv_sec, &t->actime) || in SYSCALL_DEFINE2()
241 get_user(tv[1].tv_sec, &t->modtime)) in SYSCALL_DEFINE2()
243 tv[0].tv_nsec = 0; in SYSCALL_DEFINE2()
244 tv[1].tv_nsec = 0; in SYSCALL_DEFINE2()
246 return do_utimes(AT_FDCWD, filename, t ? tv : NULL, 0); in SYSCALL_DEFINE2()
252 struct timespec64 tv[2]; in SYSCALL_DEFINE4() local
255 if (get_old_timespec32(&tv[0], &t[0]) || in SYSCALL_DEFINE4()
256 get_old_timespec32(&tv[1], &t[1])) in SYSCALL_DEFINE4()
259 if (tv[0].tv_nsec == UTIME_OMIT && tv[1].tv_nsec == UTIME_OMIT) in SYSCALL_DEFINE4()
262 return do_utimes(dfd, filename, t ? tv : NULL, flags); in SYSCALL_DEFINE4()
269 struct timespec64 tv[2]; in do_compat_futimesat() local
272 if (get_user(tv[0].tv_sec, &t[0].tv_sec) || in do_compat_futimesat()
273 get_user(tv[0].tv_nsec, &t[0].tv_usec) || in do_compat_futimesat()
274 get_user(tv[1].tv_sec, &t[1].tv_sec) || in do_compat_futimesat()
275 get_user(tv[1].tv_nsec, &t[1].tv_usec)) in do_compat_futimesat()
277 if (tv[0].tv_nsec >= 1000000 || tv[0].tv_nsec < 0 || in do_compat_futimesat()
278 tv[1].tv_nsec >= 1000000 || tv[1].tv_nsec < 0) in do_compat_futimesat()
280 tv[0].tv_nsec *= 1000; in do_compat_futimesat()
281 tv[1].tv_nsec *= 1000; in do_compat_futimesat()
283 return do_utimes(dfd, filename, t ? tv : NULL, 0); in do_compat_futimesat()