From: Rich Felker Date: Fri, 8 Jun 2012 02:58:19 +0000 (-0400) Subject: sysinfo struct was utter nonsense; no idea where it came from. X-Git-Tag: v0.9.2~49 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=e86b18a63eb6b65e18e761212f69a0abc16b50b1;p=oweals%2Fmusl.git sysinfo struct was utter nonsense; no idea where it came from. this broke the busybox "free" utility (memory reporting) and possibly other things like uptime. --- diff --git a/include/sys/sysinfo.h b/include/sys/sysinfo.h index 3bf6cb0f..af11b6a0 100644 --- a/include/sys/sysinfo.h +++ b/include/sys/sysinfo.h @@ -5,22 +5,21 @@ extern "C" { #endif -/* ?? */ #define SI_LOAD_SHIFT 16 struct sysinfo { - unsigned long long uptime; + unsigned long uptime; unsigned long loads[3]; - unsigned long procs; unsigned long long totalram; unsigned long long freeram; unsigned long long sharedram; unsigned long long bufferram; unsigned long long totalswap; unsigned long long freeswap; + unsigned short procs, pad; unsigned long long totalhigh; unsigned long long freehigh; - unsigned long mem_unit; + unsigned mem_unit; char __reserved[256]; };