Porting from Linux to FreeBSD (procfs question)

Fernando Apesteguía fernando.apesteguia at gmail.com
Thu Jan 3 11:57:19 PST 2008


On Jan 3, 2008 8:50 PM, Dag-Erling Smørgrav <des at des.no> wrote:
> "Fernando Apesteguía" <fernando.apesteguia at gmail.com> writes:
> > I have an application written in C + Gtk + Glib that gathers
> > information from procfs under Linux. Now, I'm trying to port this
> > application to FreeBSD (I'm working with 7.0 RC1).
>
> man linprocfs

Yes, I checked it. But although the cpuinfo file is quite close to the
"original" one in Linux, there are other important files missed.
That's because I'm trying to find the best approach.

Maybe a mix of both could be good: use the linxprocfs when it is
almost straightforward (in fact I could run the app, just changing few
lines) and sysctl when the linprocfs doesn't provide the information
that I need.

Cheers


>
> DES
> --
> Dag-Erling Smørgrav - des at des.no
>


More information about the freebsd-hackers mailing list