Lines Matching refs:tsp
239 stime_arg0(const char *arg, struct timespec *tsp) in stime_arg0() argument
241 tsp[1].tv_sec = tsp[0].tv_sec = parsedate(arg, NULL, NULL); in stime_arg0()
242 if (tsp[0].tv_sec == NO_TIME) in stime_arg0()
244 tsp[0].tv_nsec = tsp[1].tv_nsec = 0; in stime_arg0()
248 stime_arg1(char *arg, struct timespec *tsp) in stime_arg1() argument
257 tmptime = tsp[0].tv_sec; in stime_arg1()
308 tsp[0].tv_sec = tsp[1].tv_sec = mktime(t); in stime_arg1()
309 if (tsp[0].tv_sec == NO_TIME || difftm(t, &tm)) in stime_arg1()
313 tsp[0].tv_nsec = tsp[1].tv_nsec = 0; in stime_arg1()
317 stime_arg2(const char *arg, int year, struct timespec *tsp) in stime_arg2() argument
322 tmptime = tsp[0].tv_sec; in stime_arg2()
342 tsp[0].tv_sec = tsp[1].tv_sec = mktime(t); in stime_arg2()
343 if (tsp[0].tv_sec == NO_TIME || difftm(t, &tm)) in stime_arg2()
347 tsp[0].tv_nsec = tsp[1].tv_nsec = 0; in stime_arg2()
351 stime_file(const char *fname, struct timespec *tsp, in stime_file() argument
358 tsp[0] = sb.st_atimespec; in stime_file()
359 tsp[1] = sb.st_mtimespec; in stime_file()
363 stime_posix(const char *arg, struct timespec *tsp) in stime_posix() argument
479 tsp[0].tv_nsec = tsp[1].tv_nsec = in stime_posix()
482 tsp[0].tv_nsec = tsp[1].tv_nsec = 0; in stime_posix()
496 tsp[0].tv_sec = tsp[1].tv_sec = timegm(&tm); in stime_posix()
498 tsp[0].tv_sec = tsp[1].tv_sec = mktime(&tm); in stime_posix()
500 if ((errno != 0 && tsp[1].tv_sec == NO_TIME) || difftm(&tm, &tms)) in stime_posix()