The longstanding bug that if delta was NULL, olddelta didn't return the

outstanding clock adjustment, is now fixed (since glibc 2.8 + kernel 2.6.26).
http://sourceware.org/bugzilla/show_bug?id=2449
http://bugzilla.kernel.org/show_bug.cgi?id=6761
This commit is contained in:
Michael Kerrisk 2008-06-22 05:20:51 +00:00
parent cb772f766a
commit c246714df1
1 changed files with 11 additions and 9 deletions

View File

@ -20,7 +20,7 @@
.\" Formatted or processed versions of this manual, if unaccompanied by
.\" the source, must acknowledge the copyright and authors of this work.
.\"
.TH ADJTIME 3 2007-07-26 "Linux" "Linux Programmer's Manual"
.TH ADJTIME 3 2008-06-22 "Linux" "Linux Programmer's Manual"
.SH NAME
adjtime \- correct the time to synchronize the system clock
.SH SYNOPSIS
@ -121,19 +121,21 @@ must be less than or equal to (INT_MAX / 1000000 \- 2)
and greater than or equal to (INT_MIN / 1000000 + 2)
(respectively 2145 and \-2145 seconds on i386).
.SH BUGS
Currently, if
A longstanding bug
.\" http://sourceware.org/bugzilla/show_bug?id=2449
.\" http://bugzilla.kernel.org/show_bug.cgi?id=6761
meant that if
.I delta
is specified as NULL,
no valid information about the outstanding clock adjustment is returned in
was specified as NULL,
no valid information about the outstanding clock adjustment was returned in
.IR olddelta .
(In this circumstance,
.BR adjtime ()
should return the outstanding clock adjustment, without changing it.)
This is the result of a kernel limitation.
.\" FIXME .
.\" A kernel bug report has been submitted; check later to see if
.\" things are resolved.
.\" http://bugzilla.kernel.org/show_bug.cgi?id=6761
This bug is fixed
.\" Thanks to the new ADJ_OFFSET_SS_READ flag
on systems with glibc 2.8 or later and
Linux kernel 2.6.26 or later.
.SH "SEE ALSO"
.BR adjtimex (2),
.BR gettimeofday (2),