Lines Matching refs:ts
48 struct timespec ts; in main() member
51 .ts.tv_nsec = 0xc0de1, in main()
54 .ts = { .tv_sec = 0xc0de2, .tv_nsec = 0xc0de3 }, in main()
61 if (nanosleep(&req.ts, NULL)) in main()
64 (long long) req.ts.tv_sec, in main()
65 zero_extend_signed_to_ull(req.ts.tv_nsec)); in main()
67 assert(nanosleep(NULL, &rem.ts) == -1); in main()
68 printf("nanosleep(NULL, %p) = -1 EFAULT (%m)\n", &rem.ts); in main()
70 if (nanosleep(&req.ts, &rem.ts)) in main()
73 (long long) req.ts.tv_sec, in main()
74 zero_extend_signed_to_ull(req.ts.tv_nsec), &rem.ts); in main()
76 req.ts.tv_nsec = 1000000000; in main()
77 assert(nanosleep(&req.ts, &rem.ts) == -1); in main()
79 (long long) req.ts.tv_sec, in main()
80 zero_extend_signed_to_ull(req.ts.tv_nsec), &rem.ts); in main()
82 req.ts.tv_sec = 0xdeadbeefU; in main()
83 req.ts.tv_nsec = 0xfacefeedU; in main()
84 assert(nanosleep(&req.ts, &rem.ts) == -1); in main()
86 (long long) req.ts.tv_sec, in main()
87 zero_extend_signed_to_ull(req.ts.tv_nsec), &rem.ts); in main()
89 req.ts.tv_sec = (time_t) 0xcafef00ddeadbeefLL; in main()
90 req.ts.tv_nsec = (long) 0xbadc0dedfacefeedLL; in main()
91 assert(nanosleep(&req.ts, &rem.ts) == -1); in main()
93 (long long) req.ts.tv_sec, in main()
94 zero_extend_signed_to_ull(req.ts.tv_nsec), &rem.ts); in main()
96 req.ts.tv_sec = -1; in main()
97 req.ts.tv_nsec = -1; in main()
98 assert(nanosleep(&req.ts, &rem.ts) == -1); in main()
100 (long long) req.ts.tv_sec, in main()
101 zero_extend_signed_to_ull(req.ts.tv_nsec), &rem.ts); in main()
109 req.ts.tv_sec = 0; in main()
110 req.ts.tv_nsec = 999999999; in main()
111 assert(nanosleep(&req.ts, &rem.ts) == -1); in main()
115 (long long) req.ts.tv_sec, in main()
116 zero_extend_signed_to_ull(req.ts.tv_nsec), in main()
117 (long long) rem.ts.tv_sec, in main()
118 zero_extend_signed_to_ull(rem.ts.tv_nsec)); in main()