Lines Matching defs:ts
96 struct timespec ts[2];
112 ts[0].tv_sec = 0;
113 ts[0].tv_nsec = UTIME_NOW;
117 ts[0].tv_sec = 0;
118 ts[0].tv_nsec = UTIME_OMIT;
122 ts[0].tv_sec = av->tv_sec;
123 ts[0].tv_nsec = NS(av->tv_nsec);
127 ts[1].tv_sec = 0;
128 ts[1].tv_nsec = UTIME_NOW;
132 ts[1].tv_sec = 0;
133 ts[1].tv_nsec = UTIME_OMIT;
137 ts[1].tv_sec = mv->tv_sec;
138 ts[1].tv_nsec = NS(mv->tv_nsec);
142 if (!utimensat(AT_FDCWD, path, ts[0].tv_nsec == UTIME_NOW && ts[1].tv_nsec == UTIME_NOW ? (struct timespec*)0 : ts, (flags & TV_TOUCH_PHYSICAL) ? AT_SYMLINK_NOFOLLOW : 0))
154 if ((ts[0].tv_nsec != UTIME_NOW || ts[1].tv_nsec != UTIME_NOW) && utimensat(AT_FDCWD, path, ts, (flags & TV_TOUCH_PHYSICAL) ? AT_SYMLINK_NOFOLLOW : 0))
178 ts[0].tv_sec = st.st_atime;
179 ts[0].tv_nsec = ST_ATIME_NSEC_GET(&st);
183 ts[0].tv_sec = av->tv_sec;
184 ts[0].tv_nsec = NS(av->tv_nsec);
188 ts[1].tv_sec = st.st_mtime;
189 ts[1].tv_nsec = ST_MTIME_NSEC_GET(&st);
193 ts[1].tv_sec = mv->tv_sec;
194 ts[1].tv_nsec = NS(mv->tv_nsec);
196 if (!utimets(path, ts))