nix
nix copied to clipboard
Rust friendly bindings to *nix APIs
I am thinking about adding another trait to represent string, the definition will be same as our [`NixPath`](https://docs.rs/nix/latest/nix/trait.NixPath.html) trait, and these 2 traits only differ in semantics, `NixPath` is for...
I encountered this in #2592, looks like there was already an upstream issue: https://github.com/cross-rs/cross/issues/1422, though this issue is old, and I have no idea why we only hit the issue...
I was writing a shell as an example for nix, and I realised that #555 makes a really good point: the code that runs in the child after `fork(2)` must...
Currently the `CpuSet` struct consists of a single `cpu_set_t` (or `cpuset_t` on *BSD), and `sched_*etaffinity` syscalls are called with constant `cpusetsize` parameter, always being `mem::size_of::()` (=64 on all targets, at...
## What does this PR do Before this PR, our `CpuSet` type used only 1 libc `cpuset` structure, which can only hold 64 bits on both FreeBSD-like and Linux-like systems....
Whilst trying to build https://github.com/rustic-rs/rustic, under Haiku (as part of https://github.com/rustic-rs/rustic/issues/1390), I encountered an issue related to nix's wrapper, for ```mknod()```, where definitions for S_IFBLK, and S_IFCHR seem to be...
The kernel has support time namespace since 5.6, do you have plan to add it on nix::unshare?
## What does this PR do Fix failed to build for target loongarch64(similar to MIPS) with this error: ```c error[E0432]: unresolved import `self::consts` --> /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/nix-0.26.4/src/sys/ioctl/linux.rs:60:15 | 60 | pub use...
It failed in this line: https://github.com/nix-rust/nix/blob/0f4559386404f58803b27807201b4dd6d1411f50/test/sys/test_uio.rs#L48 ``` ---- sys::test_uio::test_writev stdout ---- thread 'sys::test_uio::test_writev' panicked at test/sys/test_uio.rs:48:29: couldn't write: EINVAL ``` Currently, we have no idea about the root cause [so...