Home
last modified time | relevance | path

Searched refs:tv_nsec (Results 1 – 25 of 136) sorted by relevance

123456

/l4re-core-master/uclibc/lib/contrib/uclibc/test/nptl/
A Dtst-cpuclock1.c150 .tv_nsec = after.tv_nsec - before.tv_nsec }; in do_test()
151 if (diff.tv_nsec < 0) in do_test()
165 sleeptime.tv_nsec = 100000000; in do_test()
189 .tv_nsec = afterns.tv_nsec - after.tv_nsec }; in do_test()
190 if (d.tv_nsec < 0) in do_test()
193 d.tv_nsec += 1000000000; in do_test()
196 || d.tv_nsec < sleeptime.tv_nsec in do_test()
197 || d.tv_nsec > sleeptime.tv_nsec * 2) in do_test()
200 d.tv_sec, d.tv_nsec); in do_test()
230 diff.tv_nsec = dead.tv_nsec - after.tv_nsec; in do_test()
[all …]
A Dtst-cpuclock2.c64 .tv_nsec = after->tv_nsec - before->tv_nsec }; in tsdiff()
65 while (diff.tv_nsec < 0) in tsdiff()
68 diff.tv_nsec += 1000000000; in tsdiff()
102 if (diff < sleeptime.tv_nsec || diff > sleeptime.tv_nsec * 2) in test_nanosleep()
112 sleeptimeabs.tv_nsec += after.tv_nsec; in test_nanosleep()
116 sleeptimeabs.tv_nsec -= 1000000000; in test_nanosleep()
137 if (sleepdiff > sleeptime.tv_nsec) in test_nanosleep()
146 if (diffabs < sleeptime.tv_nsec || diffabs > sleeptime.tv_nsec * 2) in test_nanosleep()
243 before.tv_sec, before.tv_nsec); in do_test()
265 after.tv_sec, after.tv_nsec); in do_test()
[all …]
A Dtst-timer4.c162 if (ts.tv_nsec >= 1000000000) in check_ts()
165 ts.tv_nsec -= 1000000000; in check_ts()
168 || (end->tv_sec == ts.tv_sec && end->tv_nsec < ts.tv_nsec)) in check_ts()
293 it.it_value.tv_nsec = -26; in do_test()
295 it.it_interval.tv_nsec = 0; in do_test()
308 it.it_value.tv_nsec = 100000; in do_test()
324 it.it_value.tv_nsec = 0; in do_test()
352 it.it_interval.tv_nsec = 0; in do_test()
395 ts.tv_nsec = 100000000; in do_test()
504 it.it_value.tv_nsec = 0; in do_test()
[all …]
A Dtst-clock2.c75 struct timespec ts = { .tv_sec = 0, .tv_nsec = 100000000 }; in do_test()
122 ts.tv_nsec = 100000000; in do_test()
151 diff.tv_nsec = t[i].tv_nsec - t[i + 1].tv_nsec; in do_test()
152 if (diff.tv_nsec < 0) in do_test()
154 diff.tv_nsec += 1000000000; in do_test()
158 if (diff.tv_sec < 0 || (diff.tv_sec == 0 && diff.tv_nsec < 100000000)) in do_test()
162 i, i + 1, (long int) diff.tv_sec, (long int) diff.tv_nsec); in do_test()
167 i, i + 1, (long int) diff.tv_sec, (long int) diff.tv_nsec); in do_test()
171 ts.tv_nsec = 0; in do_test()
188 || (ts.tv_sec == t[i].tv_sec && ts.tv_nsec > t[i].tv_nsec)) in do_test()
A Dtst-clock.c43 waitit.tv_nsec = 500000000; in clock_test()
48 if (ts.tv_nsec < 0 || ts.tv_nsec >= 1000000000) in clock_test()
55 cl, ts.tv_sec, ts.tv_nsec); in clock_test()
71 if (ts.tv_nsec < 0 || ts.tv_nsec >= 1000000000) in clock_test()
80 cl, ts.tv_sec, ts.tv_nsec); in clock_test()
A Dtst-rwlock9.c52 delay.tv_nsec = DELAY; in writer_thread()
63 ts.tv_nsec += 2 * TIMEOUT; in writer_thread()
64 if (ts.tv_nsec >= 1000000000) in writer_thread()
66 ts.tv_nsec -= 1000000000; in writer_thread()
106 delay.tv_nsec = DELAY; in reader_thread()
117 ts.tv_nsec += TIMEOUT; in reader_thread()
118 if (ts.tv_nsec >= 1000000000) in reader_thread()
120 ts.tv_nsec -= 1000000000; in reader_thread()
A Dtst-join3.c65 ts.tv_nsec += 200000000; in do_test()
66 if (ts.tv_nsec >= 1000000000) in do_test()
68 ts.tv_nsec -= 1000000000; in do_test()
93 ts.tv_nsec += 200000000; in do_test()
94 if (ts.tv_nsec >= 1000000000) in do_test()
96 ts.tv_nsec -= 1000000000; in do_test()
A Dtst-mqueue2.c112 ts.tv_nsec = 0; in do_test()
127 ts.tv_nsec = -1; in do_test()
140 ts.tv_nsec = 1000000000; in do_test()
173 ts.tv_nsec = 0; in do_test()
233 ts.tv_nsec = -1000000001; in do_test()
236 || (buf[0] = '3', ts.tv_nsec = -ts.tv_nsec, in do_test()
245 ts.tv_nsec = 1000000001; in do_test()
258 ts.tv_nsec = -2; in do_test()
287 ts.tv_nsec = 0; in do_test()
303 ts.tv_nsec = -1000000001; in do_test()
[all …]
A Dtst-rwlock14.c80 ts.tv_nsec = -1; in do_test()
106 ts.tv_nsec = 1000000000; in do_test()
132 ts.tv_nsec = 0x100001000LL; in do_test()
133 if (ts.tv_nsec != 0x100001000LL) in do_test()
134 ts.tv_nsec = 2000000000; in do_test()
/l4re-core-master/uclibc/lib/contrib/uclibc/libpthread/nptl/sysdeps/unix/sysv/linux/arm/
A Dlowlevellock.c59 if (abstime->tv_nsec < 0 || abstime->tv_nsec >= 1000000000) in __lll_timedlock_wait()
75 rt.tv_nsec = abstime->tv_nsec - tv.tv_usec * 1000; in __lll_timedlock_wait()
76 if (rt.tv_nsec < 0) in __lll_timedlock_wait()
78 rt.tv_nsec += 1000000000; in __lll_timedlock_wait()
100 if (abstime->tv_nsec < 0 || abstime->tv_nsec >= 1000000000) in __lll_timedwait_tid()
114 rt.tv_nsec = abstime->tv_nsec - tv.tv_usec * 1000; in __lll_timedwait_tid()
115 if (rt.tv_nsec < 0) in __lll_timedwait_tid()
117 rt.tv_nsec += 1000000000; in __lll_timedwait_tid()
/l4re-core-master/uclibc/lib/contrib/uclibc/libpthread/nptl/sysdeps/unix/sysv/linux/
A Dlowlevellock.c56 if (abstime->tv_nsec < 0 || abstime->tv_nsec >= 1000000000) in __lll_timedlock_wait()
70 rt.tv_nsec = abstime->tv_nsec - tv.tv_usec * 1000; in __lll_timedlock_wait()
71 if (rt.tv_nsec < 0) in __lll_timedlock_wait()
73 rt.tv_nsec += 1000000000; in __lll_timedlock_wait()
93 if (abstime->tv_nsec < 0 || abstime->tv_nsec >= 1000000000) in __lll_timedwait_tid()
107 rt.tv_nsec = abstime->tv_nsec - tv.tv_usec * 1000; in __lll_timedwait_tid()
108 if (rt.tv_nsec < 0) in __lll_timedwait_tid()
110 rt.tv_nsec += 1000000000; in __lll_timedwait_tid()
A Dlowlevelrobustlock.c63 if (abstime->tv_nsec < 0 || abstime->tv_nsec >= 1000000000) in __lll_robust_timedlock_wait()
83 rt.tv_nsec = abstime->tv_nsec - tv.tv_usec * 1000; in __lll_robust_timedlock_wait()
84 if (rt.tv_nsec < 0) in __lll_robust_timedlock_wait()
86 rt.tv_nsec += 1000000000; in __lll_robust_timedlock_wait()
A Dsem_timedwait.c41 if (abstime->tv_nsec < 0 || abstime->tv_nsec >= 1000000000) in sem_timedwait()
62 nsec = abstime->tv_nsec - tv.tv_usec * 1000; in sem_timedwait()
80 rt.tv_nsec = nsec; in sem_timedwait()
/l4re-core-master/uclibc/lib/contrib/uclibc/libpthread/nptl/sysdeps/unix/sysv/linux/sparc/
A Dlowlevellock.c59 if (abstime->tv_nsec < 0 || abstime->tv_nsec >= 1000000000) in __lll_timedlock_wait()
72 rt.tv_nsec = abstime->tv_nsec - tv.tv_usec * 1000; in __lll_timedlock_wait()
73 if (rt.tv_nsec < 0) in __lll_timedlock_wait()
75 rt.tv_nsec += 1000000000; in __lll_timedlock_wait()
99 if (abstime->tv_nsec < 0 || abstime->tv_nsec >= 1000000000) in __lll_timedwait_tid()
113 rt.tv_nsec = abstime->tv_nsec - tv.tv_usec * 1000; in __lll_timedwait_tid()
114 if (rt.tv_nsec < 0) in __lll_timedwait_tid()
116 rt.tv_nsec += 1000000000; in __lll_timedwait_tid()
/l4re-core-master/uclibc/lib/contrib/uclibc/libpthread/nptl/sysdeps/unix/sysv/linux/metag/
A Dlowlevellock.c60 if (abstime->tv_nsec < 0 || abstime->tv_nsec >= 1000000000) in __lll_timedlock_wait()
76 rt.tv_nsec = abstime->tv_nsec - tv.tv_usec * 1000; in __lll_timedlock_wait()
77 if (rt.tv_nsec < 0) in __lll_timedlock_wait()
79 rt.tv_nsec += 1000000000; in __lll_timedlock_wait()
101 if (abstime->tv_nsec < 0 || abstime->tv_nsec >= 1000000000) in __lll_timedwait_tid()
115 rt.tv_nsec = abstime->tv_nsec - tv.tv_usec * 1000; in __lll_timedwait_tid()
116 if (rt.tv_nsec < 0) in __lll_timedwait_tid()
118 rt.tv_nsec += 1000000000; in __lll_timedwait_tid()
/l4re-core-master/uclibc/lib/contrib/uclibc/test/time/
A Dtst-futimens1.c38 if ((!stat(".", &probe)) && probe.st_mtim.tv_nsec) in do_test()
40 else if ((!stat(argv[0], &probe)) && probe.st_mtim.tv_nsec) in do_test()
72 tests[i].ts[0].tv_nsec != sb.st_atim.tv_nsec || in do_test()
74 tests[i].ts[1].tv_nsec != sb.st_mtim.tv_nsec; in do_test()
81 if (tests[i].ts[0].tv_nsec != sb.st_atim.tv_nsec) { in do_test()
83 i, tests[i].ts[0].tv_nsec, sb.st_atim.tv_nsec); in do_test()
92 if (tests[i].ts[1].tv_nsec != sb.st_mtim.tv_nsec) { in do_test()
94 i, tests[i].ts[1].tv_nsec, sb.st_mtim.tv_nsec); in do_test()
/l4re-core-master/uclibc/lib/contrib/uclibc/libpthread/nptl/sysdeps/pthread/
A Dposix-timer.h131 if (left->tv_nsec < right->tv_nsec) in timespec_compare()
133 if (left->tv_nsec > right->tv_nsec) in timespec_compare()
144 sum->tv_nsec = left->tv_nsec + right->tv_nsec; in timespec_add()
146 if (sum->tv_nsec >= 1000000000) in timespec_add()
149 sum->tv_nsec -= 1000000000; in timespec_add()
158 diff->tv_nsec = left->tv_nsec - right->tv_nsec; in timespec_sub()
160 if (diff->tv_nsec < 0) in timespec_sub()
163 diff->tv_nsec += 1000000000; in timespec_sub()
A Dpthread_cond_timedwait.c52 if (abstime->tv_nsec < 0 || abstime->tv_nsec >= 1000000000) in __pthread_cond_timedwait()
117 rt.tv_nsec = abstime->tv_nsec - tv.tv_usec * 1000; in __pthread_cond_timedwait()
124 rt.tv_nsec = abstime->tv_nsec - rt.tv_nsec; in __pthread_cond_timedwait()
133 rt.tv_nsec = abstime->tv_nsec - tv.tv_usec * 1000; in __pthread_cond_timedwait()
136 if (rt.tv_nsec < 0) in __pthread_cond_timedwait()
138 rt.tv_nsec += 1000000000; in __pthread_cond_timedwait()
A Dpthread_rwlock_timedwrlock.c63 if (__builtin_expect (abstime->tv_nsec >= 1000000000 in pthread_rwlock_timedwrlock()
64 || abstime->tv_nsec < 0, 0)) in pthread_rwlock_timedwrlock()
77 rt.tv_nsec = abstime->tv_nsec - tv.tv_usec * 1000; in pthread_rwlock_timedwrlock()
78 if (rt.tv_nsec < 0) in pthread_rwlock_timedwrlock()
80 rt.tv_nsec += 1000000000; in pthread_rwlock_timedwrlock()
A Dpthread_rwlock_timedrdlock.c72 if (__builtin_expect (abstime->tv_nsec >= 1000000000 in pthread_rwlock_timedrdlock()
73 || abstime->tv_nsec < 0, 0)) in pthread_rwlock_timedrdlock()
86 rt.tv_nsec = abstime->tv_nsec - tv.tv_usec * 1000; in pthread_rwlock_timedrdlock()
87 if (rt.tv_nsec < 0) in pthread_rwlock_timedrdlock()
89 rt.tv_nsec += 1000000000; in pthread_rwlock_timedrdlock()
A Dtimer_settime.c47 if (value->it_interval.tv_nsec < 0
48 || value->it_interval.tv_nsec >= 1000000000
49 || value->it_value.tv_nsec < 0
50 || value->it_value.tv_nsec >= 1000000000)
97 ovalue->it_value.tv_nsec = 0;
110 || __builtin_expect (value->it_value.tv_nsec != 0, 1))
/l4re-core-master/uclibc/lib/contrib/uclibc/libpthread/linuxthreads/sysdeps/pthread/
A Dposix-timer.h138 if (left->tv_nsec < right->tv_nsec) in timespec_compare()
140 if (left->tv_nsec > right->tv_nsec) in timespec_compare()
151 sum->tv_nsec = left->tv_nsec + right->tv_nsec; in timespec_add()
153 if (sum->tv_nsec >= 1000000000) in timespec_add()
156 sum->tv_nsec -= 1000000000; in timespec_add()
165 diff->tv_nsec = left->tv_nsec - right->tv_nsec; in timespec_sub()
167 if (diff->tv_nsec < 0) in timespec_sub()
170 diff->tv_nsec += 1000000000; in timespec_sub()
A Dtimer_settime.c47 if (value->it_interval.tv_nsec < 0
48 || value->it_interval.tv_nsec >= 1000000000
49 || value->it_value.tv_nsec < 0
50 || value->it_value.tv_nsec >= 1000000000)
97 ovalue->it_value.tv_nsec = 0;
110 || __builtin_expect (value->it_value.tv_nsec != 0, 1))
/l4re-core-master/libstdc++-v3/contrib/libstdc++-v3-11/src/c++11/
A Dfutex.cc66 struct syscall_timespec { long tv_sec; long tv_nsec; }; member
94 rt.tv_nsec = 999999999; in relative_timespec()
99 rt.tv_nsec = abs_ns.count() - now_ns; in relative_timespec()
100 if (rt.tv_nsec < 0) in relative_timespec()
102 rt.tv_nsec += 1000000000; in relative_timespec()
139 rt.tv_nsec = __ns.count(); in _M_futex_wait_until()
215 rt.tv_nsec = __ns.count(); in _M_futex_wait_until_steady()
247 auto rt = relative_timespec(__s, __ns, ts.tv_sec, ts.tv_nsec); in _M_futex_wait_until_steady()
/l4re-core-master/uclibc/lib/contrib/uclibc/libpthread/nptl/
A Dpthread_mutex_timedlock.c293 reltime.tv_nsec = abstime->tv_nsec - now.tv_nsec; in pthread_mutex_timedlock()
294 if (reltime.tv_nsec < 0) in pthread_mutex_timedlock()
296 reltime.tv_nsec += 1000000000; in pthread_mutex_timedlock()
429 if (abstime->tv_nsec < 0 || abstime->tv_nsec >= 1000000000) in pthread_mutex_timedlock()
443 rt.tv_nsec = abstime->tv_nsec - tv.tv_usec * 1000; in pthread_mutex_timedlock()
444 if (rt.tv_nsec < 0) in pthread_mutex_timedlock()
446 rt.tv_nsec += 1000000000; in pthread_mutex_timedlock()

Completed in 25 milliseconds

123456