Home
last modified time | relevance | path

Searched refs:ts (Results 1 – 8 of 8) sorted by relevance

/rt/
A Dtst-mqueue2.c104 struct timespec ts; in do_test() local
106 ts.tv_sec += 10; in do_test()
110 ts.tv_nsec = 0; in do_test()
125 ts.tv_nsec = -1; in do_test()
138 ts.tv_nsec = 1000000000; in do_test()
171 ts.tv_nsec = 0; in do_test()
234 || (buf[0] = '3', ts.tv_nsec = -ts.tv_nsec, in do_test()
256 ts.tv_nsec = -2; in do_test()
284 ts.tv_sec += 10; in do_test()
285 ts.tv_nsec = 0; in do_test()
[all …]
A Dtst-mqueue4.c148 struct timespec ts; in do_test() local
149 if (clock_gettime (CLOCK_REALTIME, &ts) == 0) in do_test()
150 ++ts.tv_sec; in do_test()
153 ts.tv_sec = time (NULL) + 1; in do_test()
154 ts.tv_nsec = 0; in do_test()
157 if (mq_timedsend (q2, buf, 1, 1, &ts) == 0) in do_test()
241 if (clock_gettime (CLOCK_REALTIME, &ts) == 0) in do_test()
242 ++ts.tv_sec; in do_test()
245 ts.tv_sec = time (NULL) + 1; in do_test()
246 ts.tv_nsec = 0; in do_test()
[all …]
A Dtst-timer4.c158 struct timespec ts = *start; in check_ts() local
164 ++ts.tv_sec; in check_ts()
167 if (end->tv_sec < ts.tv_sec in check_ts()
168 || (end->tv_sec == ts.tv_sec && end->tv_nsec < ts.tv_nsec)) in check_ts()
173 (long) ts.tv_sec, (intmax_t) ts.tv_nsec); in check_ts()
195 struct timespec ts; in do_test() local
203 (long) ts.tv_sec, (intmax_t) ts.tv_nsec); in do_test()
212 (long) ts.tv_sec, (intmax_t) ts.tv_nsec); in do_test()
393 ts.tv_sec = 0; in do_test()
395 nanosleep (&ts, NULL); in do_test()
[all …]
A Daio_suspend.c161 struct __timespec64 ts; in ___aio_suspend_time64() local
164 __clock_gettime64 (CLOCK_MONOTONIC, &ts); in ___aio_suspend_time64()
165 ts.tv_sec += timeout->tv_sec; in ___aio_suspend_time64()
166 ts.tv_nsec += timeout->tv_nsec; in ___aio_suspend_time64()
167 if (ts.tv_nsec >= 1000000000) in ___aio_suspend_time64()
169 ts.tv_nsec -= 1000000000; in ___aio_suspend_time64()
170 ts.tv_sec++; in ___aio_suspend_time64()
195 result = do_aio_misc_wait (&cntr, timeout == NULL ? NULL : &ts); in ___aio_suspend_time64()
197 struct timespec ts32 = valid_timespec64_to_timespec (ts); in ___aio_suspend_time64()
A Dtst-mqueue10.c48 struct timespec ts = { TYPE_MAXIMUM (time_t), 0 }; in do_test() local
52 TEST_COMPARE (mq_timedreceive (q, msg, sizeof (msg), NULL, &ts), -1); in do_test()
62 TEST_COMPARE (mq_timedsend (q, msg, sizeof (msg), 0, &ts), -1); in do_test()
A Dtst-shm.c51 struct timespec ts; in worker() local
74 ts.tv_sec = 0; in worker()
75 ts.tv_nsec = 500000000; in worker()
92 nanosleep (&ts, NULL); in worker()
110 nanosleep (&ts, NULL); in worker()
A Dtst-mqueue1.c99 struct timespec ts; in do_one_test() local
100 if (clock_gettime (CLOCK_REALTIME, &ts) == 0) in do_one_test()
101 --ts.tv_sec; in do_one_test()
104 ts.tv_sec = time (NULL) - 1; in do_one_test()
105 ts.tv_nsec = 0; in do_one_test()
114 ret = mq_timedsend (q, (char *) &v[i], 1, v[i] >> 4, &ts); in do_one_test()
123 ret = mq_timedsend (q, (char *) &v[10], 1, 8, &ts); in do_one_test()
213 rets = mq_timedreceive (q, (char *) &vr[i], 1, &prio, &ts); in do_one_test()
239 rets = mq_timedreceive (q, (char *) &vr[10], 1, &prio, &ts); in do_one_test()
A Dtst-mqueue8.c143 struct timespec ts = { .tv_sec = 0, .tv_nsec = 100000000 }; in do_test() local
144 while (nanosleep (&ts, &ts) != 0) in do_test()

Completed in 14 milliseconds