Searched refs:ntp_adjtime (Results 1 - 11 of 11) sorted by relevance

/freebsd-13-stable/contrib/ntp/include/
H A Dntp_syscall.h2 * ntp_syscall.h - various ways to perform the ntp_adjtime() and ntp_gettime()
15 # define ntp_adjtime(t) syscall(SYS_ntp_adjtime, (t)) macro
19 extern int ntp_adjtime (struct timex *);
40 result = ntp_adjtime(&tntx);
/freebsd-13-stable/contrib/ntp/ntpd/
H A Drefclock_local.c185 switch (ntp_adjtime(&ntv)) {
H A Dntp_loopfilter.c79 * If kernel support for the ntp_adjtime() system call is available, the
102 * via this routine, which then calls ntp_adjtime() with the STA_PLL bit
139 static struct timex ntv; /* ntp_adjtime() parameters */
157 int kernel_status; /* from ntp_adjtime */
239 * ntp_adjtime_error_handler - process errors from ntp_adjtime
245 int ret, /* return value from ntp_adjtime */
246 int saved_errno, /* value of errno when ntp_adjtime returned */
247 int pps_call, /* ntp_adjtime call was PPS-related */
248 int tai_call, /* ntp_adjtime call was TAI-related */
249 int line /* line number of ntp_adjtime cal
[all...]
H A Dntp_request.c2447 if (ntp_adjtime(&ntx) < 0)
2448 msyslog(LOG_ERR, "get_kernel_info: ntp_adjtime() failed: %m");
H A Dntp_control.c1926 * CS_K_* variables depend on up-to-date output of ntp_adjtime()
1931 if (ntp_adjtime(&ntx) < 0)
1932 msyslog(LOG_ERR, "ntp_adjtime() for mode 6 query failed: %m");
/freebsd-13-stable/contrib/ntp/kernel/sys/
H A Dtimex.h56 * ntp_adjtime - NTP daemon application interface
197 * the ntp_gettime() and ntp_adjtime() system calls.
256 * NTP daemon interface - (ntp_adjtime()) used to discipline CPU clock
303 extern int ntp_adjtime __P((struct timex *));
/freebsd-13-stable/sys/sys/
H A Dtimex.h123 * NTP daemon interface -- ntp_adjtime(2) -- used to discipline CPU clock
164 int ntp_adjtime(struct timex *);
H A Dsyscall.mk118 ntp_adjtime.o \
/freebsd-13-stable/contrib/ntp/util/
H A Dntptime.c5 * ntp_gettime() and ntp_adjtime() have been implemented in the kernel.
80 static volatile int flash; /* most recent ntp_adjtime() bits */
278 status = ntp_adjtime(&_ntx);
328 status = ntp_adjtime(&ntx);
332 "ntp_adjtime() call fails");
335 printf("ntp_adjtime() returns code %d (%s)\n",
/freebsd-13-stable/lib/libc/sys/
H A DMakefile.inc262 ntp_adjtime.2 \
441 MLINKS+=ntp_adjtime.2 ntp_gettime.2
/freebsd-13-stable/tests/sys/audit/
H A Dadministrative.c224 "ntp_adjtime(2) call");
233 snprintf(adregex, sizeof(adregex), "ntp_adjtime.*%d.*success", pid);
236 ATF_REQUIRE(ntp_adjtime(&timebuff) != -1);
250 "ntp_adjtime(2) call");
256 snprintf(adregex, sizeof(adregex), "ntp_adjtime.*%d.*failure", pid);
259 ATF_REQUIRE_EQ(-1, ntp_adjtime(NULL));

Completed in 91 milliseconds