sysctl-rs icon indicating copy to clipboard operation
sysctl-rs copied to clipboard

A simplified Rust interface to the sysctl system call

Results 8 sysctl-rs issues
Sort by recently updated
recently updated
newest added

using the Cargo.toml and example code from the README on openbsd i get the following: ``` % cargo run Compiling sysctl v0.5.4 error[E0433]: failed to resolve: maybe a missing crate...

FreeBSD's Capsicum facility is used to sandbox processes into a capability mode. Unable to access any global namespaces, their ability to harm the overall system is very limited. It's a...

Compile warning on Linux. Look into if we need a newer version of bitflags. ``` warning: use of deprecated macro `try`: use the `?` operator instead --> src/ctl_flags.rs:6:1 | 6...

e.g. from the sysctl manpage: ```C int i, mib[4]; size_t len; struct kinfo_proc kp; /* Fill out the first three components of the mib */ len = 4; sysctlnametomib("kern.proc.pid", mib,...

Transmuting bytes to an arbitrary type can cause undefined behavior. The safety requirements: 1. `T` must be `Sized`. 2. The length of bytes must be equal to `size_of::()`. 3. The...

Hi, First of all, thanks for this library. I'm very new to Rust so this might be a stupid question. I'm trying to read the `"kern.cp_time"` and `"kern.cp_times"` Ctl's on...

I've started a NetBSD port based mostly on the FreeBSD one. My work is [here](https://github.com/0-wiz-0/sysctl-rs). It currently fails to build: ``` Compiling sysctl v0.6.0 (sysctl-rs-fork) error[E0425]: cannot find function `sysctlnametomib`...

Is there such a thing, or can such a thing be created that will allow us to do ``` #[cfg(not(any(target_os = "apple-like")))] ``` or ``` #[cfg(not(any(target_vendor = "apple")))] ``` instead...