Various small changes.

This commit is contained in:
Michael Kerrisk 2006-05-01 02:26:44 +00:00
parent 9fcfcba05f
commit 8888a90efe
1 changed files with 13 additions and 9 deletions

View File

@ -47,20 +47,23 @@ struct timeval {
.PP .PP
If the adjustment in If the adjustment in
.I delta .I delta
is positive, then the system clock is speeded up by adding a small is positive, then the system clock is speeded up by some
amount of time to the clock value in each second until the adjustment small percentage (i.e., by adding a small
amount of time to the clock value in each second) until the adjustment
has been completed. has been completed.
If the adjustment in If the adjustment in
.I delta .I delta
is negative, then the clock is slowed down in a similar fashion. is negative, then the clock is slowed down in a similar fashion.
If an earlier clock adjustment is already in progress If a clock adjustment from an earlier
at the time of the .BR adjtime ()
call is already in progress
at the time of a later
.BR adjtime () .BR adjtime ()
call, and call, and
.I delta .I delta
is not NULL, then the earlier adjustment is stopped, is not NULL for the later call, then the earlier adjustment is stopped,
but any already completed part of the adjustment is not undone. but any already completed part of that adjustment is not undone.
If If
.I olddelta .I olddelta
@ -97,7 +100,9 @@ is set to indicate the error.
.SH ERRORS .SH ERRORS
.TP .TP
.B EINVAL .B EINVAL
The adjustment in delta is outside the permitted range. The adjustment in
.I delta
is outside the permitted range.
.TP .TP
.B EPERM .B EPERM
The caller does not have sufficient privilege to adjust the time. The caller does not have sufficient privilege to adjust the time.
@ -105,8 +110,7 @@ Under Linux the
.B CAP_SYS_TIME .B CAP_SYS_TIME
capability is required. capability is required.
.SH CONFORMING TO .SH CONFORMING TO
4.3BSD. 4.3BSD, System V.
.\" Also System V?
.SH "SEE ALSO" .SH "SEE ALSO"
.BR adjtimex (2), .BR adjtimex (2),
.BR gettimeofday (2), .BR gettimeofday (2),