Lines Matching refs:times
41 utimensat(int fd, const char *path, const struct timespec times[2], int flag)
50 return (__sys_utimensat(fd, path, times, flag));
56 if (times == NULL || (times[0].tv_nsec == UTIME_NOW &&
57 times[1].tv_nsec == UTIME_NOW))
59 else if (times[0].tv_nsec == UTIME_OMIT &&
60 times[1].tv_nsec == UTIME_OMIT)
63 if ((times[0].tv_nsec < 0 || times[0].tv_nsec > 999999999) &&
64 times[0].tv_nsec != UTIME_NOW &&
65 times[0].tv_nsec != UTIME_OMIT) {
69 if ((times[1].tv_nsec < 0 || times[1].tv_nsec > 999999999) &&
70 times[1].tv_nsec != UTIME_NOW &&
71 times[1].tv_nsec != UTIME_OMIT) {
75 tv[0].tv_sec = times[0].tv_sec;
76 tv[0].tv_usec = times[0].tv_nsec / 1000;
77 tv[1].tv_sec = times[1].tv_sec;
78 tv[1].tv_usec = times[1].tv_nsec / 1000;
80 if (times[0].tv_nsec == UTIME_OMIT ||
81 times[1].tv_nsec == UTIME_OMIT) {
84 if (times[0].tv_nsec == UTIME_OMIT) {
88 if (times[1].tv_nsec == UTIME_OMIT) {
93 if (times[0].tv_nsec == UTIME_NOW ||
94 times[1].tv_nsec == UTIME_NOW) {
97 if (times[0].tv_nsec == UTIME_NOW)
99 if (times[1].tv_nsec == UTIME_NOW)