diff options
author | imp <imp@FreeBSD.org> | 2003-06-20 21:14:59 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 2003-06-20 21:14:59 +0000 |
commit | 933ec1e42998ccc043c336fe796460d3408c6f93 (patch) | |
tree | dc6cc7669e28de87a079a3d507c838be35c5aff0 /lib/libc/sys/ntp_adjtime.2 | |
parent | 5c32bee98e84ee11003a6bd597bca2b4b88e738a (diff) | |
download | FreeBSD-src-933ec1e42998ccc043c336fe796460d3408c6f93.zip FreeBSD-src-933ec1e42998ccc043c336fe796460d3408c6f93.tar.gz |
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
Diffstat (limited to 'lib/libc/sys/ntp_adjtime.2')
-rw-r--r-- | lib/libc/sys/ntp_adjtime.2 | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/libc/sys/ntp_adjtime.2 b/lib/libc/sys/ntp_adjtime.2 index 3b76318..6ed71ce 100644 --- a/lib/libc/sys/ntp_adjtime.2 +++ b/lib/libc/sys/ntp_adjtime.2 @@ -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 |