From owner-freebsd-hackers Thu Jul 2 19:06:56 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id TAA18588 for freebsd-hackers-outgoing; Thu, 2 Jul 1998 19:06:56 -0700 (PDT) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from fep2-orange.clear.net.nz (fep2-orange.clear.net.nz [203.97.32.2]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id TAA18546; Thu, 2 Jul 1998 19:06:44 -0700 (PDT) (envelope-from jabley@clear.co.nz) Received: from buddha.clear.net.nz (buddha.clear.net.nz [192.168.24.106]) by fep2-orange.clear.net.nz (1.5/1.9) with ESMTP id OAA06009; Fri, 3 Jul 1998 14:06:00 +1200 (NZST) Received: from localhost (jabley@localhost) by buddha.clear.net.nz (8.8.8/8.8.8) with SMTP id OAA18983; Fri, 3 Jul 1998 14:05:56 +1200 (NZST) (envelope-from jabley@clear.co.nz) Date: Fri, 3 Jul 1998 14:05:56 +1200 (NZST) From: Joe Abley X-Sender: jabley@buddha.clear.net.nz To: Donn Miller cc: Mike Smith , questions@FreeBSD.ORG, hackers@FreeBSD.ORG Subject: Re: FreeBSD equiv. of /proc/loadavg In-Reply-To: <359B9B21.6DE01652@bellatlantic.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Thu, 2 Jul 1998, Donn Miller wrote: > Mike Smith wrote: > > > > > > > > Am looking for the FreeBSD equivalent of the Linux file /proc/loadavg. I > > > want to use this instead of using getloadavg(). > > > > The obvious question here is "why"? > > I just figured that some Linux programs were trying to obtain load > average info that way, and to ease porting, well, I wanted to open the > equivalent FreeBSD file. I realize now though that if you want to port > some apps with low-level details, you gotta do a little reworking. > > I was trying to port wmmon from WindowMaker. It's just for Linux now. > In addition, the app tries to obtain loadaverage, uptime, and memory > info about the machine like this: (from wmmon.c) What about rpc.rstatd(8) - isn't this a common enough interface for all these numbers? Joe -- Joe Abley Tel +64 9 912-4065, Fax +64 9 912-5008 Network Architect, CLEAR Net http://www.clear.net.nz/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message