Skip to content
Snippets Groups Projects
Forked from Utils / KWSys
280 commits behind the upstream repository.
Sean McBride's avatar
Sean McBride authored
- 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
History

KWSys

Introduction

KWSys is the Kitware System Library. It provides platform-independent APIs to many common system features that are implemented differently on every platform. This library is intended to be shared among many projects at the source level, so it has a configurable namespace. Each project should configure KWSys to use a namespace unique to itself. See comments in CMakeLists.txt for details.

License

KWSys is distributed under the OSI-approved BSD 3-clause License. See Copyright.txt for details.

Reporting Bugs

KWSys has no independent issue tracker. After encountering an issue (bug) please submit a patch using the instructions for Contributing. Otherwise please report the issue to the tracker for the project that hosts the copy of KWSys in which the problem was found.

Contributing

See CONTRIBUTING.rst for instructions to contribute.