From owner-freebsd-hackers@FreeBSD.ORG Fri Jan 4 08:55:26 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EFBD916A421 for ; Fri, 4 Jan 2008 08:55:26 +0000 (UTC) (envelope-from des@des.no) Received: from tim.des.no (tim.des.no [194.63.250.121]) by mx1.freebsd.org (Postfix) with ESMTP id ACDB413C458 for ; Fri, 4 Jan 2008 08:55:26 +0000 (UTC) (envelope-from des@des.no) Received: from tim.des.no (localhost [127.0.0.1]) by spam.des.no (Postfix) with ESMTP id 6B46A20CC; Fri, 4 Jan 2008 09:55:18 +0100 (CET) X-Spam-Tests: AWL X-Spam-Learn: disabled X-Spam-Score: -0.2/3.0 X-Spam-Checker-Version: SpamAssassin 3.2.3 (2007-08-08) on tim.des.no Received: from ds4.des.no (des.no [80.203.243.180]) by smtp.des.no (Postfix) with ESMTP id 562BC20CB; Fri, 4 Jan 2008 09:55:18 +0100 (CET) Received: by ds4.des.no (Postfix, from userid 1001) id 3BFD6844D2; Fri, 4 Jan 2008 09:55:18 +0100 (CET) From: =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= To: =?utf-8?Q?Fernando_Apestegu=C3=ADa?= References: <1bd550a00801030926h7b3f0aaayfd04244a3305619c@mail.gmail.com> <86tzlud6y5.fsf@ds4.des.no> <1bd550a00801031157s521665e4p77b2250d3966ec1d@mail.gmail.com> Date: Fri, 04 Jan 2008 09:55:18 +0100 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 +0100") Message-ID: <86d4sic6mh.fsf@ds4.des.no> User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.1 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Cc: freebsd-hackers@freebsd.org Subject: Re: Porting from Linux to FreeBSD (procfs question) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Jan 2008 08:55:27 -0000 "Fernando Apestegu=C3=ADa" writes: > Dag-Erling Sm=C3=B8rgrav writes: > > "Fernando Apestegu=C3=ADa" 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