projects
/
platform
/
upstream
/
make.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
17aef36
)
(getloadavg) [MSDOS]: Return 0 load instead of failing the call.
author
Richard M. Stallman
<rms@gnu.org>
Thu, 28 Dec 1995 23:28:35 +0000
(23:28 +0000)
committer
Richard M. Stallman
<rms@gnu.org>
Thu, 28 Dec 1995 23:28:35 +0000
(23:28 +0000)
getloadavg.c
patch
|
blob
|
history
diff --git
a/getloadavg.c
b/getloadavg.c
index 7f939d2dbe4846510f6aff08b011c9a52c6f40b7..3076012c6d519652c5db4fb51409be2e8211fcf9 100644
(file)
--- a/
getloadavg.c
+++ b/
getloadavg.c
@@
-732,6
+732,16
@@
getloadavg (loadavg, nelem)
: (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