> How does one get the environment passed from the loader to the
> kernel from userland?
>
> Yes, I see the sysctl_kernenv in kern_environment.c, but I'm having
> trouble decyphering as how to use it.
Use the sysctl lookup function to get the OID for kern.environment, then
tack an integer on the end and start incrementing it until you get ENOENT.
Basically the same way you get the list of network interfaces.
--
\\ Give a man a fish, and you feed him for a day. \\ Mike Smith
\\ Tell him he should learn how to fish himself, \\ [EMAIL PROTECTED]
\\ and he'll hate you for a lifetime. \\ [EMAIL PROTECTED]
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message