porting an app that checks /proc/meminfo

Brooks Davis brooks at one-eyed-alien.net
Wed Jan 25 08:36:42 PST 2006


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

-- 
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20060125/34229796/attachment.bin


More information about the freebsd-ports mailing list