From owner-freebsd-questions@FreeBSD.ORG Thu Jan 3 13:45:59 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id ACF6A16A421 for ; Thu, 3 Jan 2008 13:45:59 +0000 (UTC) (envelope-from roberthuff@rcn.com) Received: from smtp02.lnh.mail.rcn.net (smtp02.lnh.mail.rcn.net [207.172.157.102]) by mx1.freebsd.org (Postfix) with ESMTP id 4E5C913C442 for ; Thu, 3 Jan 2008 13:45:59 +0000 (UTC) (envelope-from roberthuff@rcn.com) Received: from mr08.lnh.mail.rcn.net ([207.172.157.28]) by smtp02.lnh.mail.rcn.net with ESMTP; 03 Jan 2008 08:45:57 -0500 Received: from smtp01.lnh.mail.rcn.net (smtp01.lnh.mail.rcn.net [207.172.4.11]) by mr08.lnh.mail.rcn.net (MOS 3.8.6-GA) with ESMTP id JMW86698; Thu, 3 Jan 2008 08:45:57 -0500 (EST) Received: from 209-6-22-188.c3-0.smr-ubr1.sbo-smr.ma.cable.rcn.com (HELO jerusalem.litteratus.org.litteratus.org) ([209.6.22.188]) by smtp01.lnh.mail.rcn.net with ESMTP; 03 Jan 2008 08:44:51 -0500 From: Robert Huff MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <18300.59152.910366.274124@jerusalem.litteratus.org> Date: Thu, 3 Jan 2008 08:45:52 -0500 To: "=?ISO-8859-1?Q?Fernando_Apestegu=EDa?=" In-Reply-To: <1bd550a00801030514i5007c67t509e05f08c820dd@mail.gmail.com> References: <1bd550a00801030514i5007c67t509e05f08c820dd@mail.gmail.com> X-Mailer: VM 7.17 under 21.5 (beta28) "fuki" XEmacs Lucid X-Junkmail-Whitelist: YES (by domain whitelist at mr08.lnh.mail.rcn.net) Cc: FreeBSD Mailing List Subject: Porting from linux to FreeBSD (procfs question) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Jan 2008 13:45:59 -0000 =?ISO-8859-1?Q?Fernando_Apestegu=EDa?= writes: > First of all, Happy New Year. And to you, > The application I want to port, makes an extensive use of the > procfs in Linux. It gathers a lot of information from those files > (cpuinfo, meminfo, devices, filesystems, modules, etc...) > > As I know, FreeBSD has some kind of procfs but more limited in > terms of information. My questions is how should I proceed now? I > see two options. > > 1 - Try to rely the porting on the compatibility procfs from FreeBSD > 2 - Do the things in a completely different way (which one is this? > Invoking sysctl system call?) As I understand it, use (2). Use of FreeBSD procfs is possible, but heavily discouraged due to known security issues. Robert Huff