Home
last modified time | relevance | path

Searched refs:CLOCK_REALTIME (Results 1 – 25 of 112) sorted by relevance

12345

/freebsd/contrib/netbsd-tests/lib/libc/sys/
H A Dt_timer_create.c187 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 Dt_clock_nanosleep.c48 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 Dt_clock_gettime.c100 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 Dtime.h18 #define CLOCK_MONOTONIC CLOCK_REALTIME
21 #ifndef CLOCK_REALTIME
22 #define CLOCK_REALTIME 0 macro
/freebsd/contrib/netbsd-tests/lib/libpthread/
H A Dt_rwlock.c100 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 Dclock_gettime.h36 #define CLOCK_REALTIME 0x2d4e1588 macro
43 if (clock_id != CLOCK_REALTIME) { in clock_gettime()
/freebsd/tools/regression/priv/
H A Dpriv_clock_settime.c51 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 Dnetblast.c78 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 Djuggle.c238 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 Dnetsend.c107 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 Dglob2_test.c74 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 Dsetup.c502 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 Dthr_umtx.c121 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 Dev_timers.c118 #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 Dt_sem.c254 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 Dadjtime.c317 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 Dvmbus_timesync.c129 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 Dsht.c201 #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 Dtimespec_getres.c15 if (clock_getres(CLOCK_REALTIME, ts) == 0) in timespec_getres()
H A Dtimespec_get.c44 if (clock_gettime(CLOCK_REALTIME, ts) == -1) in timespec_get()
/freebsd/contrib/openbsm/bin/auditfilterd/
H A Dauditfilterd.c203 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.h49 #define CLOCK_REALTIME 0 macro
/freebsd/tools/regression/gaithrstress/
H A Dgaithrstress.c123 (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 Dt_sleep.c292 clock_gettime(CLOCK_REALTIME, &tsa); in sleeptest()
294 clock_gettime(CLOCK_REALTIME, &tsb); in sleeptest()
/freebsd/tools/tools/netrate/netreceive/
H A Dnetreceive.c163 clock_gettime(CLOCK_REALTIME, &then); in main_thread()
178 clock_gettime(CLOCK_REALTIME, &now); in main_thread()

12345