adjtimex.2: ffix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2017-08-15 08:55:35 +02:00
parent 46661ad999
commit 8c1cb77bee
1 changed files with 12 additions and 12 deletions

View File

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