tech-kern archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: return value of sysctlbyname(3)
On Wed, Aug 20, 2008 at 1:09 PM, Hiroshi SAKURAI
<an.olive.tree%gmail.com@localhost> wrote:
>> The manual page sysctlbyname(3) states:
>> "RETURN VALUES
>> If the call to sysctl is successful, the number of bytes copied out is
>> returned. Otherwise -1 is returned and errno is set appropriately."
> From looking at lib/libc/gen/systrl.c and sysctlbyname.c,
> it seems that sysctl and sysctlbyname returns 0 on success.
Is there bug in the documentation?
--
With Best Regards,
Andy Shevchenko
Home |
Main Index |
Thread Index |
Old Index