Searched refs:CLOCK_REALTIME (Results 1 - 25 of 97) sorted by relevance

1234

/freebsd-13-stable/contrib/openbsm/compat/
H A Dclock_gettime.h28 * Compatibility routines for clock_gettime(CLOCK_REALTIME, ...) for systems
36 #define CLOCK_REALTIME 0x2d4e1588 macro
43 if (clock_id != CLOCK_REALTIME) {
/freebsd-13-stable/lib/libc/gen/
H A Dtimespec_get.c46 if (clock_gettime(CLOCK_REALTIME, ts) == -1)
/freebsd-13-stable/contrib/netbsd-tests/lib/libc/sys/
H A Dt_clock_nanosleep.c48 ATF_REQUIRE(clock_nanosleep(CLOCK_REALTIME, 0, &rqtp, &rmtp) == 0);
55 ATF_REQUIRE(clock_gettime(CLOCK_REALTIME, &rqtp) == 0);
57 ATF_REQUIRE(clock_nanosleep(CLOCK_REALTIME, TIMER_ABSTIME, &rqtp, &rmtp) == 0);
H A Dt_timer_create.c187 ATF_REQUIRE_ERRNO(EINVAL, timer_create(CLOCK_REALTIME, &ev, &t) == -1);
193 ATF_REQUIRE_ERRNO(EINVAL, timer_create(CLOCK_REALTIME, &ev, &t) == -1);
201 "Checks timer_create(2) with CLOCK_REALTIME and sigevent(3), "
207 timer_signal_create(CLOCK_REALTIME, false);
229 "Checks timer_create(2) with CLOCK_REALTIME and sigevent(3), "
235 timer_signal_create(CLOCK_REALTIME, true);
257 "Checks timer_create(2) with CLOCK_REALTIME and sigevent(3), "
264 timer_thread_create(CLOCK_REALTIME, false);
286 "Checks timer_create(2) with CLOCK_REALTIME and sigevent(3), "
292 timer_thread_create(CLOCK_REALTIME, tru
[all...]
H A Dt_clock_gettime.c100 CL(clock_gettime(CLOCK_REALTIME, &tsa));
109 CL(clock_gettime(CLOCK_REALTIME, &tsb));
139 if (clock_getres(CLOCK_REALTIME, &res) == 0) {
156 "Checks the monotonicity of the CLOCK_REALTIME implementation");
/freebsd-13-stable/tools/regression/priv/
H A Dpriv_clock_settime.c36 * it. Test only CLOCK_REALTIME.
53 if (clock_gettime(CLOCK_REALTIME, &the_time) < 0) {
55 "clock_gettime(CLOCK_REALTIME)");
66 error = clock_settime(CLOCK_REALTIME, &the_time);
/freebsd-13-stable/contrib/netbsd-tests/lib/libpthread/
H A Dt_rwlock.c100 ATF_REQUIRE_EQ_MSG(clock_gettime(CLOCK_REALTIME, &to), 0,
109 ATF_REQUIRE_EQ_MSG(clock_gettime(CLOCK_REALTIME, &to), 0,
114 ATF_REQUIRE_EQ_MSG(clock_gettime(CLOCK_REALTIME, &to), 0,
/freebsd-13-stable/lib/libc/tests/gen/
H A Dglob2_test.c77 clock_gettime(CLOCK_REALTIME, &t);
93 clock_gettime(CLOCK_REALTIME, &t2);
/freebsd-13-stable/contrib/llvm-project/libcxx/src/
H A Dchrono.cpp31 # if !defined(CLOCK_REALTIME)
33 # endif // !defined(CLOCK_REALTIME)
77 #if defined(CLOCK_REALTIME)
79 if (0 != clock_gettime(CLOCK_REALTIME, &tp))
80 __throw_system_error(errno, "clock_gettime(CLOCK_REALTIME) failed");
86 #endif // CLOCK_REALTIME
/freebsd-13-stable/contrib/xz/src/xz/
H A Dmytime.c34 // reason isn't at runtime, fallback to CLOCK_REALTIME which
39 clk_id = CLOCK_REALTIME;
/freebsd-13-stable/contrib/llvm-project/compiler-rt/lib/xray/
H A Dxray_tsc.h69 int result = clock_gettime(CLOCK_REALTIME, &TS);
/freebsd-13-stable/tools/regression/sockets/unix_cmsg/
H A Duc_check_time.c66 if (clock_gettime(CLOCK_REALTIME, &ct) < 0)
/freebsd-13-stable/tools/tools/netrate/netblast/
H A Dnetblast.c80 if (clock_getres(CLOCK_REALTIME, &tmptime) == -1) {
85 if (clock_gettime(CLOCK_REALTIME, &starttime) == -1) {
122 if (clock_gettime(CLOCK_REALTIME, &tmptime) == -1) {
/freebsd-13-stable/include/
H A Dtime.h101 #if !defined(CLOCK_REALTIME) && __POSIX_VISIBLE >= 199506
102 #define CLOCK_REALTIME 0 macro
103 #endif /* !defined(CLOCK_REALTIME) && __POSIX_VISIBLE >= 199506 */
/freebsd-13-stable/contrib/blacklist/port/
H A Dport.h78 #define CLOCK_REALTIME 0 macro
/freebsd-13-stable/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/proc/
H A Dtst.sigwait.c49 if (timer_create(CLOCK_REALTIME, &ev, &tid) == -1) {
/freebsd-13-stable/tools/tools/netrate/netsend/
H A Dnetsend.c109 if (clock_gettime(CLOCK_REALTIME, &curtime) == -1) {
120 if (clock_gettime(CLOCK_REALTIME, &curtime) == -1) {
152 if (clock_getres(CLOCK_REALTIME, &tmptime) == -1) {
174 if (clock_gettime(CLOCK_REALTIME, &starttime) == -1) {
252 if (clock_gettime(CLOCK_REALTIME, &tmptime) == -1) {
/freebsd-13-stable/tools/tools/netrate/juggle/
H A Djuggle.c240 if (clock_gettime(CLOCK_REALTIME, &tstart) < 0)
264 if (clock_gettime(CLOCK_REALTIME, &tfinish) < 0)
342 if (clock_gettime(CLOCK_REALTIME, &tstart) < 0)
357 if (clock_gettime(CLOCK_REALTIME, &tfinish) < 0)
415 if (clock_gettime(CLOCK_REALTIME, &tstart) < 0)
438 if (clock_gettime(CLOCK_REALTIME, &tfinish) < 0)
/freebsd-13-stable/contrib/ntp/libntp/
H A Dadjtime.c317 if (ClockPeriod (CLOCK_REALTIME, 0, &period, 0) == -1)
357 if (ClockAdjust (CLOCK_REALTIME, &adj, &oldadj) == -1)
/freebsd-13-stable/contrib/ntp/util/
H A Dsht.c201 #if defined(HAVE_CLOCK_GETTIME) && defined(CLOCK_REALTIME)
207 if (0 == clock_gettime(CLOCK_REALTIME, &tmptime)) {
H A Djitter.c103 clock_gettime(CLOCK_REALTIME, &ts);
/freebsd-13-stable/lib/libthr/thread/
H A Dthr_condattr.c99 if (clock_id != CLOCK_REALTIME &&
H A Dthr_umtx.c134 timeout._clockid = CLOCK_REALTIME;
303 timeout._clockid = CLOCK_REALTIME;
323 timeout._clockid = CLOCK_REALTIME;
/freebsd-13-stable/sys/compat/cloudabi/
H A Dcloudabi_clock.c52 *out = CLOCK_REALTIME;
/freebsd-13-stable/contrib/netbsd-tests/lib/librt/
H A Dt_sem.c218 ATF_REQUIRE_MSG(clock_gettime(CLOCK_REALTIME, &ts) == 0,
234 ATF_REQUIRE_MSG(clock_gettime(CLOCK_REALTIME, &ts) == 0,
256 ATF_REQUIRE_MSG(clock_gettime(CLOCK_REALTIME, &ts) == 0,

Completed in 578 milliseconds

1234