Symbol: CLOCK_MONOTONIC
bin/csh/dol.c
832
(void)clock_gettime(CLOCK_MONOTONIC, &tv);
bin/csh/proc.c
123
(void)clock_gettime(CLOCK_MONOTONIC, &pp->p_etime);
bin/csh/proc.c
514
(void)clock_gettime(CLOCK_MONOTONIC, &pp->p_btime);
bin/csh/time.c
61
(void)clock_gettime(CLOCK_MONOTONIC, &time0);
bin/csh/time.c
81
(void)clock_gettime(CLOCK_MONOTONIC, &timedol);
bin/sleep/sleep.c
178
if (clock_gettime(CLOCK_MONOTONIC, &now) != 0)
bin/sleep/sleep.c
190
if ((e = clock_nanosleep(CLOCK_MONOTONIC, TIMER_ABSTIME,
bin/sleep/sleep.c
200
if (clock_gettime(CLOCK_MONOTONIC, &now) != 0) /* Huh? */
crypto/dist/ipsec-tools/src/racoon/schedule.c
69
clock_gettime(CLOCK_MONOTONIC, &ts);
lib/libc/gen/timespec_get.c
54
if (clock_gettime(CLOCK_MONOTONIC, ts) == -1)
lib/libc/gen/timespec_getres.c
52
if (clock_getres(CLOCK_MONOTONIC, ts) == -1)
lib/libc/isc/ev_timers.c
130
#ifdef CLOCK_MONOTONIC
lib/libc/isc/ev_timers.c
133
m = CLOCK_MONOTONIC;
lib/libc/time/localtime.c
263
#if !defined CLOCK_MONOTONIC_COARSE && defined CLOCK_MONOTONIC
lib/libc/time/localtime.c
264
# define CLOCK_MONOTONIC_COARSE CLOCK_MONOTONIC
lib/libcrypt/crypt-argon2.c
213
if (clock_gettime(CLOCK_MONOTONIC, &tp1) == -1)
lib/libcrypt/crypt-argon2.c
224
if (clock_gettime(CLOCK_MONOTONIC, &tp2) == -1)
lib/libpthread/pthread_cond.c
207
(void)_lwp_park(CLOCK_MONOTONIC, 0, NULL, 0, NULL,
lib/libpthread/pthread_cond.c
347
case CLOCK_MONOTONIC:
lib/libpthread/pthread_mutex.c
375
(void)_lwp_park(CLOCK_MONOTONIC, 0,
lib/libpthread/thrd.c
157
switch (clock_nanosleep(CLOCK_MONOTONIC, TIMER_RELTIME, duration,
lib/librumpuser/rumpfiber.c
133
rv = clock_gettime(CLOCK_MONOTONIC, &ts);
lib/librumpuser/rumpfiber.c
172
clock_nanosleep(CLOCK_MONOTONIC, 0, &sl, NULL);
lib/librumpuser/rumpfiber.c
467
clk = CLOCK_MONOTONIC;
lib/librumpuser/rumpuser.c
141
rv = clock_nanosleep(CLOCK_MONOTONIC, TIMER_ABSTIME,
lib/librumpuser/rumpuser.c
93
clk = CLOCK_MONOTONIC;
libexec/httpd/bozohttpd.c
164
#ifndef CLOCK_MONOTONIC
libexec/httpd/bozohttpd.c
692
if (clock_gettime(CLOCK_MONOTONIC, &ots) != 0) {
libexec/httpd/bozohttpd.c
709
if (clock_gettime(CLOCK_MONOTONIC, &ts) != 0) {
regress/sys/kern/latency1/latency1.c
135
clock_gettime(CLOCK_MONOTONIC, &start);
regress/sys/kern/latency1/latency1.c
78
clock_gettime(CLOCK_MONOTONIC, &end);
regress/sys/kern/latency2/latency2.c
143
clock_gettime(CLOCK_MONOTONIC, &start);
regress/sys/kern/latency2/latency2.c
77
clock_gettime(CLOCK_MONOTONIC, &end);
regress/sys/kern/nameibench/nameibench.c
127
if (clock_gettime(CLOCK_MONOTONIC, &sts)) {
regress/sys/kern/nameibench/nameibench.c
137
if (clock_gettime(CLOCK_MONOTONIC, &ets)) {
sbin/cgdconfig/argon2_utils.c
113
if (clock_gettime(CLOCK_MONOTONIC, &tp1) == -1)
sbin/cgdconfig/argon2_utils.c
124
if (clock_gettime(CLOCK_MONOTONIC, &tp2) == -1)
sbin/cgdconfig/argon2_utils.c
144
if (clock_gettime(CLOCK_MONOTONIC, &tp1) == -1)
sbin/cgdconfig/argon2_utils.c
155
if (clock_gettime(CLOCK_MONOTONIC, &tp2) == -1)
sbin/ifconfig/ifconfig.c
543
if (clock_gettime(CLOCK_MONOTONIC, &now) == -1)
sbin/ifconfig/ifconfig.c
581
if (clock_gettime(CLOCK_MONOTONIC, &now) == -1)
sbin/ping/ping.c
729
clock_gettime(CLOCK_MONOTONIC, &now);
sbin/ping/ping.c
746
(void)clock_gettime(CLOCK_MONOTONIC, &clear_cache);
sbin/ping/ping.c
756
clock_gettime(CLOCK_MONOTONIC, &now);
sbin/ping/ping.c
817
clock_gettime(CLOCK_MONOTONIC, &now);
sbin/ping/ping.c
939
(void)clock_gettime(CLOCK_MONOTONIC, &clear_cache);
sbin/ping6/ping6.c
919
clock_gettime(CLOCK_MONOTONIC, &now);
sbin/ping6/ping6.c
933
clock_gettime(CLOCK_MONOTONIC, &now);
sys/arch/usermode/usermode/thunk.c
289
error = clock_gettime(CLOCK_MONOTONIC, &ts);
sys/arch/usermode/usermode/thunk.c
304
error = clock_getres(CLOCK_MONOTONIC, &res);
sys/arch/usermode/usermode/thunk.c
317
error = timer_create(CLOCK_MONOTONIC, NULL, &timerid);
sys/compat/common/kern_time_50.c
193
error = nanosleep1(l, CLOCK_MONOTONIC, 0, &rqt,
sys/compat/linux/common/linux_time.c
174
error = nanosleep1(l, CLOCK_MONOTONIC, 0, &rqts,
sys/compat/linux/common/linux_time.c
192
*n = CLOCK_MONOTONIC;
sys/compat/linux/common/linux_time.c
343
case CLOCK_MONOTONIC:
sys/compat/linux32/common/linux32_time.c
294
error = nanosleep1(l, CLOCK_MONOTONIC, 0, &rqts,
sys/compat/netbsd32/netbsd32_compat_50.c
455
error = nanosleep1(l, CLOCK_MONOTONIC, 0, &rqt,
sys/compat/netbsd32/netbsd32_time.c
373
error = nanosleep1(l, CLOCK_MONOTONIC, 0, &rqt,
sys/dev/pci/xmm7360.c
1485
hrtimer_init(&xn->deadline, CLOCK_MONOTONIC, HRTIMER_MODE_REL);
sys/kern/kern_time.c
113
CTASSERT(ITIMER_MONOTONIC == CLOCK_MONOTONIC);
sys/kern/kern_time.c
1244
if ((u_int)id > CLOCK_MONOTONIC)
sys/kern/kern_time.c
1278
case CLOCK_MONOTONIC:
sys/kern/kern_time.c
320
case CLOCK_MONOTONIC:
sys/kern/kern_time.c
355
case CLOCK_MONOTONIC:
sys/kern/kern_time.c
387
error = nanosleep1(l, CLOCK_MONOTONIC, 0, &rqt,
sys/kern/kern_time.c
848
(it->it_clockid == CLOCK_MONOTONIC
sys/kern/kern_time.c
878
if (it->it_clockid == CLOCK_MONOTONIC) {
sys/kern/subr_time.c
190
case CLOCK_MONOTONIC:
sys/kern/sys_futex.c
1672
: CLOCK_MONOTONIC;
sys/kern/sys_timerfd.c
161
KASSERT(clock_id == CLOCK_REALTIME || clock_id == CLOCK_MONOTONIC);
sys/kern/sys_timerfd.c
503
case CLOCK_MONOTONIC:
sys/kern/sysv_sem.c
851
error = ts2timo(CLOCK_MONOTONIC, TIMER_RELTIME, timeout,
tests/crypto/opencrypto/h_thread.c
164
if (timer_create(CLOCK_MONOTONIC, &sigev, &timer) == -1)
tests/kernel/kqueue/t_timer.c
113
ATF_REQUIRE(clock_gettime(CLOCK_MONOTONIC,
tests/kernel/kqueue/t_timer.c
131
ATF_REQUIRE(clock_gettime(CLOCK_MONOTONIC,
tests/kernel/kqueue/t_timer.c
147
ATF_REQUIRE(clock_gettime(CLOCK_MONOTONIC, &ots) == 0);
tests/kernel/kqueue/t_timer.c
151
ATF_REQUIRE(clock_gettime(CLOCK_MONOTONIC, &ts) == 0);
tests/kernel/kqueue/t_timer.c
321
ATF_REQUIRE(clock_gettime(CLOCK_MONOTONIC, &ots) == 0);
tests/kernel/kqueue/t_timer.c
323
ATF_REQUIRE(clock_gettime(CLOCK_MONOTONIC, &ts) == 0);
tests/kernel/kqueue/t_timer.c
99
ATF_REQUIRE(clock_gettime(CLOCK_MONOTONIC, &ots) == 0);
tests/kernel/t_nanosleep.c
164
(void) clock_nanosleep(CLOCK_MONOTONIC, TIMER_RELTIME, &brief, NULL);
tests/kernel/t_nanosleep.c
173
(void) clock_nanosleep(CLOCK_MONOTONIC, TIMER_RELTIME, &brief, NULL);
tests/kernel/t_nanosleep.c
204
runit(CLOCK_MONOTONIC, TIMER_ABSTIME);
tests/kernel/t_nanosleep.c
214
runit(CLOCK_MONOTONIC, TIMER_RELTIME);
tests/kernel/t_timeleft.c
63
ATF_REQUIRE_ERRNO(EINTR, _lwp_park(CLOCK_MONOTONIC, TIMER_RELTIME,
tests/lib/libc/gen/t_timespec_get.c
100
ATF_REQUIRE_EQ(clock_gettime(CLOCK_MONOTONIC, &ts2), 0);
tests/lib/libc/gen/t_timespec_get.c
46
ATF_REQUIRE_EQ(clock_getres(CLOCK_MONOTONIC, &ts2), 0);
tests/lib/libc/sys/t_clock_gettime.c
244
RL(clock_gettime(CLOCK_MONOTONIC, &mono_t0));
tests/lib/libc/sys/t_clock_gettime.c
261
RL(clock_gettime(CLOCK_MONOTONIC, &mono_t1));
tests/lib/libc/sys/t_clock_gettime.c
315
check_resolution("CLOCK_MONOTONIC", CLOCK_MONOTONIC);
tests/lib/libc/sys/t_eventfd.c
107
ATF_REQUIRE(clock_gettime(CLOCK_MONOTONIC, &deadline) == 0);
tests/lib/libc/sys/t_eventfd.c
70
ATF_REQUIRE(pthread_condattr_setclock(&condattr, CLOCK_MONOTONIC) == 0);
tests/lib/libc/sys/t_futex_ops.c
1350
do_futex_wait_timeout(true, CLOCK_MONOTONIC);
tests/lib/libc/sys/t_futex_ops.c
1372
do_futex_wait_timeout(false, CLOCK_MONOTONIC);
tests/lib/libc/sys/t_nanosleep.c
73
ATF_REQUIRE(clock_gettime(CLOCK_MONOTONIC, &ts1) == 0);
tests/lib/libc/sys/t_nanosleep.c
75
ATF_REQUIRE(clock_gettime(CLOCK_MONOTONIC, &ts2) == 0);
tests/lib/libc/sys/t_poll.c
480
RL(clock_gettime(CLOCK_MONOTONIC, &ts1));
tests/lib/libc/sys/t_poll.c
483
RL(clock_gettime(CLOCK_MONOTONIC, &ts2));
tests/lib/libc/sys/t_poll.c
572
RL(clock_gettime(CLOCK_MONOTONIC, &start));
tests/lib/libc/sys/t_poll.c
574
RL(clock_gettime(CLOCK_MONOTONIC, &end));
tests/lib/libc/sys/t_poll.c
643
RL(clock_gettime(CLOCK_MONOTONIC, &start));
tests/lib/libc/sys/t_poll.c
645
RL(clock_gettime(CLOCK_MONOTONIC, &end));
tests/lib/libc/sys/t_sigtimedwait.c
70
RL(clock_gettime(CLOCK_MONOTONIC, &before));
tests/lib/libc/sys/t_sigtimedwait.c
73
RL(clock_gettime(CLOCK_MONOTONIC, &after));
tests/lib/libc/sys/t_timer_create.c
314
timer_signal_create(CLOCK_MONOTONIC, NOEXPIRE, 0);
tests/lib/libc/sys/t_timer_create.c
328
timer_signal_create(CLOCK_MONOTONIC, NOEXPIRE, TIMER_ABSTIME);
tests/lib/libc/sys/t_timer_create.c
370
timer_signal_create(CLOCK_MONOTONIC, EXPIRE, 0);
tests/lib/libc/sys/t_timer_create.c
384
timer_signal_create(CLOCK_MONOTONIC, EXPIRE, TIMER_ABSTIME);
tests/lib/libc/sys/t_timer_create.c
414
timer_signal_create(CLOCK_MONOTONIC, PAST, TIMER_ABSTIME);
tests/lib/libc/sys/t_timer_create.c
444
RL(clock_gettime(CLOCK_MONOTONIC, &now));
tests/lib/libc/sys/t_timer_create.c
446
RL(timer_create(CLOCK_MONOTONIC, NULL, &t));
tests/lib/libc/sys/t_timerfd.c
135
ATF_REQUIRE((fd = timerfd_create(CLOCK_MONOTONIC, 0)) >= 0);
tests/lib/libc/sys/t_timerfd.c
216
RL(clock_gettime(CLOCK_MONOTONIC, &now));
tests/lib/libc/sys/t_timerfd.c
217
RL(fd = timerfd_create(CLOCK_MONOTONIC, TFD_NONBLOCK));
tests/lib/libc/sys/t_timerfd.c
264
RL(fd = timerfd_create(CLOCK_MONOTONIC, TFD_NONBLOCK));
tests/lib/libc/sys/t_timerfd.c
266
RL(clock_gettime(CLOCK_MONOTONIC, &then));
tests/lib/libc/sys/t_timerfd.c
275
RL(clock_nanosleep(CLOCK_MONOTONIC, 0, &(const struct timespec){0, 1},
tests/lib/libc/sys/t_timerfd.c
279
RL(clock_gettime(CLOCK_MONOTONIC, &now));
tests/lib/libc/sys/t_timerfd.c
305
ATF_REQUIRE((fd = timerfd_create(CLOCK_MONOTONIC, 0)) >= 0);
tests/lib/libc/sys/t_timerfd.c
313
ATF_REQUIRE(clock_gettime(CLOCK_MONOTONIC, &then) == 0);
tests/lib/libc/sys/t_timerfd.c
322
ATF_REQUIRE(clock_gettime(CLOCK_MONOTONIC, &now) == 0);
tests/lib/libc/sys/t_timerfd.c
348
ATF_REQUIRE((fd = timerfd_create(CLOCK_MONOTONIC,
tests/lib/libc/sys/t_timerfd.c
356
ATF_REQUIRE(clock_gettime(CLOCK_MONOTONIC, &then) == 0);
tests/lib/libc/sys/t_timerfd.c
359
ATF_REQUIRE(clock_gettime(CLOCK_MONOTONIC, &now) == 0);
tests/lib/libc/sys/t_timerfd.c
387
ATF_REQUIRE((fd = timerfd_create(CLOCK_MONOTONIC, 0)) >= 0);
tests/lib/libc/sys/t_timerfd.c
394
ATF_REQUIRE(clock_gettime(CLOCK_MONOTONIC, &then) == 0);
tests/lib/libc/sys/t_timerfd.c
407
ATF_REQUIRE(clock_gettime(CLOCK_MONOTONIC, &now) == 0);
tests/lib/libc/sys/t_timerfd.c
523
ATF_REQUIRE((fd = timerfd_create(CLOCK_MONOTONIC, TFD_NONBLOCK)) >= 0);
tests/lib/libc/sys/t_timerfd.c
634
ATF_REQUIRE((fd = timerfd_create(CLOCK_MONOTONIC, TFD_NONBLOCK)) >= 0);
tests/lib/libc/sys/t_timerfd.c
660
ATF_REQUIRE(clock_gettime(CLOCK_MONOTONIC, &then) == 0);
tests/lib/libc/sys/t_timerfd.c
663
ATF_REQUIRE(clock_gettime(CLOCK_MONOTONIC, &now) == 0);
tests/lib/libc/sys/t_timerfd.c
671
ATF_REQUIRE(clock_gettime(CLOCK_MONOTONIC, &then) == 0);
tests/lib/libc/sys/t_timerfd.c
674
ATF_REQUIRE(clock_gettime(CLOCK_MONOTONIC, &now) == 0);
tests/lib/libc/sys/t_timerfd.c
680
ATF_REQUIRE(clock_gettime(CLOCK_MONOTONIC, &then) == 0);
tests/lib/libc/sys/t_timerfd.c
683
ATF_REQUIRE(clock_gettime(CLOCK_MONOTONIC, &now) == 0);
tests/lib/libc/sys/t_timerfd.c
728
ATF_REQUIRE((ctx.fd = timerfd_create(CLOCK_MONOTONIC, 0)) >= 0);
tests/lib/libc/sys/t_timerfd.c
737
ATF_REQUIRE(clock_gettime(CLOCK_MONOTONIC, &then) == 0);
tests/lib/libc/sys/t_timerfd.c
748
ATF_REQUIRE(clock_gettime(CLOCK_MONOTONIC, &now) == 0);
tests/lib/libc/sys/t_timerfd.c
771
ATF_REQUIRE((tfd = timerfd_create(CLOCK_MONOTONIC, 0)) >= 0);
tests/lib/libc/sys/t_timerfd.c
785
ATF_REQUIRE((tfd = timerfd_create(CLOCK_MONOTONIC,
tests/lib/libpthread/t_cancellation.c
196
RL(clock_nanosleep(CLOCK_MONOTONIC, 0, &t, NULL));
tests/lib/libpthread/t_cancellation.c
545
RZ(pthread_cond_clockwait(&cond, &mutex, CLOCK_MONOTONIC, &t));
tests/lib/libpthread/t_cond.c
565
PTHREAD_REQUIRE(pthread_condattr_setclock(&condattr, CLOCK_MONOTONIC));
tests/lib/libpthread/t_cond.c
567
ATF_REQUIRE_EQ(clockid, CLOCK_MONOTONIC);
tests/lib/libpthread/t_condwait.c
134
cond_wait(CLOCK_MONOTONIC, "CLOCK_MONOTONIC");
tests/lib/libpthread/t_condwait.c
88
if (clck == CLOCK_MONOTONIC)
tests/lib/libpthread/t_thrd.c
190
ATF_REQUIRE_EQ(clock_gettime(CLOCK_MONOTONIC, &start), 0);
tests/lib/libpthread/t_thrd.c
192
ATF_REQUIRE_EQ(clock_gettime(CLOCK_MONOTONIC, &stop), 0);
tests/lib/libpthread/t_thrd.c
206
ATF_REQUIRE_EQ(clock_gettime(CLOCK_MONOTONIC, &start), 0);
tests/lib/libpthread/t_thrd.c
208
ATF_REQUIRE_EQ(clock_gettime(CLOCK_MONOTONIC, &stop), 0);
tests/libexec/ld.elf_so/t_dlclose_thread.c
171
RL(timer_create(CLOCK_MONOTONIC, &sigev, &t));
tests/libexec/ld.elf_so/t_dlclose_thread.c
208
RL(timer_create(CLOCK_MONOTONIC, &sigev, &t));
tests/net/mcast/mcast.c
284
#ifdef CLOCK_MONOTONIC
tests/net/mcast/mcast.c
285
if (clock_gettime(CLOCK_MONOTONIC, &msg.ts) == -1)
usr.bin/rump_dhcpclient/common.c
86
#if defined(_POSIX_MONOTONIC_CLOCK) && defined(CLOCK_MONOTONIC)
usr.bin/rump_dhcpclient/common.c
91
if (clock_gettime(CLOCK_MONOTONIC, &ts) == 0) {
usr.bin/rump_dhcpclient/common.c
92
posix_clock = CLOCK_MONOTONIC;
usr.bin/time/time.c
123
(void)clock_gettime(CLOCK_MONOTONIC, &before);
usr.bin/time/time.c
140
(void)clock_gettime(CLOCK_MONOTONIC, &after);
usr.sbin/inetd/ratelimit.c
229
if (clock_gettime(CLOCK_MONOTONIC, &ts) == -1) {
usr.sbin/rtadvd/config.c
1136
prog_clock_gettime(CLOCK_MONOTONIC, &now);
usr.sbin/rtadvd/config.c
459
prog_clock_gettime(CLOCK_MONOTONIC, &now);
usr.sbin/rtadvd/config.c
479
prog_clock_gettime(CLOCK_MONOTONIC, &now);
usr.sbin/rtadvd/dump.c
106
prog_clock_gettime(CLOCK_MONOTONIC, &now); /* XXX: unused in most cases */
usr.sbin/rtadvd/rtadvd.c
1022
prog_clock_gettime(CLOCK_MONOTONIC, &now);
usr.sbin/rtadvd/rtadvd.c
1252
prog_clock_gettime(CLOCK_MONOTONIC, &now);
usr.sbin/rtadvd/rtadvd.c
1288
prog_clock_gettime(CLOCK_MONOTONIC, &now);
usr.sbin/rtadvd/rtadvd.c
1728
prog_clock_gettime(CLOCK_MONOTONIC, &rai->lastsent);
usr.sbin/rtadvd/timer.c
105
prog_clock_gettime(CLOCK_MONOTONIC, &now);
usr.sbin/rtadvd/timer.c
128
prog_clock_gettime(CLOCK_MONOTONIC, &now);
usr.sbin/rtadvd/timer.c
161
prog_clock_gettime(CLOCK_MONOTONIC, &now);