/l4re-core-master/uclibc/lib/contrib/uclibc/test/nptl/ |
A D | tst-cpuclock1.c | 150 .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 D | tst-cpuclock2.c | 64 .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 D | tst-timer4.c | 162 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 D | tst-clock2.c | 75 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 D | tst-clock.c | 43 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 D | tst-rwlock9.c | 52 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 D | tst-join3.c | 65 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 D | tst-mqueue2.c | 112 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 D | tst-rwlock14.c | 80 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 D | lowlevellock.c | 59 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 D | lowlevellock.c | 56 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 D | lowlevelrobustlock.c | 63 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 D | sem_timedwait.c | 41 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 D | lowlevellock.c | 59 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 D | lowlevellock.c | 60 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 D | tst-futimens1.c | 38 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 D | posix-timer.h | 131 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 D | pthread_cond_timedwait.c | 52 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 D | pthread_rwlock_timedwrlock.c | 63 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 D | pthread_rwlock_timedrdlock.c | 72 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 D | timer_settime.c | 47 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 D | posix-timer.h | 138 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 D | timer_settime.c | 47 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 D | futex.cc | 66 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 D | pthread_mutex_timedlock.c | 293 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()
|