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:
parent
5c32bee98e
commit
933ec1e429
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user