From 933ec1e42998ccc043c336fe796460d3408c6f93 Mon Sep 17 00:00:00 2001 From: imp Date: Fri, 20 Jun 2003 21:14:59 +0000 Subject: 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 --- lib/libc/sys/ntp_adjtime.2 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'lib') 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 -- cgit v1.1