aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Kerrisk <mtk.manpages@gmail.com>2016-03-04 14:27:40 +0100
committerMichael Kerrisk <mtk.manpages@gmail.com>2016-03-04 17:25:04 +0100
commitf4d9c97d6a8d3143834246c5a119babf3777fc2d (patch)
treef04f34ca884d28e0adc949a34082ae62404f90c8
parent88ec900f22ea6592264667255dff0c6b51d521a2 (diff)
downloadman-pages-f4d9c97d6a8d3143834246c5a119babf3777fc2d.tar.gz
adjtimex.2: Note range constraints and clamping for ADJ_FREQUENCY
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
-rw-r--r--man2/adjtimex.213
1 files changed, 13 insertions, 0 deletions
diff --git a/man2/adjtimex.2 b/man2/adjtimex.2
index 7a174edce6..2325bcfd55 100644
--- a/man2/adjtimex.2
+++ b/man2/adjtimex.2
@@ -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).