HomeSort by: relevance | last modified time | path
    Searched refs:CLOCK_MONOTONIC (Results 1 - 25 of 66) sorted by relevancy

1 2 3

  /src/lib/libc/gen/
timespec_get.c 54 if (clock_gettime(CLOCK_MONOTONIC, ts) == -1)
timespec_getres.c 52 if (clock_getres(CLOCK_MONOTONIC, ts) == -1)
  /src/tests/lib/libc/sys/
t_timerfd.c 135 ATF_REQUIRE((fd = timerfd_create(CLOCK_MONOTONIC, 0)) >= 0);
216 RL(clock_gettime(CLOCK_MONOTONIC, &now));
217 RL(fd = timerfd_create(CLOCK_MONOTONIC, TFD_NONBLOCK));
264 RL(fd = timerfd_create(CLOCK_MONOTONIC, TFD_NONBLOCK));
266 RL(clock_gettime(CLOCK_MONOTONIC, &then));
275 RL(clock_nanosleep(CLOCK_MONOTONIC, 0, &(const struct timespec){0, 1},
279 RL(clock_gettime(CLOCK_MONOTONIC, &now));
305 ATF_REQUIRE((fd = timerfd_create(CLOCK_MONOTONIC, 0)) >= 0);
313 ATF_REQUIRE(clock_gettime(CLOCK_MONOTONIC, &then) == 0);
322 ATF_REQUIRE(clock_gettime(CLOCK_MONOTONIC, &now) == 0)
    [all...]
t_sigtimedwait.c 59 clock_gettime(CLOCK_MONOTONIC, &before);
61 clock_gettime(CLOCK_MONOTONIC, &after);
t_timer_create.c 306 "Checks timer_create(2) with CLOCK_MONOTONIC and sigevent(3), "
312 timer_signal_create(CLOCK_MONOTONIC, NOEXPIRE, 0);
320 "Checks timer_create(2) with CLOCK_MONOTONIC and sigevent(3), "
326 timer_signal_create(CLOCK_MONOTONIC, NOEXPIRE, TIMER_ABSTIME);
362 "Checks timer_create(2) with CLOCK_MONOTONIC and sigevent(3), "
368 timer_signal_create(CLOCK_MONOTONIC, EXPIRE, 0);
376 "Checks timer_create(2) with CLOCK_MONOTONIC and sigevent(3), "
382 timer_signal_create(CLOCK_MONOTONIC, EXPIRE, TIMER_ABSTIME);
405 "Checks timer_create(2) with CLOCK_MONOTONIC and sigevent(3), "
412 timer_signal_create(CLOCK_MONOTONIC, PAST, TIMER_ABSTIME)
    [all...]
t_nanosleep.c 73 ATF_REQUIRE(clock_gettime(CLOCK_MONOTONIC, &ts1) == 0);
75 ATF_REQUIRE(clock_gettime(CLOCK_MONOTONIC, &ts2) == 0);
t_clock_gettime.c 244 RL(clock_gettime(CLOCK_MONOTONIC, &mono_t0));
261 RL(clock_gettime(CLOCK_MONOTONIC, &mono_t1));
315 check_resolution("CLOCK_MONOTONIC", CLOCK_MONOTONIC);
  /src/usr.bin/rump_dhcpclient/
common.c 62 int clock_monotonic; variable in typeref:typename:int
78 * Which is why we use CLOCK_MONOTONIC, but it is not available on all
86 #if defined(_POSIX_MONOTONIC_CLOCK) && defined(CLOCK_MONOTONIC)
91 if (clock_gettime(CLOCK_MONOTONIC, &ts) == 0) {
92 posix_clock = CLOCK_MONOTONIC;
93 clock_monotonic = posix_clock_set = 1;
97 if (clock_monotonic) {
116 clock_monotonic = posix_clock_set = 1;
119 if (clock_monotonic) {
  /src/usr.sbin/rtadvd/
timer.c 105 prog_clock_gettime(CLOCK_MONOTONIC, &now);
128 prog_clock_gettime(CLOCK_MONOTONIC, &now);
161 prog_clock_gettime(CLOCK_MONOTONIC, &now);
  /src/sbin/cgdconfig/
argon2_utils.c 113 if (clock_gettime(CLOCK_MONOTONIC, &tp1) == -1)
124 if (clock_gettime(CLOCK_MONOTONIC, &tp2) == -1)
144 if (clock_gettime(CLOCK_MONOTONIC, &tp1) == -1)
155 if (clock_gettime(CLOCK_MONOTONIC, &tp2) == -1)
  /src/tests/lib/libpthread/
t_thrd.c 190 ATF_REQUIRE_EQ(clock_gettime(CLOCK_MONOTONIC, &start), 0);
192 ATF_REQUIRE_EQ(clock_gettime(CLOCK_MONOTONIC, &stop), 0);
206 ATF_REQUIRE_EQ(clock_gettime(CLOCK_MONOTONIC, &start), 0);
208 ATF_REQUIRE_EQ(clock_gettime(CLOCK_MONOTONIC, &stop), 0);
t_condwait.c 88 if (clck == CLOCK_MONOTONIC)
130 "with CLOCK_MONOTONIC");
134 cond_wait(CLOCK_MONOTONIC, "CLOCK_MONOTONIC");
  /src/tests/kernel/
t_nanosleep.c 164 (void) clock_nanosleep(CLOCK_MONOTONIC, TIMER_RELTIME, &brief, NULL);
173 (void) clock_nanosleep(CLOCK_MONOTONIC, TIMER_RELTIME, &brief, NULL);
204 runit(CLOCK_MONOTONIC, TIMER_ABSTIME);
214 runit(CLOCK_MONOTONIC, TIMER_RELTIME);
t_timeleft.c 63 ATF_REQUIRE_ERRNO(EINTR, _lwp_park(CLOCK_MONOTONIC, TIMER_RELTIME,
  /src/regress/sys/kern/latency1/
latency1.c 78 clock_gettime(CLOCK_MONOTONIC, &end);
135 clock_gettime(CLOCK_MONOTONIC, &start);
  /src/tests/lib/libc/gen/
t_timespec_get.c 46 ATF_REQUIRE_EQ(clock_getres(CLOCK_MONOTONIC, &ts2), 0);
100 ATF_REQUIRE_EQ(clock_gettime(CLOCK_MONOTONIC, &ts2), 0);
  /src/tests/kernel/kqueue/
t_timer.c 99 ATF_REQUIRE(clock_gettime(CLOCK_MONOTONIC, &ots) == 0);
113 ATF_REQUIRE(clock_gettime(CLOCK_MONOTONIC,
131 ATF_REQUIRE(clock_gettime(CLOCK_MONOTONIC,
147 ATF_REQUIRE(clock_gettime(CLOCK_MONOTONIC, &ots) == 0);
151 ATF_REQUIRE(clock_gettime(CLOCK_MONOTONIC, &ts) == 0);
321 ATF_REQUIRE(clock_gettime(CLOCK_MONOTONIC, &ots) == 0);
323 ATF_REQUIRE(clock_gettime(CLOCK_MONOTONIC, &ts) == 0);
  /src/bin/sleep/
sleep.c 178 if (clock_gettime(CLOCK_MONOTONIC, &now) != 0)
190 if ((e = clock_nanosleep(CLOCK_MONOTONIC, TIMER_ABSTIME,
200 if (clock_gettime(CLOCK_MONOTONIC, &now) != 0) /* Huh? */
  /src/regress/sys/kern/latency2/
latency2.c 77 clock_gettime(CLOCK_MONOTONIC, &end);
143 clock_gettime(CLOCK_MONOTONIC, &start);
  /src/regress/sys/kern/nameibench/
nameibench.c 127 if (clock_gettime(CLOCK_MONOTONIC, &sts)) {
137 if (clock_gettime(CLOCK_MONOTONIC, &ets)) {
  /src/usr.bin/time/
time.c 123 (void)clock_gettime(CLOCK_MONOTONIC, &before);
140 (void)clock_gettime(CLOCK_MONOTONIC, &after);
  /src/lib/librumpuser/
rumpuser.c 93 clk = CLOCK_MONOTONIC;
141 rv = clock_nanosleep(CLOCK_MONOTONIC, TIMER_ABSTIME,
  /src/lib/libpthread/
thrd.c 157 switch (clock_nanosleep(CLOCK_MONOTONIC, TIMER_RELTIME, duration,
  /src/sys/external/bsd/drm2/linux/
linux_hrtimer.c 44 KASSERTMSG(clkid == CLOCK_MONOTONIC, "clkid %d", clkid);
  /src/bin/csh/
time.c 61 (void)clock_gettime(CLOCK_MONOTONIC, &time0);
81 (void)clock_gettime(CLOCK_MONOTONIC, &timedol);

Completed in 65 milliseconds

1 2 3