[PATCH] Missing and incorrect sysctl MIB array integers OS X
Original Reporter info from Mantis: trev @trevoz
-
Reporter name: Trevor Roydhouse
Original Reporter info from Mantis: trev @trevoz
- Reporter name: Trevor Roydhouse
Description:
The macOS /usr/include/sys/sysctl.h header is:
#define VM_METER 1 /* struct vmmeter /
#define VM_LOADAVG 2 / struct loadavg /
/
* Note: "3" was skipped sometime ago and should probably remain unused
* to avoid any new entry from being accepted by older kernels...
/
#define VM_MACHFACTOR 4 / struct loadavg with mach factor/
#define VM_SWAPUSAGE 5 / total swap usage /
#define VM_MAXID 6 / number of valid vm ids */
But the rtl/darwin/sysctlh.inc has VM_MAXID assigned to 3 (which is unused) and is missing VM_SWAPUSAGE altogether.
I have attached a patch to correct this.