Lines Matching refs:ts
43 struct timespec ts; in main() member
46 .ts = { .tv_nsec = 0xc0de1 }, in main()
49 .ts = { .tv_sec = 0xc0de2, .tv_nsec = 0xc0de3 }, in main()
56 if (nanosleep(&req.ts, NULL)) in main()
59 (intmax_t) req.ts.tv_sec, (intmax_t) req.ts.tv_nsec); in main()
61 if (!nanosleep(NULL, &rem.ts)) in main()
63 printf("nanosleep(NULL, %p) = -1 EFAULT (Bad address)\n", &rem.ts); in main()
65 if (nanosleep(&req.ts, &rem.ts)) in main()
68 (intmax_t) req.ts.tv_sec, (intmax_t) req.ts.tv_nsec, &rem.ts); in main()
70 req.ts.tv_nsec = 1000000000; in main()
71 if (!nanosleep(&req.ts, &rem.ts)) in main()
74 (intmax_t) req.ts.tv_sec, (intmax_t) req.ts.tv_nsec, &rem.ts); in main()
90 req.ts.tv_nsec = 999999999; in main()
91 if (!nanosleep(&req.ts, &rem.ts)) in main()
95 (intmax_t) req.ts.tv_sec, (intmax_t) req.ts.tv_nsec, in main()
96 (intmax_t) rem.ts.tv_sec, (intmax_t) rem.ts.tv_nsec); in main()