Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 10 May 2001 02:03:19 +1000 (EST)
From:      Bruce Evans <bde@zeta.org.au>
To:        Dag-Erling Smorgrav <des@ofug.org>
Cc:        dwmalone@FreeBSD.ORG, freebsd-bugs@FreeBSD.ORG
Subject:   Re: kern/27215: when cat'ing /compat/linux/proc/stat, we have negative numbers
Message-ID:  <Pine.BSF.4.21.0105100158040.19302-100000@besplex.bde.org>
In-Reply-To: <xzpr8xyh8z4.fsf@flood.ping.uio.no>

next in thread | previous in thread | raw e-mail | index | archive | help
On 9 May 2001, Dag-Erling Smorgrav wrote:

> Bruce Evans <bde@zeta.org.au> writes:
> > Mainly the "interface" given by the type of cp_time.  systat and vmstat,
> > etc., depend on it being an array of longs.  systat uses a sysctl to
> > read the array, but this doesn't help much because it assumes that the
> > array elements have the same types as in the kernel.
> 
> How about hacking systat to check the size of the returned data, and
> use longs if it's only 20 bytes instead of 40?  That'll allow the new
> systat to run on old kernels, though it won't help an old userland
> running on a new kernel - but heck, this is -CURRENT.

The problem is more with ports.  I guess ports need this and systat is
a good place to prototype it.  It's also another incentive to convert
vmstat to use the sysctl.

Bruce


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0105100158040.19302-100000>