Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 25 Jan 2006 14:54:54 -0300
From:      Fernan Aguero <fernan@iib.unsam.edu.ar>
To:        Brooks Davis <brooks@one-eyed-alien.net>
Cc:        Gary Jennejohn <garyj@jennejohn.org>, Jeremy Chadwick <freebsd@jdc.parodius.com>, freebsd-ports@freebsd.org
Subject:   Re: porting an app that checks /proc/meminfo
Message-ID:  <20060125175454.GA80668@iib.unsam.edu.ar>
In-Reply-To: <20060125163640.GD2848@odin.ac.hmc.edu>
References:  <20060124172317.GF72149@iib.unsam.edu.ar> <200601242058.k0OKwH2i016170@peedub.jennejohn.org> <20060125140731.GB79842@iib.unsam.edu.ar> <20060125161106.GB34407@pentarou.parodius.com> <20060125163640.GD2848@odin.ac.hmc.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
+----[ Brooks Davis <brooks@one-eyed-alien.net> (25.Jan.2006 13:42):
|
| On Wed, Jan 25, 2006 at 08:11:06AM -0800, Jeremy Chadwick wrote:
| > > way of getting these values? As I wrote in my reply to
| > > Brooks, perhaps some call that, although implemented
| > > differently in each OS, will have the same API for a
| > > programmer. So s/he can use it across different Unix OSes?
| > 
| > The only way I know of is to use a pre-existing library called
| > libstatgrab.  The author has already written the code you want; and
| > yes, it's done how you think (re: "the awful way"); most of the
| > pain is relieved via the use of configure.  libstatgrab works on
| > the following platforms:
| 
| Something like this is basicly your only option for system stats.  There
| is no POSIX API.
| 
| -- Brooks
|
+----]

Thanks! This was the authoritative answer I wanted to hear.

And also, thanks everyone for the good suggestions and
pointers. I've already pointed the author to this thread,
and I'll be helping him to test whatever alternative he decides
to implement in my FreeBSD box. 

Fernan



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060125175454.GA80668>