projects
/
unix-history
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
new copyright notice
[unix-history]
/
usr
/
src
/
lib
/
libc
/
sys
/
adjtime.2
diff --git
a/usr/src/lib/libc/sys/adjtime.2
b/usr/src/lib/libc/sys/adjtime.2
index
2d922a5
..
5d50af5
100644
(file)
--- a/
usr/src/lib/libc/sys/adjtime.2
+++ b/
usr/src/lib/libc/sys/adjtime.2
@@
-1,8
+1,9
@@
.\" Copyright (c) 1980 Regents of the University of California.
.\" Copyright (c) 1980 Regents of the University of California.
-.\" All rights reserved. The Berkeley software License Agreement
-.\" specifies the terms and conditions for redistribution.
+.\" All rights reserved.
.\"
.\"
-.\" @(#)adjtime.2 1.1 (Berkeley) %G%
+.\" %sccs.include.redist.man%
+.\"
+.\" @(#)adjtime.2 1.6 (Berkeley) %G%
.\"
.TH ADJTIME 2 ""
.UC 6
.\"
.TH ADJTIME 2 ""
.UC 6
@@
-20,19
+21,17
@@
struct timeval *olddelta;
.fi
.SH DESCRIPTION
.I Adjtime
.fi
.SH DESCRIPTION
.I Adjtime
-
changes
the system time, as returned by
+
makes small adjustments to
the system time, as returned by
.IR gettimeofday (2),
.IR gettimeofday (2),
-moving it backward or forward
-by the
number of microseconds corresponding to
the timeval
+advancing or retarding it
+by the
time specified by
the timeval
\fIdelta\fP.
\fIdelta\fP.
-.PP
-The time is maintained by incrementing it with a machine-dependent tick
-every clock interrupt.
If \fIdelta\fP is negative, the clock is
If \fIdelta\fP is negative, the clock is
-slowed down by incrementing it
in smaller ticks
until
-the correction is
mad
e.
-If \fIdelta\fP is positive, a larger
tick
+slowed down by incrementing it
more slowly than normal
until
+the correction is
complet
e.
+If \fIdelta\fP is positive, a larger
increment than normal
is used.
is used.
+The skew used to perform the correction is generally a fraction of one percent.
Thus, the time is always
a monotonically increasing function.
A time correction from an earlier call to \fIadjtime\fP
Thus, the time is always
a monotonically increasing function.
A time correction from an earlier call to \fIadjtime\fP
@@
-42,7
+41,7
@@
then the structure pointed to will contain, upon return, the
number of microseconds still to be corrected
from the earlier call.
.PP
number of microseconds still to be corrected
from the earlier call.
.PP
-This call
can be used in
time servers that synchronize the clocks
+This call
may be used by
time servers that synchronize the clocks
of computers in a local area network.
Such time servers would slow down the clocks of some machines
and speed up the clocks of others to bring them to the average network time.
of computers in a local area network.
Such time servers would slow down the clocks of some machines
and speed up the clocks of others to bring them to the average network time.
@@
-50,12
+49,6
@@
and speed up the clocks of others to bring them to the average network time.
The call
.IR adjtime (2)
is restricted to the super-user.
The call
.IR adjtime (2)
is restricted to the super-user.
-.SH NOTES
-On a VAX the time is incremented
-in 10ms ticks.
-When \fIadjtime\fP is called with an argument other than zero,
-ticks of 9ms or 11ms are used until the time is corrected.
-A \fIdelta\fP of less than 1ms would have no effect.
.SH "RETURN VALUE
A return value of 0 indicates that the call succeeded.
A return value of \-1 indicates that an error occurred, and in this
.SH "RETURN VALUE
A return value of 0 indicates that the call succeeded.
A return value of \-1 indicates that an error occurred, and in this