Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 25 Jan 2006 08:36:40 -0800
From:      Brooks Davis <brooks@one-eyed-alien.net>
To:        freebsd-ports@freebsd.org
Subject:   Re: porting an app that checks /proc/meminfo
Message-ID:  <20060125163640.GD2848@odin.ac.hmc.edu>
In-Reply-To: <20060125161106.GB34407@pentarou.parodius.com>
References:  <20060124172317.GF72149@iib.unsam.edu.ar> <200601242058.k0OKwH2i016170@peedub.jennejohn.org> <20060125140731.GB79842@iib.unsam.edu.ar> <20060125161106.GB34407@pentarou.parodius.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--x4pBfXISqBoDm8sr
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

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?
>=20
> 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

--=20
Any statement of the form "X is the one, true Y" is FALSE.
PGP fingerprint 655D 519C 26A7 82E7 2529  9BF0 5D8E 8BE9 F238 1AD4

--x4pBfXISqBoDm8sr
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQFD16kWXY6L6fI4GtQRAk4iAJ47oj0evk7hz7S4DLDM88+jbrMAXACg1/F5
Y+r9apC1u5nI1xtUZ/VFsLI=
=331e
-----END PGP SIGNATURE-----

--x4pBfXISqBoDm8sr--



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