/freebsd/contrib/netbsd-tests/lib/librt/ |
H A D | t_sem.c | 312 ATF_REQUIRE_MSG(clock_gettime(CLOCK_MONOTONIC, &ts) == 0, in ATF_TC_BODY() 315 SEM_REQUIRE(sem_clockwait_np(&sem, CLOCK_MONOTONIC, TIMER_ABSTIME, in ATF_TC_BODY() 318 sem_clockwait_np(&sem, CLOCK_MONOTONIC, TIMER_ABSTIME, &ts, NULL)); in ATF_TC_BODY() 338 SEM_REQUIRE(sem_clockwait_np(&sem, CLOCK_MONOTONIC, 0, in ATF_TC_BODY() 341 sem_clockwait_np(&sem, CLOCK_MONOTONIC, 0, &ts, NULL)); in ATF_TC_BODY() 366 ATF_REQUIRE_MSG(clock_gettime(CLOCK_MONOTONIC, &ts) == 0, in ATF_TC_BODY() 369 ATF_REQUIRE_EQ(-1, sem_clockwait_np(&sem, CLOCK_MONOTONIC, in ATF_TC_BODY() 401 ATF_REQUIRE_EQ(-1, sem_clockwait_np(&sem, CLOCK_MONOTONIC, 0, &ts, in ATF_TC_BODY()
|
/freebsd/sys/sys/ |
H A D | _clock_id.h | 56 #define CLOCK_MONOTONIC 4 macro 81 #define CLOCK_BOOTTIME CLOCK_MONOTONIC
|
/freebsd/contrib/netbsd-tests/lib/libc/sys/ |
H A D | t_timer_create.c | 221 timer_signal_create(CLOCK_MONOTONIC, false); in ATF_TC_BODY() 249 timer_signal_create(CLOCK_MONOTONIC, true); in ATF_TC_BODY() 278 timer_thread_create(CLOCK_MONOTONIC, false); in ATF_TC_BODY() 306 timer_thread_create(CLOCK_MONOTONIC, true); in ATF_TC_BODY()
|
H A D | t_sigtimedwait.c | 59 clock_gettime(CLOCK_MONOTONIC, &before); in ATF_TC_BODY() 61 clock_gettime(CLOCK_MONOTONIC, &after); in ATF_TC_BODY()
|
H A D | t_nanosleep.c | 82 ATF_REQUIRE(clock_gettime(CLOCK_MONOTONIC, &ts1) == 0); in ATF_TC_BODY() 84 ATF_REQUIRE(clock_gettime(CLOCK_MONOTONIC, &ts2) == 0); in ATF_TC_BODY()
|
/freebsd/contrib/libfido2/src/ |
H A D | time.c | 35 if (clock_gettime(CLOCK_MONOTONIC, ts_now) != 0) { in fido_time_now() 52 if (clock_gettime(CLOCK_MONOTONIC, &ts_end) != 0) { in fido_time_delta()
|
/freebsd/contrib/libfido2/openbsd-compat/ |
H A D | time.h | 17 #ifndef CLOCK_MONOTONIC 18 #define CLOCK_MONOTONIC CLOCK_REALTIME macro
|
H A D | clock_gettime.c | 18 if (clock_id != CLOCK_MONOTONIC) { in clock_gettime()
|
/freebsd/contrib/wpa/src/utils/ |
H A D | os_unix.c | 80 #elif defined(CLOCK_MONOTONIC) in os_get_reltime() 81 static clockid_t clock_id = CLOCK_MONOTONIC; in os_get_reltime() 101 clock_id = CLOCK_MONOTONIC; in os_get_reltime() 104 #ifdef CLOCK_MONOTONIC in os_get_reltime() 109 #if !(defined(CLOCK_BOOTTIME) && CLOCK_BOOTTIME == CLOCK_MONOTONIC) in os_get_reltime() 110 case CLOCK_MONOTONIC: in os_get_reltime()
|
/freebsd/usr.bin/time/ |
H A D | time.c | 110 if (clock_gettime(CLOCK_MONOTONIC, &before_ts)) in main() 130 if (clock_gettime(CLOCK_MONOTONIC, &after)) in main() 136 if (clock_gettime(CLOCK_MONOTONIC, &after)) in main()
|
/freebsd/bin/dd/ |
H A D | misc.c | 59 if (clock_gettime(CLOCK_MONOTONIC, &end)) in secs_elapsed() 61 if (clock_getres(CLOCK_MONOTONIC, &ts_res)) in secs_elapsed()
|
/freebsd/contrib/openbsm/bin/auditdistd/ |
H A D | synch.h | 146 error = pthread_condattr_setclock(&attr, CLOCK_MONOTONIC); in cv_init() 174 error = clock_gettime(CLOCK_MONOTONIC, &ts); in cv_timedwait()
|
/freebsd/tools/tools/so_splice/ |
H A D | pingpong.c | 140 clock_gettime(CLOCK_MONOTONIC, &ts1); in main() 149 clock_gettime(CLOCK_MONOTONIC, &ts2); in main()
|
/freebsd/usr.bin/mkuzip/ |
H A D | mkuz_time.c | 39 if (clock_gettime(CLOCK_MONOTONIC, &tp) == -1) in getdtime()
|
/freebsd/tests/sys/audit/ |
H A D | utils.c | 150 ATF_REQUIRE_EQ(0, clock_gettime(CLOCK_MONOTONIC, &endtime)); in check_auditpipe() 156 ATF_REQUIRE_EQ(0, clock_gettime(CLOCK_MONOTONIC, &currtime)); in check_auditpipe()
|
/freebsd/contrib/libfido2/examples/ |
H A D | select.c | 115 if (clock_gettime(CLOCK_MONOTONIC, &ts_start) != 0) { in select_dev() 150 if (clock_gettime(CLOCK_MONOTONIC, &ts_now) != 0) { in select_dev()
|
/freebsd/usr.sbin/rpc.tlsservd/ |
H A D | rpc.tlscommon.c | 72 clock_gettime(CLOCK_MONOTONIC, &tp); in rpctls_svc_run() 85 clock_gettime(CLOCK_MONOTONIC, &tp); in rpctls_svc_run()
|
/freebsd/lib/libc/gen/ |
H A D | timespec_getres.c | 19 if (clock_getres(CLOCK_MONOTONIC, ts) == 0) in timespec_getres()
|
H A D | timespec_get.c | 48 if (clock_gettime(CLOCK_MONOTONIC, ts) == -1) in timespec_get()
|
H A D | times.c | 58 if (clock_gettime(CLOCK_MONOTONIC, &t)) in times()
|
/freebsd/contrib/ntp/sntp/libevent/ |
H A D | evutil_time.c | 334 if (!fallback && clock_gettime(CLOCK_MONOTONIC, &ts) == 0) { in evutil_configure_monotonic_time_() 335 base->monotonic_clock = CLOCK_MONOTONIC; in evutil_configure_monotonic_time_() 339 if (CLOCK_MONOTONIC < 0) { in evutil_configure_monotonic_time_()
|
H A D | time-internal.h | 46 #if defined(EVENT__HAVE_CLOCK_GETTIME) && defined(CLOCK_MONOTONIC)
|
/freebsd/contrib/libevent/ |
H A D | evutil_time.c | 334 if (!fallback && clock_gettime(CLOCK_MONOTONIC, &ts) == 0) { in evutil_configure_monotonic_time_() 335 base->monotonic_clock = CLOCK_MONOTONIC; in evutil_configure_monotonic_time_() 339 if (CLOCK_MONOTONIC < 0) { in evutil_configure_monotonic_time_()
|
H A D | time-internal.h | 46 #if defined(EVENT__HAVE_CLOCK_GETTIME) && defined(CLOCK_MONOTONIC)
|
/freebsd/tools/regression/sockets/unix_cmsg/ |
H A D | uc_check_time.c | 78 if (clock_gettime(CLOCK_MONOTONIC, &ct) < 0) in uc_check_timespec_mono()
|