Trying to use a getloadavg testdir on IRIX 6.5, the test is skipped: Skipping test; load average not supported: Not supported SKIP: test-getloadavg
The reason is that two things are wrong in the execution of getloadavg: 1) ldav_off is set to the value 542000976 = 0x204E4750 but "nm /unix | grep avenrun" shows that 'avenrun' is at kernel address 0xA8000000204E4750. So I think ldav_off should be changed to 'ptrdiff_t'. This would also match the manual page <http://techpubs.sgi.com/library/tpl/cgi-bin/getdoc.cgi?cmd=getdoc&coll=0650&db=man&fname=2%20sysmp> 2) kmem_fd is set to -1. The reason is /dev/kmem is not readable for a normal user: $ ls -l /dev/kmem crw-r----- 1 root sys 1, 1 Feb 2 03:52 /dev/kmem As a consequence, getloadavg_initialized stays 0, and the code if (offset == 0 || !getloadavg_initialized) { errno = ENOTSUP; return -1; } cause getloadavg to fail with ENOTSUP. I don't think you need to reintroduce the KMEM_GROUP etc. stuff. The few user of IRIX 6.5 systems that have superuser privileges can do this by hand. Bruno