From owner-freebsd-hackers@FreeBSD.ORG Thu Jan 3 19:57:19 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 67E7416A41A for ; Thu, 3 Jan 2008 19:57:19 +0000 (UTC) (envelope-from fernando.apesteguia@gmail.com) Received: from wx-out-0506.google.com (wx-out-0506.google.com [66.249.82.225]) by mx1.freebsd.org (Postfix) with ESMTP id 209D513C442 for ; Thu, 3 Jan 2008 19:57:18 +0000 (UTC) (envelope-from fernando.apesteguia@gmail.com) Received: by wx-out-0506.google.com with SMTP id i29so1914490wxd.7 for ; Thu, 03 Jan 2008 11:57:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=mo0yW+N9Tw11CKy59sCEcfdDctt/YCKDYkl2mHYCE40=; b=U1sUShTyVl1g92w46Ancp+OXuJxMu0CKYqMrxT/mtZTDOCa2UXOaNpaj+MT9AIHC3RUs5Cr0jk1mP3nlvNe8F73WZjldGsyM7vDgIaIMM3VIS1ipDhPGk8MDN9f3yVj3MTDgijTyXJkuBs5za0kOGUxIdW894wyoNspB8SXVnZU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=AzZNcRq3dL3GtJJYxAU1OiS5ybQ1JxMeAaU7ClNr7b3G/wkGwobK+3gDHaYwnTca1EvvrjgzH32jUlGzkSxxUC4Lhnaeb8aMGYD3w9n4y51dHSyGS+LyDi2Q6m+l9phzHpzPQ2tdX1zgfI8BO4SrT5F6zzRNGsKrCVRXx7oOiUY= Received: by 10.150.185.14 with SMTP id i14mr4317971ybf.88.1199390238360; Thu, 03 Jan 2008 11:57:18 -0800 (PST) Received: by 10.150.178.13 with HTTP; Thu, 3 Jan 2008 11:57:18 -0800 (PST) Message-ID: <1bd550a00801031157s521665e4p77b2250d3966ec1d@mail.gmail.com> Date: Thu, 3 Jan 2008 20:57:18 +0100 From: "=?ISO-8859-1?Q?Fernando_Apestegu=EDa?=" To: "=?ISO-8859-1?Q?Dag-Erling_Sm=F8rgrav?=" In-Reply-To: <86tzlud6y5.fsf@ds4.des.no> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <1bd550a00801030926h7b3f0aaayfd04244a3305619c@mail.gmail.com> <86tzlud6y5.fsf@ds4.des.no> 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: Thu, 03 Jan 2008 19:57:19 -0000 On Jan 3, 2008 8:50 PM, Dag-Erling Sm=F8rgrav wrote: > "Fernando Apestegu=EDa" 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=F8rgrav - des@des.no >