/freebsd-12-stable/tools/regression/priv/ |
H A D | priv_adjtime.c | 34 * 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 D | ptimes.c | 352 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 D | testrs6000.c | 1 /* 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 D | adjtime.c | 7 * 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 D | Makefile.am | 48 adjtime.c \
|
H A D | machines.c | 466 * Some broken systems don't reset adjtime() when the 470 adjtime(&adjtv, NULL);
|
H A D | systime.c | 70 * 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 D | Makefile.in | 149 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 D | ntp_unixtime.h | 16 # define ADJTIMEOFDAY(a, b) (adjtime(a, b))
|
H A D | l_stdlib.h | 32 extern int adjtime (struct timeval *, struct timeval *);
|
H A D | Makefile.am | 6 adjtime.h \
|
H A D | Makefile.in | 492 adjtime.h \
|
/freebsd-12-stable/usr.sbin/ntp/libntp/ |
H A D | Makefile | 12 NTP_SRCS= systime.c a_md5encrypt.c adjtime.c atoint.c \
|
/freebsd-12-stable/usr.sbin/timed/timed/ |
H A D | correct.c | 152 if (0 > adjtime(corr, 0)) { 153 syslog(LOG_ERR, "adjtime: %m");
|
H A D | slave.c | 63 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 D | timed.c | 243 (void)adjtime(&ntime, (struct timeval *)0);
|
/freebsd-12-stable/sys/sys/ |
H A D | syscall.mk | 105 adjtime.o \
|
H A D | time.h | 614 int adjtime(const struct timeval *, struct timeval *);
|
/freebsd-12-stable/lib/libc/sys/ |
H A D | Makefile.inc | 151 adjtime.2 \
|
/freebsd-12-stable/tests/sys/audit/ |
H A D | administrative.c | 177 "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 D | dcfd.c | 973 if (adjtime(&time_offset, 0L) == -1) 974 perror("adjtime()");
|
/freebsd-12-stable/contrib/gcc/ |
H A D | sys-protos.h | 97 extern int adjtime(struct timeval *, struct timeval *);
|
/freebsd-12-stable/contrib/ntp/ntpdate/ |
H A D | ntpdate.c | 2057 if (adjtime(&adjtv, &oadjtv) < 0) { 2066 * the Unix adjtime() routine. We can technically adjust the clock
|
/freebsd-12-stable/contrib/ntp/ |
H A D | configure | 1817 --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...] |