ntp_adjtime returns the current state of the clock (TIME_*) on success

or -1 on failure.  The manual used to say it returned 0 or -1.  Both
examination of the kernel sources, and ntpd show that this is the case.

MFC After: 3 days
This commit is contained in:
imp 2003-06-20 21:14:59 +00:00
parent 5c32bee98e
commit 933ec1e429

View File

@ -114,7 +114,10 @@ will fill the
.Fa tp
argument with the current clock state.
.Sh RETURN VALUES
.Rv -std ntp_adjtime
Upon successful completion the clock state is returned.
Otherwise a -1 is returned and the global variable
.Va errno
is set to indicate the error.
.Pp
Possible states of the clock are:
.Pp