Fix some win32 definitions

You can now use psapi.dll and pdh.dll. Some TODOs for Windows have been
cleared out. We might have a working load average for the platform that
should help GNU Make work well.
This commit is contained in:
Justine Tunney 2022-03-22 19:51:27 -07:00
parent e2e0b042c1
commit c23b6ecc31
162 changed files with 847 additions and 153 deletions

View file

@ -31,7 +31,6 @@ int getloadavg(double *a, int n) {
struct sysinfo si;
if (!n) return 0;
if (n < 0) return einval();
if (IsWindows()) return enosys(); /* TODO(jart) */
if (sysinfo(&si) == -1) return -1;
if (n > 3) n = 3;
for (i = 0; i < n; i++) {