Forked from
Utils / KWSys
Source project has a limited visibility.
-
- ensure the return value of every sysctlbyname call is checked. On Apple Silicon aka arm64 some of them do return an error, for example hw.cpufrequency, and we were getting nonsense values. - when sysctlbyname returns an error, always provide a fallback value - be a bit more paranoid about leaving space for null termination in temp buf - corrected "machdep.cpu.model" and "machdep.cpu.stepping" from int64 to int32, as documented. - added Apple to the Manufacturer enum
- ensure the return value of every sysctlbyname call is checked. On Apple Silicon aka arm64 some of them do return an error, for example hw.cpufrequency, and we were getting nonsense values. - when sysctlbyname returns an error, always provide a fallback value - be a bit more paranoid about leaving space for null termination in temp buf - corrected "machdep.cpu.model" and "machdep.cpu.stepping" from int64 to int32, as documented. - added Apple to the Manufacturer enum