# HG changeset patch # User Richard M. Stallman # Date 820193315 0 # Node ID 2631a29a614c3f8086771c314566baa9918ad8fc # Parent 15e38bb8df9cbc3f5b695130e7397ac2914ea596 (getloadavg) [MSDOS]: Return 0 load instead of failing the call. diff -r 15e38bb8df9c -r 2631a29a614c src/getloadavg.c --- a/src/getloadavg.c Thu Dec 28 23:14:23 1995 +0000 +++ b/src/getloadavg.c Thu Dec 28 23:28:35 1995 +0000 @@ -732,6 +732,16 @@ : (load_ave.tl_avenrun.l[0] / (double) load_ave.tl_lscale)); #endif /* OSF_MIPS */ +#if !defined (LDAV_DONE) && defined(MSDOS) +#define LDAV_DONE + + /* A faithful emulation is going to have to be saved for a rainy day. */ + for ( ; elem < nelem; elem++) + { + loadavg[elem] = 0.0; + } +#endif /* MSDOS */ + #if !defined (LDAV_DONE) && defined (OSF_ALPHA) #define LDAV_DONE