Lines Matching refs:ts
148 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()
249 if (mq_timedreceive (q2, buf, 2, NULL, &ts) != -1) in do_test()