Skip to content
  • Sean McBride's avatar
    SystemInformation: Improve ParseSysCtl error checking · 45e42f63
    Sean McBride authored and Brad King's avatar Brad King committed
    - 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
    45e42f63