Lines Matching refs:tstimes
134 struct timespec tstimes[2];
137 if (copy_from_user(&tstimes, utimes, sizeof(tstimes)))
139 if ((tstimes[0].tv_nsec == UTIME_OMIT ||
140 tstimes[0].tv_nsec == UTIME_NOW) &&
141 tstimes[0].tv_sec != 0)
143 if ((tstimes[1].tv_nsec == UTIME_OMIT ||
144 tstimes[1].tv_nsec == UTIME_NOW) &&
145 tstimes[1].tv_sec != 0)
149 if (tstimes[0].tv_nsec == UTIME_OMIT &&
150 tstimes[1].tv_nsec == UTIME_OMIT)
154 return do_utimes(dfd, filename, utimes ? tstimes : NULL, flags);
160 struct timespec tstimes[2];
175 tstimes[0].tv_sec = times[0].tv_sec;
176 tstimes[0].tv_nsec = 1000 * times[0].tv_usec;
177 tstimes[1].tv_sec = times[1].tv_sec;
178 tstimes[1].tv_nsec = 1000 * times[1].tv_usec;
181 return do_utimes(dfd, filename, utimes ? tstimes : NULL, 0);