From owner-freebsd-bugs Wed May 9 7:51: 8 2001 Delivered-To: freebsd-bugs@freebsd.org Received: from flood.ping.uio.no (flood.ping.uio.no [129.240.78.31]) by hub.freebsd.org (Postfix) with ESMTP id 6CD0637B423; Wed, 9 May 2001 07:51:04 -0700 (PDT) (envelope-from des@ofug.org) Received: (from des@localhost) by flood.ping.uio.no (8.9.3/8.9.3) id QAA61409; Wed, 9 May 2001 16:50:56 +0200 (CEST) (envelope-from des@ofug.org) X-URL: http://www.ofug.org/~des/ X-Disclaimer: The views expressed in this message do not necessarily coincide with those of any organisation or company with which I am or have been affiliated. To: Bruce Evans Cc: dwmalone@FreeBSD.ORG, freebsd-bugs@FreeBSD.ORG Subject: Re: kern/27215: when cat'ing /compat/linux/proc/stat, we have negative numbers References: From: Dag-Erling Smorgrav Date: 09 May 2001 16:50:55 +0200 In-Reply-To: Message-ID: Lines: 14 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Bruce Evans 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. DES -- Dag-Erling Smorgrav - des@ofug.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message