Searched refs:adjtime (Results 1 - 24 of 24) sorted by relevance

/freebsd-12-stable/tools/regression/priv/
H A Dpriv_adjtime.c34 * Confirm that privilege is required to invoke adjtime(); first query, then
56 if (adjtime(NULL, &query_tv) < 0) {
57 warn("priv_adjtime_setup: adjtime(NULL)");
69 error = adjtime(&query_tv, NULL);
/freebsd-12-stable/usr.sbin/newsyslog/
H A Dptimes.c352 struct ptime_data adjtime; local
361 adjtime = *ptime;
364 if ((adjtime.did_adj4dst != TNYET_ADJ4DST) &&
365 (adjtime.did_adj4dst == dstsrc->tm.tm_isdst))
369 if (dstsrc->tm.tm_isdst != adjtime.tm.tm_isdst) {
370 if (adjtime.tm.tm_isdst == 1)
371 adjtime.tsecs -= SECS_PER_HOUR;
372 else if (adjtime.tm.tm_isdst == 0)
373 adjtime.tsecs += SECS_PER_HOUR;
374 adjtime
[all...]
/freebsd-12-stable/contrib/ntp/util/
H A Dtestrs6000.c1 /* Checks for the RS/6000 AIX adjtime() bug, in which if a negative
6 * slew from adjtime()).
49 if (adjtime(&adjustment, &result))
50 printf("adjtime call failed\n");
/freebsd-12-stable/contrib/ntp/libntp/
H A Dadjtime.c7 * MPE lacks adjtime(), so we define our own. But note that time slewing has
9 * from being able to maintain clock synch. Because of the bug, this adjtime()
24 int adjtime(struct timeval *delta, struct timeval *olddelta);
26 int adjtime(struct timeval *delta, struct timeval *olddelta) function
126 static char RCSid[] = "adjtime.c,v 3.1 1993/07/06 01:04:42 jbj Exp";
134 #include "adjtime.h"
159 * adjtime - hp-ux copout of the standard Unix adjtime() system call
162 adjtime( function
220 * Get the key to the adjtime messag
279 adjtime (struct timeval *delta, struct timeval *olddelta) function
[all...]
H A DMakefile.am48 adjtime.c \
H A Dmachines.c466 * Some broken systems don't reset adjtime() when the
470 adjtime(&adjtv, NULL);
H A Dsystime.c70 * loop discipline unavailable or disabled), adjtime() offsets are
73 * are quantized to the microsecond resolution of adjtime()'s timeval
75 * next adjtime() and meanwhile is also factored into get_systime()
301 * emulation of adjtime() behavior on top of an API that simply
304 * EVNT_NSET adjtime() can be aborted by a tiny adjtime()
316 * Most Unix adjtime() implementations adjust the system clock
348 * adjtime() system call. Note we purposely lose the adjtime()
357 if (adjtime(
[all...]
H A DMakefile.in149 am__libntp_a_SOURCES_DIST = systime.c a_md5encrypt.c adjtime.c \
204 am__objects_4 = a_md5encrypt.$(OBJEXT) adjtime.$(OBJEXT) \
235 am__libntpsim_a_SOURCES_DIST = systime_s.c a_md5encrypt.c adjtime.c \
645 adjtime.c \
785 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/adjtime.Po@am__quote@
/freebsd-12-stable/contrib/ntp/include/
H A Dntp_unixtime.h16 # define ADJTIMEOFDAY(a, b) (adjtime(a, b))
H A Dl_stdlib.h32 extern int adjtime (struct timeval *, struct timeval *);
H A DMakefile.am6 adjtime.h \
H A DMakefile.in492 adjtime.h \
/freebsd-12-stable/usr.sbin/ntp/libntp/
H A DMakefile12 NTP_SRCS= systime.c a_md5encrypt.c adjtime.c atoint.c \
/freebsd-12-stable/usr.sbin/timed/timed/
H A Dcorrect.c152 if (0 > adjtime(corr, 0)) {
153 syslog(LOG_ERR, "adjtime: %m");
H A Dslave.c63 long electiontime, refusetime, looktime, looptime, adjtime; local
86 adjtime = 0;
231 if (adjtime < otime.tv_sec)
242 adjtime = ntime.tv_sec + SAMPLEINTVL*2;
H A Dtimed.c243 (void)adjtime(&ntime, (struct timeval *)0);
/freebsd-12-stable/sys/sys/
H A Dsyscall.mk105 adjtime.o \
H A Dtime.h614 int adjtime(const struct timeval *, struct timeval *);
/freebsd-12-stable/lib/libc/sys/
H A DMakefile.inc151 adjtime.2 \
/freebsd-12-stable/tests/sys/audit/
H A Dadministrative.c177 "adjtime(2) call");
183 snprintf(adregex, sizeof(adregex), "adjtime.*%d.*return,success", pid);
187 ATF_REQUIRE_EQ(0, adjtime(NULL, NULL));
201 "adjtime(2) call");
207 snprintf(adregex, sizeof(adregex), "adjtime.*%d.*return,failure", pid);
210 ATF_REQUIRE_EQ(-1, adjtime((struct timeval *)(-1), NULL));
/freebsd-12-stable/contrib/ntp/parseutil/
H A Ddcfd.c973 if (adjtime(&time_offset, 0L) == -1)
974 perror("adjtime()");
/freebsd-12-stable/contrib/gcc/
H A Dsys-protos.h97 extern int adjtime(struct timeval *, struct timeval *);
/freebsd-12-stable/contrib/ntp/ntpdate/
H A Dntpdate.c2057 if (adjtime(&adjtv, &oadjtv) < 0) {
2066 * the Unix adjtime() routine. We can technically adjust the clock
/freebsd-12-stable/contrib/ntp/
H A Dconfigure1817 --enable-accurate-adjtime
1818 s the adjtime() call is accurate
30879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want QNX adjtime support" >&5
30880 $as_echo_n "checking if we want QNX adjtime support... " >&6; }
30955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if adjtime is accurate" >&5
30956 $as_echo_n "checking if adjtime is accurate... " >&6; }
30993 # --enable-accurate-adjtime / --disable-accurate-adjtime
30995 # Check whether --enable-accurate-adjtime was given.
31439 # Newer versions of ReliantUNIX round adjtime() value
[all...]

Completed in 162 milliseconds