adjtimex.2: Note range constraints and clamping for ADJ_FREQUENCY

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2016-03-04 14:27:40 +01:00
parent 88ec900f22
commit f4d9c97d6a
1 changed files with 13 additions and 0 deletions

View File

@ -106,6 +106,12 @@ error occurs if the supplied value is out of range.
.BR ADJ_FREQUENCY
Set frequency offset from
.IR buf.freq .
Since Linux 2.6.26,
.\" commit 074b3b87941c99bc0ce35385b5817924b1ed0c23
the supplied value is clamped to the range (\-32768000, +32768000).
In older kernels, an
.IB EINVAL
error occurs if the supplied value is out of range.
.TP
.BR ADJ_MAXERROR
Set maximum time error from
@ -386,6 +392,13 @@ does not point to writable memory.
.TP
.BR EINVAL " (kernels before Linux 2.6.26)"
An attempt was made to set
.I buf.freq
to a value outside the range (\-33554432, +33554432).
.\" From a quck glance, it appears there was no clamping or range check
.\" for buf.freq in kernels before 2.0
.TP
.BR EINVAL " (kernels before Linux 2.6.26)"
An attempt was made to set
.I buf.offset
to a value outside the permitted range.
In kernels before Linux 2.0, the permitted range was (\-131072, +131072).