From owner-freebsd-ports Sun Nov 10 02:21:34 1996 Return-Path: owner-ports Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id CAA28384 for ports-outgoing; Sun, 10 Nov 1996 02:21:34 -0800 (PST) Received: from irz301.inf.tu-dresden.de (irz301.inf.tu-dresden.de [141.76.1.11]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id CAA28377 for ; Sun, 10 Nov 1996 02:21:29 -0800 (PST) Received: from sax.sax.de (sax.sax.de [193.175.26.33]) by irz301.inf.tu-dresden.de (8.6.12/8.6.12-s1) with ESMTP id LAA10576; Sun, 10 Nov 1996 11:21:27 +0100 Received: (from uucp@localhost) by sax.sax.de (8.6.12/8.6.12-s1) with UUCP id LAA25490; Sun, 10 Nov 1996 11:21:27 +0100 Received: (from j@localhost) by uriah.heep.sax.de (8.8.2/8.6.9) id LAA09238; Sun, 10 Nov 1996 11:01:28 +0100 (MET) From: J Wunsch Message-Id: <199611101001.LAA09238@uriah.heep.sax.de> Subject: Re: XFree86 contrib To: obrien@NUXI.com (David E. O'Brien) Date: Sun, 10 Nov 1996 11:01:28 +0100 (MET) Cc: ports@FreeBSD.org Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) In-Reply-To: <199611100259.SAA14728@relay.nuxi.com> from "David E. O'Brien" at "Nov 9, 96 06:59:24 pm" X-Phone: +49-351-2012 669 X-PGP-Fingerprint: DC 47 E6 E4 FF A6 E9 8F 93 21 E0 7D F9 12 D6 4E X-Mailer: ELM [version 2.4ME+ PL17 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-ports@FreeBSD.org X-Loop: FreeBSD.org Precedence: bulk As David E. O'Brien wrote: > > That was truly a shot in the dark, all the clue I had was an "#else /* > > __bsdi__ */" and I don't know what BSDi's doing. i hope I didn't > > embarrass myself.... > > W/o see the entire function, it is hard to say. But I can say that > BSD/OS has a different interface for getting cpu usage from the kernel. > I had to work thru this in my xcpustate port. They use getkerninfo() > rather than our kvm_read(). We don't use kvm_read() either. ;-) Both systems have getloadavg(3) and applications should not care how the system actually implements it. I've already forwarded the fix from the XFree86 beta list to Satoshi. -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-)