On Thu, Jul 09, 2009 at 03:42:47AM +0000, Paul Ackersviller wrote: > On Wed, Jul 08, 2009 at 02:37:49PM -0600, Erik Falor wrote: > > I've figured out how to display the correct load averages by looking > > at GNU's implementation of uptime. I've created yet another GetLoadav > > function implementing that method for HP-UX. Because it makes use of > > HP-UX's pstat_getdynamic() function, it has the nice benefit of not > > directly reading the values from kernel memory, and thus does not need > > to run setuid root. > > Thanks, that sounds good. Will this be committed anytime soon? > I'll try the patch if not. > > > I've also fixed a few more build problems while I was at it. On the > > HP-UX system I use at work, ./configure failed because it couldn't get > > sockets or fifos to work. The problem is that some functions used by > > HP-UX's socket API is defined in sys/time.h instead of sys/select.h. > > In fact, HP-UX doesn't even have sys/select.h. Through a combination > > of #ifdefs and #includes I was able to make it build. > > I never had any such issues with 4.0.{2,3}, at least not recently. > Perhaps I tweaked some stuff I've forgotten about.
I've only had this problem with the latest development version of screen. > > Furthermore, HP-UX doesn't have a setenv() function, so I had to tweak > > the configure script to use GNU screen's built-in implementation. > > > > I've built and run this patch on a HP-UX 11.11 machine, a SunOS 5.10 > > as well as a couple of linux boxes. > > I think I can try it out on an HP-UX 11.23 system as well. That would be great. We're down to only one HP-UX machine at work, and it'll be phased out before long. I appreciate anyone who can test this patch on other versions. -- Erik Falor Registered Linux User #445632 http://counter.li.org