Lines Matching defs:ts
1292 struct timespec now, ts;
1335 ts = due;
1336 ts.tv_sec -= now.tv_sec;
1337 ts.tv_nsec -= now.tv_nsec;
1338 while (ts.tv_nsec < 0) {
1339 ts.tv_sec -= 1;
1340 ts.tv_nsec += 1000000000;
1343 if (ts.tv_sec < 0) {
1344 ts.tv_sec = ts.tv_nsec = 0;
1348 ret = clock_nanosleep(CLOCK_REALTIME, 0, &ts, NULL);
2263 struct timespec now, ts;
2342 memset(&ts, 0, sizeof(ts));
2343 ts.tv_nsec = 1000000;
2344 (void) clock_nanosleep(CLOCK_REALTIME, 0, &ts, NULL);