Home | History | Annotate | Download | only in posix

Lines Matching defs:ts

37   struct timespec ts[2];
42 ts[0].tv_nsec = UTIME_NOW;
49 ts->tv_sec = time(0);
50 ts->tv_nsec = 0;
76 localtime_r(&(ts->tv_sec), &tm);
87 if (1 == sscanf(s, "%lu%n", &ts->tv_nsec, &len)) {
89 if (ts->tv_nsec > 999999999) s = 0;
90 else while (len++ < 9) ts->tv_nsec *= 10;
97 ts->tv_sec = mktime(&tm);
98 if (!s || *s || ts->tv_sec == -1) perror_exit("bad '%s'", date);
100 ts[1]=ts[0];
108 ts[0] = st.st_atim;
109 ts[1] = st.st_mtim;
114 if (i && i!=(FLAG_a|FLAG_m)) ts[i!=FLAG_m].tv_nsec = UTIME_OMIT;
121 if (!futimens(1, ts)) continue;
124 if (!utimensat(AT_FDCWD, s, ts,