https://github.com/ibara/sysctlbyname
sysctlbyname(3) compat library for OpenBSD
https://github.com/ibara/sysctlbyname
c openbsd
Last synced: about 2 months ago
JSON representation
sysctlbyname(3) compat library for OpenBSD
- Host: GitHub
- URL: https://github.com/ibara/sysctlbyname
- Owner: ibara
- License: isc
- Created: 2019-12-31T21:40:30.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-11-22T14:35:47.000Z (over 3 years ago)
- Last Synced: 2025-02-26T09:51:21.442Z (2 months ago)
- Topics: c, openbsd
- Language: C
- Size: 12.7 KB
- Stars: 7
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
libsysctl
=========
Compat library for
[OpenBSD](https://www.openbsd.org/).This library provides a simple and stripped-down version of `sysctlbyname(3)`,
which is provided on all other BSDs, including macOS.It is suitable for the few OpenBSD ports that use `sysctlbyname`, to simplify
the patches. It's probably not suitable for much more than that.Why?
----
OpenBSD is the only \*BSD not to provide `sysctlbyname`. Non-BSD people looking
to provide compatability through the `sysctl` interface probably aren't going
to look up the MIB defines or even necessarily know what they are. As such the
`sysctlbyname` function provides a useful abstraction layer to make porting to
\*BSD easier.