mirror of https://github.com/mkerrisk/man-pages
adjtimex.2: ffix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
46661ad999
commit
8c1cb77bee
|
@ -32,9 +32,9 @@ adjtimex, ntp_adjtime \- tune kernel clock
|
|||
.SH SYNOPSIS
|
||||
.nf
|
||||
.B #include <sys/timex.h>
|
||||
|
||||
.PP
|
||||
.BI "int adjtimex(struct timex *" "buf" );
|
||||
|
||||
.PP
|
||||
.BI "int ntp_adjtime(struct timex *" buf );
|
||||
.fi
|
||||
.SH DESCRIPTION
|
||||
|
@ -49,7 +49,7 @@ and returns the same structure updated with the current kernel values.
|
|||
This structure is declared as follows:
|
||||
.PP
|
||||
.in +4n
|
||||
.nf
|
||||
.EX
|
||||
struct timex {
|
||||
int modes; /* Mode selector */
|
||||
long offset; /* Time offset; nanoseconds, if STA_NANO
|
||||
|
@ -92,7 +92,7 @@ struct timex {
|
|||
since Linux 2.6.26) */
|
||||
/* Further padding bytes to allow for future expansion */
|
||||
};
|
||||
.fi
|
||||
.EE
|
||||
.in
|
||||
.PP
|
||||
The
|
||||
|
@ -180,14 +180,14 @@ should be specified.
|
|||
.\" commit 153b5d054ac2d98ea0d86504884326b6777f683d
|
||||
Set TAI (Atomic International Time) offset from
|
||||
.IR buf.constant .
|
||||
|
||||
.IP
|
||||
.BR ADJ_TAI
|
||||
should not be used in conjunction with
|
||||
.BR ADJ_TIMECONST ,
|
||||
since the latter mode also employs the
|
||||
.IR buf.constant
|
||||
field.
|
||||
|
||||
.IP
|
||||
For a complete explanation of TAI
|
||||
and the difference between TAI and UTC, see
|
||||
.UR http://www.bipm.org/en/bipm/tai/tai.html
|
||||
|
@ -235,7 +235,7 @@ Ordinary users are restricted to a value of either 0 or
|
|||
for
|
||||
.IR modes .
|
||||
Only the superuser may set any parameters.
|
||||
|
||||
.PP
|
||||
The
|
||||
.I buf.status
|
||||
field is a bit mask that is used to set and/or retrieve status
|
||||
|
@ -297,7 +297,7 @@ result in dampened frequency adjustments also being made.
|
|||
So a single call corrects the current offset,
|
||||
but as offsets in the same direction are made repeatedly,
|
||||
the small frequency adjustments will accumulate to fix the long-term skew.
|
||||
|
||||
.IP
|
||||
This flag prevents the small frequency adjustment from being made
|
||||
when correcting for an
|
||||
.B ADJ_OFFSET
|
||||
|
@ -504,11 +504,11 @@ T} Thread safety MT-Safe
|
|||
.TE
|
||||
.SH CONFORMING TO
|
||||
Neither of these interfaces is described in POSIX.1
|
||||
|
||||
.PP
|
||||
.BR adjtimex ()
|
||||
is Linux-specific and should not be used in programs
|
||||
intended to be portable.
|
||||
|
||||
.PP
|
||||
The preferred API for the NTP daemon is
|
||||
.BR ntp_adjtime ().
|
||||
.SH NOTES
|
||||
|
@ -524,7 +524,7 @@ actually means 2^-16 ppm, and 2^16=65536 is 1 ppm.
|
|||
This is the case for both input values (in the case of
|
||||
.IR freq )
|
||||
and output values.
|
||||
|
||||
.PP
|
||||
The leap-second processing triggered by
|
||||
.B STA_INS
|
||||
and
|
||||
|
@ -540,7 +540,7 @@ for the leap second to be inserted or deleted.
|
|||
.BR time (7),
|
||||
.BR adjtimex (8),
|
||||
.BR hwclock (8)
|
||||
|
||||
.PP
|
||||
.ad l
|
||||
.UR http://www.slac.stanford.edu/comp/unix/\:package/\:rtems/\:src/\:ssrlApps/\:ntpNanoclock/\:api.htm
|
||||
NTP "Kernel Application Program Interface"
|
||||
|
|
Loading…
Reference in New Issue