From xemacs-m  Tue Dec 10 16:25:23 1996
Received: from venus.Sun.COM (venus.Sun.COM [192.9.25.5]) by xemacs.cs.uiuc.edu (8.8.3/8.8.3) with SMTP id QAA26261 for <xemacs-beta@xemacs.org>; Tue, 10 Dec 1996 16:25:22 -0600 (CST)
Received: from Eng.Sun.COM ([129.146.1.25]) by venus.Sun.COM (SMI-8.6/mail.byaddr) with SMTP id OAA00538; Tue, 10 Dec 1996 14:24:53 -0800
Received: from kindra.eng.sun.com by Eng.Sun.COM (SMI-8.6/SMI-5.3)
	id OAA20494; Tue, 10 Dec 1996 14:24:46 -0800
Received: from xemacs.eng.sun.com by kindra.eng.sun.com (SMI-8.6/SMI-SVR4)
	id OAA29964; Tue, 10 Dec 1996 14:24:44 -0800
Received: by xemacs.eng.sun.com (SMI-8.6/SMI-SVR4)
	id OAA23097; Tue, 10 Dec 1996 14:24:44 -0800
Date: Tue, 10 Dec 1996 14:24:44 -0800
Message-Id: <199612102224.OAA23097@xemacs.eng.sun.com>
From: Martin Buchholz <mrb@Eng.Sun.COM>
To: Steven L Baur <steve@miranova.com>
Cc: xemacs-beta@xemacs.org
Subject: Re: hpux loadave 20.0 lossage
In-Reply-To: <m24thuqdxy.fsf@altair.xemacs.org>
References: <u9ybf687gw.fsf@chekov.ctd.comsat.com>
	<m24thuqdxy.fsf@altair.xemacs.org>
Reply-To: Martin Buchholz <mrb@Eng.Sun.COM>
Mime-Version: 1.0 (generated by tm-edit 7.94)
Content-Type: text/plain; charset=US-ASCII

>>>>> "Steven" == Steven L Baur <steve@miranova.com> writes:

>>>>> "Neal" == Neal Becker <neal@ctd.comsat.com> writes:
Neal> In 19.15b2 we used an undocumented pstat() call to get loadave
Neal> on hpux9 (actually, 8+ I think).  This does not require any
Neal> special privilege.  This seems to have dissapeared in 20b30,
Neal> probably as a result of fsf merge.  Do we really want to drop
Neal> this?

Steven> No.  getloadavg.c was recently updated by Hrvoje Niksic for Solaris
Steven> and it looks like the HP specific code got lost along the way.

Steven> I'll take a look at restoring it, but it probably won't get into
Steven> tonight's release.

I "upgraded" to FSF's getloadavg.c, and added Hrvoje's changes to it.
I *did* make an attempt to maintain the HP-specific changes, but
didn't do it quite right.  Could some HP person submit a patch against
20.0's getloadavg.c?  There is untested code to check for sys/pstat.h
and #include it if found.

As an experiment that might become a tradition, all XEmacs changes to
this particular source file are within

#ifdef XEMACS
...
#endif

This will make future source syncs easier.  I suggest doing this for
other `shared' files in future such as getopt.c, gmalloc.c, etc...

There is no reason for any changes to this file to be XEmacs-specific.
It would be good if all of our changes make it back to the FSF, so we
could have Just One getloadavg.c.  Steven, could you take on this task?

Martin

