diff options
| author | Roland McGrath | 1996-05-22 21:47:37 +0000 |
|---|---|---|
| committer | Roland McGrath | 1996-05-22 21:47:37 +0000 |
| commit | 26ff97e7d120038ca103902f3e9143e6f5675e61 (patch) | |
| tree | a1cafef8f8fcbe141ab43f5db2bf65a5eb8ce43c /src | |
| parent | 891560d60e616def451dbf39cf8f19fa04e3bdc8 (diff) | |
| download | emacs-26ff97e7d120038ca103902f3e9143e6f5675e61.tar.gz emacs-26ff97e7d120038ca103902f3e9143e6f5675e61.zip | |
[WIN32]: No-op as for [MSDOS].
Diffstat (limited to 'src')
| -rw-r--r-- | src/getloadavg.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/getloadavg.c b/src/getloadavg.c index 598c505d1af..1fe78bd95ff 100644 --- a/src/getloadavg.c +++ b/src/getloadavg.c | |||
| @@ -43,6 +43,7 @@ | |||
| 43 | DGUX | 43 | DGUX |
| 44 | eunice UNIX emulator under VMS. | 44 | eunice UNIX emulator under VMS. |
| 45 | hpux | 45 | hpux |
| 46 | MSDOS No-op for MSDOS. | ||
| 46 | NeXT | 47 | NeXT |
| 47 | sgi | 48 | sgi |
| 48 | sequent Sequent Dynix 3.x.x (BSD) | 49 | sequent Sequent Dynix 3.x.x (BSD) |
| @@ -51,6 +52,7 @@ | |||
| 51 | UMAX | 52 | UMAX |
| 52 | UMAX4_3 | 53 | UMAX4_3 |
| 53 | VMS | 54 | VMS |
| 55 | WIN32 No-op for Windows95/NT. | ||
| 54 | __linux__ Linux: assumes /proc filesystem mounted. | 56 | __linux__ Linux: assumes /proc filesystem mounted. |
| 55 | Support from Michael K. Johnson. | 57 | Support from Michael K. Johnson. |
| 56 | __NetBSD__ NetBSD: assumes /kern filesystem mounted. | 58 | __NetBSD__ NetBSD: assumes /kern filesystem mounted. |
| @@ -733,11 +735,11 @@ getloadavg (loadavg, nelem) | |||
| 733 | : (load_ave.tl_avenrun.l[0] / (double) load_ave.tl_lscale)); | 735 | : (load_ave.tl_avenrun.l[0] / (double) load_ave.tl_lscale)); |
| 734 | #endif /* OSF_MIPS */ | 736 | #endif /* OSF_MIPS */ |
| 735 | 737 | ||
| 736 | #if !defined (LDAV_DONE) && defined(MSDOS) | 738 | #if !defined (LDAV_DONE) && (defined (MSDOS) || defined (WIN32)) |
| 737 | #define LDAV_DONE | 739 | #define LDAV_DONE |
| 738 | 740 | ||
| 739 | /* A faithful emulation is going to have to be saved for a rainy day. */ | 741 | /* A faithful emulation is going to have to be saved for a rainy day. */ |
| 740 | for ( ; elem < nelem; elem++) | 742 | for ( ; elem < nelem; elem++) |
| 741 | { | 743 | { |
| 742 | loadavg[elem] = 0.0; | 744 | loadavg[elem] = 0.0; |
| 743 | } | 745 | } |
| @@ -866,7 +868,7 @@ getloadavg (loadavg, nelem) | |||
| 866 | /* We pass 0 for the kernel, corefile, and swapfile names | 868 | /* We pass 0 for the kernel, corefile, and swapfile names |
| 867 | to use the currently running kernel. */ | 869 | to use the currently running kernel. */ |
| 868 | kd = kvm_open (0, 0, 0, O_RDONLY, 0); | 870 | kd = kvm_open (0, 0, 0, O_RDONLY, 0); |
| 869 | if (kd != 0) | 871 | if (kd != 0) |
| 870 | { | 872 | { |
| 871 | /* nlist the currently running kernel. */ | 873 | /* nlist the currently running kernel. */ |
| 872 | kvm_nlist (kd, nl); | 874 | kvm_nlist (kd, nl); |