tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: return value of sysctlbyname(3)


On Tue, Aug 19, 2008 at 10:05 PM, Ilya Dogolazky
<> wrote:
> Hi,
> I have a simple question: what is the return value of the function
> sysctlbyname?
> The manual page sysctlbyname(3) states:
>     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.


Home | Main Index | Thread Index | Old Index