Date: Fri, 04 Jan 2008 09:55:18 +0100 From: =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= <des@des.no> To: =?utf-8?Q?Fernando_Apestegu=C3=ADa?= <fernando.apesteguia@gmail.com> Cc: freebsd-hackers@freebsd.org Subject: Re: Porting from Linux to FreeBSD (procfs question) Message-ID: <86d4sic6mh.fsf@ds4.des.no> In-Reply-To: <1bd550a00801031157s521665e4p77b2250d3966ec1d@mail.gmail.com> ("Fernando =?utf-8?Q?Apestegu=C3=ADa=22's?= message of "Thu\, 3 Jan 2008 20\:57\:18 %2B0100") References: <1bd550a00801030926h7b3f0aaayfd04244a3305619c@mail.gmail.com> <86tzlud6y5.fsf@ds4.des.no> <1bd550a00801031157s521665e4p77b2250d3966ec1d@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
"Fernando Apestegu=C3=ADa" <fernando.apesteguia@gmail.com> writes: > Dag-Erling Sm=C3=B8rgrav <des@des.no> writes: > > "Fernando Apestegu=C3=ADa" <fernando.apesteguia@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. Have you checked that the missing files aren't in linsysfs? If they aren't, submit a PR and maybe the lin{proc,sys}fs maintainers (or somebody else) will add them. This is really the least-effort solution for you (less code to modify), and it will also benefit native Linux binaries running under the linuxulator. While you're at it, please also submit a PR pointing out that the linprocfs(5) man page is lagging behind the code... DES --=20 Dag-Erling Sm=C3=B8rgrav - des@des.no
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?86d4sic6mh.fsf>