glibc-bsd-hackers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Glibc-bsd-hackers] Re: missing stuff in <sys/sysinfo.h>


From: Robert Millan
Subject: [Glibc-bsd-hackers] Re: missing stuff in <sys/sysinfo.h>
Date: Tue, 15 Jul 2003 03:23:48 +0200
User-agent: Mutt/1.5.4i

On Mon, Jul 14, 2003 at 09:08:08PM -0400, Nathan Hawkins wrote:
> >uhm.. actualy it seems the sysinfo struct and associated function are 
> >linux-specific. 
> >we should probably fix the code with a replacement for sysinfo. anyone 
> >knows how to get system load parameters portably? maybe sysconf ()?
> 
> On FreeBSD, virtually everything of that sort is in sysctl. I would suggest 
> that the code depending on sysinfo needs some portability fixing. 

I asked on debian-hurd (which is also concerned about it), and Roland pointed
out that the portable function for this is getloadavg ().

I'm still figuring out what to do with the undefined SI_LOAD_SHIFT though,
but it shouldn't be too hard (and actualy hardocing an arbitrary value would
work fine)

-- 
Robert Millan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]