/freebsd-11-stable/contrib/gcclibs/libgomp/config/posix/ |
H A D | time.c | 53 # ifdef CLOCK_MONOTONIC 54 if (clock_gettime (CLOCK_MONOTONIC, &ts) < 0) 70 # ifdef CLOCK_MONOTONIC 71 if (clock_getres (CLOCK_MONOTONIC, &ts) < 0)
|
/freebsd-11-stable/usr.bin/mkuzip/ |
H A D | mkuz_time.c | 41 if (clock_gettime(CLOCK_MONOTONIC, &tp) == -1)
|
/freebsd-11-stable/contrib/netbsd-tests/lib/librt/ |
H A D | t_sem.c | 264 /* CLOCK_MONOTONIC, absolute */ 266 ATF_REQUIRE_MSG(clock_gettime(CLOCK_MONOTONIC, &ts) == 0, 269 SEM_REQUIRE(sem_clockwait_np(&sem, CLOCK_MONOTONIC, TIMER_ABSTIME, 272 sem_clockwait_np(&sem, CLOCK_MONOTONIC, TIMER_ABSTIME, &ts, NULL)); 274 /* CLOCK_MONOTONIC, relative */ 278 SEM_REQUIRE(sem_clockwait_np(&sem, CLOCK_MONOTONIC, 0, 281 sem_clockwait_np(&sem, CLOCK_MONOTONIC, 0, &ts, NULL)); 289 ATF_REQUIRE_MSG(clock_gettime(CLOCK_MONOTONIC, &ts) == 0, 292 ATF_REQUIRE_ERRNO(EINTR, sem_clockwait_np(&sem, CLOCK_MONOTONIC, 307 ATF_REQUIRE_ERRNO(EINTR, sem_clockwait_np(&sem, CLOCK_MONOTONIC, [all...] |
/freebsd-11-stable/contrib/ntp/sntp/libevent/ |
H A D | time-internal.h | 46 #if defined(EVENT__HAVE_CLOCK_GETTIME) && defined(CLOCK_MONOTONIC)
|
H A D | evutil_time.c | 216 monotonic clock. CLOCK_MONOTONIC is most widely supported. Linux also 219 On all platforms I'm aware of, CLOCK_MONOTONIC really is monotonic. 227 /* CLOCK_MONOTONIC exists on FreeBSD, Linux, and Solaris. You need to 251 if (!fallback && clock_gettime(CLOCK_MONOTONIC, &ts) == 0) { 252 base->monotonic_clock = CLOCK_MONOTONIC; 256 if (CLOCK_MONOTONIC < 0) { 257 event_errx(1,"I didn't expect CLOCK_MONOTONIC to be < 0");
|
/freebsd-11-stable/lib/libc/gen/ |
H A D | times.c | 63 if (clock_gettime(CLOCK_MONOTONIC, &t))
|
/freebsd-11-stable/contrib/xz/src/xz/ |
H A D | mytime.c | 33 // If CLOCK_MONOTONIC was available at compile time but for some 36 static clockid_t clk_id = CLOCK_MONOTONIC;
|
/freebsd-11-stable/contrib/netbsd-tests/lib/libc/sys/ |
H A D | t_sigtimedwait.c | 59 clock_gettime(CLOCK_MONOTONIC, &before); 61 clock_gettime(CLOCK_MONOTONIC, &after);
|
H A D | t_timer_create.c | 160 "Checks timer_create(2) with CLOCK_MONOTONIC and sigevent(3), " 166 timer_signal_create(CLOCK_MONOTONIC, false); 188 "Checks timer_create(2) with CLOCK_MONOTONIC and sigevent(3), " 194 timer_signal_create(CLOCK_MONOTONIC, true);
|
H A D | t_nanosleep.c | 82 ATF_REQUIRE(clock_gettime(CLOCK_MONOTONIC, &ts1) == 0); 84 ATF_REQUIRE(clock_gettime(CLOCK_MONOTONIC, &ts2) == 0);
|
/freebsd-11-stable/contrib/llvm-project/libcxx/src/ |
H A D | chrono.cpp | 12 #include <time.h> // clock_gettime, CLOCK_MONOTONIC and CLOCK_REALTIME 35 #elif !defined(_LIBCPP_WIN32API) && !defined(CLOCK_MONOTONIC) 207 #elif defined(CLOCK_MONOTONIC) 213 #error "Never use CLOCK_MONOTONIC for steady_clock::now on Apple platforms" 220 if (0 != clock_gettime(CLOCK_MONOTONIC, &tp)) 221 __throw_system_error(errno, "clock_gettime(CLOCK_MONOTONIC) failed");
|
/freebsd-11-stable/bin/dd/ |
H A D | misc.c | 64 if (clock_gettime(CLOCK_MONOTONIC, &end)) 66 if (clock_getres(CLOCK_MONOTONIC, &ts_res))
|
/freebsd-11-stable/include/ |
H A D | time.h | 106 #if !defined(CLOCK_MONOTONIC) && __POSIX_VISIBLE >= 200112 107 #define CLOCK_MONOTONIC 4 macro 118 #endif /* !defined(CLOCK_MONOTONIC) && __POSIX_VISIBLE >= 200112 */
|
/freebsd-11-stable/sys/compat/linuxkpi/common/include/linux/ |
H A D | hrtimer.h | 60 CTASSERT((clock) == CLOCK_MONOTONIC); \
|
/freebsd-11-stable/contrib/openbsm/bin/auditdistd/ |
H A D | synch.h | 146 error = pthread_condattr_setclock(&attr, CLOCK_MONOTONIC); 174 error = clock_gettime(CLOCK_MONOTONIC, &ts);
|
/freebsd-11-stable/tests/sys/audit/ |
H A D | utils.c | 148 ATF_REQUIRE_EQ(0, clock_gettime(CLOCK_MONOTONIC, &endtime)); 154 ATF_REQUIRE_EQ(0, clock_gettime(CLOCK_MONOTONIC, &currtime));
|
/freebsd-11-stable/sbin/hastd/ |
H A D | synch.h | 147 error = pthread_condattr_setclock(&attr, CLOCK_MONOTONIC); 174 error = clock_gettime(CLOCK_MONOTONIC, &ts);
|
/freebsd-11-stable/lib/libthr/thread/ |
H A D | thr_condattr.c | 100 clock_id != CLOCK_MONOTONIC) {
|
/freebsd-11-stable/sys/compat/cloudabi/ |
H A D | cloudabi_clock.c | 46 *out = CLOCK_MONOTONIC;
|
/freebsd-11-stable/contrib/xz/src/common/ |
H A D | mythread.h | 118 // Clock ID (CLOCK_REALTIME or CLOCK_MONOTONIC) associated with 211 // Using CLOCK_MONOTONIC instead of the default CLOCK_REALTIME makes the 213 // is suddenly changed. Unfortunately CLOCK_MONOTONIC isn't available 215 // used if CLOCK_MONOTONIC isn't available. 229 // CLOCK_MONOTONIC really is supported using clock_gettime(). 230 if (clock_gettime(CLOCK_MONOTONIC, &ts) == 0 233 &condattr, CLOCK_MONOTONIC); 240 mycond->clk_id = CLOCK_MONOTONIC;
|
/freebsd-11-stable/contrib/libucl/tests/ |
H A D | test_speed.c | 51 clock_gettime (CLOCK_MONOTONIC, &ts);
|
/freebsd-11-stable/contrib/jemalloc/src/ |
H A D | nstime.c | 125 clock_gettime(CLOCK_MONOTONIC, &ts);
|
/freebsd-11-stable/lib/libc/sys/ |
H A D | __vdso_gettimeofday.c | 138 case CLOCK_MONOTONIC:
|
/freebsd-11-stable/contrib/netbsd-tests/lib/libpthread/ |
H A D | t_condwait.c | 133 "with CLOCK_MONOTONIC"); 137 cond_wait(CLOCK_MONOTONIC, "CLOCK_MONOTONIC");
|
/freebsd-11-stable/contrib/wpa/src/utils/ |
H A D | os_unix.c | 75 #elif defined(CLOCK_MONOTONIC) 76 static clockid_t clock_id = CLOCK_MONOTONIC; 96 clock_id = CLOCK_MONOTONIC; 99 #ifdef CLOCK_MONOTONIC 100 case CLOCK_MONOTONIC:
|