Irix 3.3.1 C problem - can't display load averages

Vernon Schryver vjs at rhyolite.wpd.sgi.com
Sun Dec 2 06:40:29 AEST 1990


In article <1990Nov27.190305.9267 at csrd.uiuc.edu>, kai at sp1.csrd.uiuc.edu (Kuck And Associates) writes:
> Here is a short program which, when compiled under Irix 3.2, runs and displays
> the load averages on both Irix 3.2 and, interestingly, 3.3.1.
> However, when compiled under Irix 3.3.1, it quits after nlist() with the error
> message "lseek: Invalid argument".


There are two main kinds of UNIX systems in the world.  Those where the
answers you get from nlist() can be used directly on /dev/kmem, and those
where you have to strip the sign bit before using lseek().  They are many
species in both genera, and no doubt other characteristics in other phyla.


Vernon Schryver,   vjs at sgi.com



More information about the Comp.sys.sgi mailing list