Lines Matching refs:ts
83 print_ts(const struct timespec *ts) in print_ts() argument
85 printf("{tv_sec=%lld, tv_nsec=%llu}", (long long) ts->tv_sec, in print_ts()
86 zero_extend_signed_to_ull(ts->tv_nsec)); in print_ts()
87 print_time_t_nsec(ts->tv_sec, in print_ts()
88 zero_extend_signed_to_ull(ts->tv_nsec), 1); in print_ts()
116 struct timespec *const ts = tail_alloc(sizeof(*ts) * 2); in main() local
153 k_utimensat(kfdcwd, kfname, (uintptr_t) (ts + 1), 0); in main()
155 qname, ts + 1, errstr); in main()
157 k_utimensat(kfdcwd, kfname, (uintptr_t) (ts + 2), 0); in main()
159 " = %s\n", qname, ts + 2, errstr); in main()
161 ts[0].tv_sec = 1492358706; in main()
162 ts[0].tv_nsec = 123456789; in main()
163 ts[1].tv_sec = 1492357068; in main()
164 ts[1].tv_nsec = 234567890; in main()
166 k_utimensat(kfdcwd, kfname, (uintptr_t) ts, 0x100); in main()
168 print_ts(&ts[0]); in main()
170 print_ts(&ts[1]); in main()
173 ts[0].tv_sec = -1; in main()
174 ts[0].tv_nsec = 2000000000; in main()
175 ts[1].tv_sec = (time_t) -0x100000001LL; in main()
176 ts[1].tv_nsec = 2345678900U; in main()
178 k_utimensat(kfdcwd, kfname, (uintptr_t) ts, 0x100); in main()
180 print_ts(&ts[0]); in main()
182 print_ts(&ts[1]); in main()
185 ts[0].tv_sec = 0; in main()
186 ts[0].tv_nsec = 0; in main()
187 ts[1].tv_sec = (time_t) 0xcafef00ddeadbeefLL; in main()
188 ts[1].tv_nsec = 0; in main()
190 k_utimensat(kfdcwd, kfname, (uintptr_t) ts, 0x100); in main()
192 print_ts(&ts[0]); in main()
194 print_ts(&ts[1]); in main()
197 ts[0].tv_sec = 0xdeadbeefU; in main()
198 ts[0].tv_nsec = 0xfacefeedU; in main()
199 ts[1].tv_sec = (time_t) 0xcafef00ddeadbeefLL; in main()
200 ts[1].tv_nsec = (long) 0xbadc0dedfacefeedLL; in main()
202 k_utimensat(kfdcwd, kfname, (uintptr_t) ts, 0x100); in main()
204 print_ts(&ts[0]); in main()
206 print_ts(&ts[1]); in main()
209 ts[0].tv_nsec = UTIME_NOW; in main()
210 ts[1].tv_nsec = UTIME_OMIT; in main()
211 k_utimensat(kfdcwd, kfname, (uintptr_t) ts, 0x100); in main()
216 k_utimensat(kfdcwd, kfname, f8ill_ptr_to_kulong(ts), 0); in main()
218 qname, (uintmax_t) f8ill_ptr_to_kulong(ts), errstr); in main()
222 k_utimensat(kfdcwd, kfname, (uintptr_t) ts, in main()
228 k_utimensat(kfdcwd, kfname, (uintptr_t) ts, in main()
234 k_utimensat(kfdcwd, kfname, (uintptr_t) ts, (kernel_ulong_t) -1ULL); in main()