From owner-freebsd-questions@FreeBSD.ORG Thu Jan 3 13:41:12 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 52F5616A41B for ; Thu, 3 Jan 2008 13:41:12 +0000 (UTC) (envelope-from fernando.apesteguia@gmail.com) Received: from hs-out-2122.google.com (hs-out-0708.google.com [64.233.178.242]) by mx1.freebsd.org (Postfix) with ESMTP id 1159A13C467 for ; Thu, 3 Jan 2008 13:41:11 +0000 (UTC) (envelope-from fernando.apesteguia@gmail.com) Received: by hs-out-2122.google.com with SMTP id j58so4803205hsj.11 for ; Thu, 03 Jan 2008 05:41:10 -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:mime-version:content-type:content-transfer-encoding:content-disposition; bh=L3IyFmtljqg0PAhxi7YqWP3Ih8+K7OYwRjdpap/xqwM=; b=hJYSF3FVjGqWgq7Hq4wK1b32fGf0rTJPz06r9rJVn+z98y94ehdLeJEYDoKulG5Qz9TYxT7e3gb2n2MWp7zQivt3mmPOfDV96T8PEf51Ueo5JJxsLwj5J1M4lxGMNcQ3uRaaFFInb4Grn84d5t6h2JR2IRNS+0VogUxdDHwMF6U= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=hP1TZXxVavG1gKVH80UdKlVKKx9PP/o+VCiuskTP3ASmFa+ldL44F3pWYelA7VnimNY02gaKtXiKHjdT4I+KMSdGAhr5zK9TGu5GEcfZcTpAGoRfMhRIy3dVOtL29st66lhCtOMxB6RdY4xvGCE4ChT50NttypA2rwK4UatM2pQ= Received: by 10.150.199.21 with SMTP id w21mr4150996ybf.8.1199366097480; Thu, 03 Jan 2008 05:14:57 -0800 (PST) Received: by 10.150.178.13 with HTTP; Thu, 3 Jan 2008 05:14:57 -0800 (PST) Message-ID: <1bd550a00801030514i5007c67t509e05f08c820dd@mail.gmail.com> Date: Thu, 3 Jan 2008 14:14:57 +0100 From: "=?ISO-8859-1?Q?Fernando_Apestegu=EDa?=" To: "FreeBSD Mailing List" MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline 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:41:12 -0000 Hi all, First of all, Happy New Year. I have a question about porting an application from Linux to FreeBSD. 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?) I would like to know from you which one is the best approach. Thanks in advance