Date: Thu, 3 Jan 2008 11:06:36 -0500 From: Jerry McAllister <jerrymc@msu.edu> To: Fernando =?iso-8859-1?Q?Apestegu=EDa?= <fernando.apesteguia@gmail.com> Cc: FreeBSD Mailing List <freebsd-questions@freebsd.org> Subject: Re: Porting from linux to FreeBSD (procfs question) Message-ID: <20080103160636.GE13176@gizmo.acns.msu.edu> In-Reply-To: <1bd550a00801030514i5007c67t509e05f08c820dd@mail.gmail.com> References: <1bd550a00801030514i5007c67t509e05f08c820dd@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Jan 03, 2008 at 02:14:57PM +0100, Fernando Apesteguía wrote: > 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?) Use the sysctl calls. That is what will be supported correctly. ////jerry > > I would like to know from you which one is the best approach. > > Thanks in advance > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080103160636.GE13176>