Linux /proc on FreeBSD

Pieter de Goeje pieter at
Sat Dec 1 16:32:59 PST 2007

On Sunday 02 December 2007, Lennart Koopmann wrote:
> Hey everyone,
> i am going to port a server that i am currently working on to FreeBSD.
> I don't have much experience with FreeBSD yet.
> The only real big thing i have to change is the way some data is
> fetched. In the Linux version i read in data like the hostname, the
> domainname, the kernel version etc from /proc.
Sysctls kern.hostname and kern.version.
> Is there a central point to look for those values in FreeBSD?
Yes, the sysctl MIB tree.
> If not, where do i get those values?
> I _don't_ want to use external binaries like sysctl etc...
man 3 sysctl :)

Hope this helps,
Pieter de Goeje

More information about the freebsd-questions mailing list