getloadavg() like it is in BSD