Lines Matching refs:ts
49 struct timespec ts; in main() member
52 .ts = { .tv_nsec = 0xc0de1 }, in main()
55 .ts = { .tv_sec = 0xc0de2, .tv_nsec = 0xc0de3 }, in main()
65 if (syscall(__NR_clock_nanosleep, CLOCK_REALTIME, 0, &req.ts, NULL)) in main()
68 (intmax_t) req.ts.tv_sec, (intmax_t) req.ts.tv_nsec); in main()
70 if (!syscall(__NR_clock_nanosleep, CLOCK_REALTIME, 0, NULL, &rem.ts)) in main()
73 " = -1 EFAULT (Bad address)\n", &rem.ts); in main()
75 if (syscall(__NR_clock_nanosleep, CLOCK_REALTIME, 0, &req.ts, &rem.ts)) in main()
78 (intmax_t) req.ts.tv_sec, (intmax_t) req.ts.tv_nsec, &rem.ts); in main()
80 req.ts.tv_nsec = 999999999 + 1; in main()
81 if (!syscall(__NR_clock_nanosleep, CLOCK_MONOTONIC, 0, &req.ts, &rem.ts)) in main()
85 (intmax_t) req.ts.tv_sec, (intmax_t) req.ts.tv_nsec, &rem.ts); in main()
101 --req.ts.tv_nsec; in main()
102 if (!syscall(__NR_clock_nanosleep, CLOCK_REALTIME, 0, &req.ts, &rem.ts)) in main()
106 (intmax_t) req.ts.tv_sec, (intmax_t) req.ts.tv_nsec, in main()
107 (intmax_t) rem.ts.tv_sec, (intmax_t) rem.ts.tv_nsec); in main()
110 if (syscall(__NR_clock_gettime, CLOCK_REALTIME, &req.ts)) in main()
113 (intmax_t) req.ts.tv_sec, (intmax_t) req.ts.tv_nsec); in main()
115 ++req.ts.tv_sec; in main()
116 rem.ts.tv_sec = 0xc0de4; in main()
117 rem.ts.tv_nsec = 0xc0de5; in main()
119 &req.ts, &rem.ts)) in main()
123 (intmax_t) req.ts.tv_sec, (intmax_t) req.ts.tv_nsec, &rem.ts); in main()