/freebsd/contrib/netbsd-tests/lib/libc/sys/ |
H A D | t_timer_create.c | 187 ATF_REQUIRE_ERRNO(EINVAL, timer_create(CLOCK_REALTIME, &ev, &t) == -1); in ATF_TC_BODY() 193 ATF_REQUIRE_ERRNO(EINVAL, timer_create(CLOCK_REALTIME, &ev, &t) == -1); in ATF_TC_BODY() 207 timer_signal_create(CLOCK_REALTIME, false); in ATF_TC_BODY() 235 timer_signal_create(CLOCK_REALTIME, true); in ATF_TC_BODY() 264 timer_thread_create(CLOCK_REALTIME, false); in ATF_TC_BODY() 292 timer_thread_create(CLOCK_REALTIME, true); in ATF_TC_BODY()
|
H A D | t_clock_nanosleep.c | 48 ATF_REQUIRE(clock_nanosleep(CLOCK_REALTIME, 0, &rqtp, &rmtp) == 0); in ATF_TC_BODY() 55 ATF_REQUIRE(clock_gettime(CLOCK_REALTIME, &rqtp) == 0); in ATF_TC_BODY() 57 ATF_REQUIRE(clock_nanosleep(CLOCK_REALTIME, TIMER_ABSTIME, &rqtp, &rmtp) == 0); in ATF_TC_BODY()
|
H A D | t_clock_gettime.c | 100 CL(clock_gettime(CLOCK_REALTIME, &tsa)); in check_timecounter() 109 CL(clock_gettime(CLOCK_REALTIME, &tsb)); in check_timecounter() 139 if (clock_getres(CLOCK_REALTIME, &res) == 0) { in check_timecounter()
|
/freebsd/contrib/libfido2/openbsd-compat/ |
H A D | time.h | 18 #define CLOCK_MONOTONIC CLOCK_REALTIME 21 #ifndef CLOCK_REALTIME 22 #define CLOCK_REALTIME 0 macro
|
/freebsd/contrib/netbsd-tests/lib/libpthread/ |
H A D | t_rwlock.c | 100 ATF_REQUIRE_EQ_MSG(clock_gettime(CLOCK_REALTIME, &to), 0, in ATF_TC_BODY() 109 ATF_REQUIRE_EQ_MSG(clock_gettime(CLOCK_REALTIME, &to), 0, in ATF_TC_BODY() 114 ATF_REQUIRE_EQ_MSG(clock_gettime(CLOCK_REALTIME, &to), 0, in ATF_TC_BODY()
|
/freebsd/contrib/openbsm/compat/ |
H A D | clock_gettime.h | 36 #define CLOCK_REALTIME 0x2d4e1588 macro 43 if (clock_id != CLOCK_REALTIME) { in clock_gettime()
|
/freebsd/tools/regression/priv/ |
H A D | priv_clock_settime.c | 51 if (clock_gettime(CLOCK_REALTIME, &the_time) < 0) { in priv_clock_settime_setup() 64 error = clock_settime(CLOCK_REALTIME, &the_time); in priv_clock_settime()
|
/freebsd/tools/tools/netrate/netblast/ |
H A D | netblast.c | 78 if (clock_getres(CLOCK_REALTIME, &tmptime) == -1) { in blast_loop() 83 if (clock_gettime(CLOCK_REALTIME, &starttime) == -1) { in blast_loop() 120 if (clock_gettime(CLOCK_REALTIME, &tmptime) == -1) { in blast_loop()
|
/freebsd/tools/tools/netrate/juggle/ |
H A D | juggle.c | 238 if (clock_gettime(CLOCK_REALTIME, &tstart) < 0) in juggle() 262 if (clock_gettime(CLOCK_REALTIME, &tfinish) < 0) in juggle() 340 if (clock_gettime(CLOCK_REALTIME, &tstart) < 0) in thread_juggle() 355 if (clock_gettime(CLOCK_REALTIME, &tfinish) < 0) in thread_juggle() 413 if (clock_gettime(CLOCK_REALTIME, &tstart) < 0) in process_juggle() 436 if (clock_gettime(CLOCK_REALTIME, &tfinish) < 0) in process_juggle()
|
/freebsd/tools/tools/netrate/netsend/ |
H A D | netsend.c | 107 if (clock_gettime(CLOCK_REALTIME, &curtime) == -1) { in wait_time() 118 if (clock_gettime(CLOCK_REALTIME, &curtime) == -1) { in wait_time() 150 if (clock_getres(CLOCK_REALTIME, &tmptime) == -1) { in timing_loop() 172 if (clock_gettime(CLOCK_REALTIME, &starttime) == -1) { in timing_loop() 250 if (clock_gettime(CLOCK_REALTIME, &tmptime) == -1) { in timing_loop()
|
/freebsd/lib/libc/tests/gen/ |
H A D | glob2_test.c | 74 clock_gettime(CLOCK_REALTIME, &t); in ATF_TC_BODY() 90 clock_gettime(CLOCK_REALTIME, &t2); in ATF_TC_BODY()
|
/freebsd/usr.bin/truss/ |
H A D | setup.c | 502 clock_gettime(CLOCK_REALTIME, &t->before); in enter_syscall() 521 clock_gettime(CLOCK_REALTIME, &t->after); in thread_exit_syscall() 540 clock_gettime(CLOCK_REALTIME, &t->after); in exit_syscall() 627 clock_gettime(CLOCK_REALTIME, &t->after); in report_thread_death() 638 clock_gettime(CLOCK_REALTIME, &t->after); in report_thread_birth() 650 clock_gettime(CLOCK_REALTIME, &t->after); in report_exit() 667 clock_gettime(CLOCK_REALTIME, &t->after); in report_new_child() 734 clock_gettime(CLOCK_REALTIME, &t->after); in report_signal()
|
/freebsd/lib/libthr/thread/ |
H A D | thr_umtx.c | 121 timeout._clockid = CLOCK_REALTIME; in __thr_umutex_timedlock() 290 timeout._clockid = CLOCK_REALTIME; in __thr_rwlock_rdlock() 310 timeout._clockid = CLOCK_REALTIME; in __thr_rwlock_wrlock()
|
/freebsd/lib/libc/isc/ |
H A D | ev_timers.c | 118 #ifdef CLOCK_REALTIME in evNowTime() 120 int m = CLOCK_REALTIME; in evNowTime() 137 #ifdef CLOCK_REALTIME in evUTCTime() 139 if (clock_gettime(CLOCK_REALTIME, &tsnow) == 0) in evUTCTime()
|
/freebsd/contrib/netbsd-tests/lib/librt/ |
H A D | t_sem.c | 254 ATF_REQUIRE_MSG(clock_gettime(CLOCK_REALTIME, &ts) == 0, in ATF_TC_BODY() 270 ATF_REQUIRE_MSG(clock_gettime(CLOCK_REALTIME, &ts) == 0, in ATF_TC_BODY() 288 ATF_REQUIRE_MSG(clock_gettime(CLOCK_REALTIME, &ts) == 0, in ATF_TC_BODY()
|
/freebsd/contrib/ntp/libntp/ |
H A D | adjtime.c | 317 if (ClockPeriod (CLOCK_REALTIME, 0, &period, 0) == -1) in adjtime() 357 if (ClockAdjust (CLOCK_REALTIME, &adj, &oldadj) == -1) in adjtime()
|
/freebsd/sys/dev/hyperv/utilities/ |
H A D | vmbus_timesync.c | 129 kern_clock_settime(curthread, CLOCK_REALTIME, &hv_ts); in vmbus_timesync() 161 kern_clock_settime(curthread, CLOCK_REALTIME, &hv_ts); in vmbus_timesync()
|
/freebsd/contrib/ntp/util/ |
H A D | sht.c | 201 #if defined(HAVE_CLOCK_GETTIME) && defined(CLOCK_REALTIME) in main() 207 if (0 == clock_gettime(CLOCK_REALTIME, &tmptime)) { in main()
|
/freebsd/lib/libc/gen/ |
H A D | timespec_getres.c | 15 if (clock_getres(CLOCK_REALTIME, ts) == 0) in timespec_getres()
|
H A D | timespec_get.c | 44 if (clock_gettime(CLOCK_REALTIME, ts) == -1) in timespec_get()
|
/freebsd/contrib/openbsm/bin/auditfilterd/ |
H A D | auditfilterd.c | 203 if (clock_gettime(CLOCK_REALTIME, &ts) < 0) in mainloop_file() 253 if (clock_gettime(CLOCK_REALTIME, &ts) < 0) in mainloop_pipe()
|
/freebsd/sys/sys/ |
H A D | _clock_id.h | 49 #define CLOCK_REALTIME 0 macro
|
/freebsd/tools/regression/gaithrstress/ |
H A D | gaithrstress.c | 123 (void)clock_gettime(CLOCK_REALTIME, &ts_begintime); in work() 125 (void)clock_gettime(CLOCK_REALTIME, &ts_total); in work()
|
/freebsd/contrib/netbsd-tests/lib/libc/gen/ |
H A D | t_sleep.c | 292 clock_gettime(CLOCK_REALTIME, &tsa); in sleeptest() 294 clock_gettime(CLOCK_REALTIME, &tsb); in sleeptest()
|
/freebsd/tools/tools/netrate/netreceive/ |
H A D | netreceive.c | 163 clock_gettime(CLOCK_REALTIME, &then); in main_thread() 178 clock_gettime(CLOCK_REALTIME, &now); in main_thread()
|