cvs commit: src/sys/kern kern_ntptime.c
Dmitry Pryanishnikov
dmitry at atlantis.dp.ua
Fri Jan 12 12:20:02 UTC 2007
Hello!
On Fri, 12 Jan 2007, Warner Losh wrote:
> sys/kern kern_ntptime.c
> Log:
> When ntp_gettime() was converted from a sysctl + wrapper to a system
> call, its semantics were unintentionally changed. It went from
> returning the time state to returning 0 or -1. Since 0 means time
Shouldn't the manpage lib/libc/sys/ntp_gettime.2 also be updated? It claims
now:
RETURN VALUES
The ntp_gettime() function returns the value 0 if successful; otherwise
the value -1 is returned and the global variable errno is set to indicate
the error.
Possible states of the clock are:
...
So it still refers to old behaviour (return either 0 or -1), which is
confusing enough.
Sincerely, Dmitry
--
Atlantis ISP, System Administrator
e-mail: dmitry at atlantis.dp.ua
nic-hdl: LYNX-RIPE
More information about the cvs-src
mailing list