nix
nix copied to clipboard
Rust friendly bindings to *nix APIs
Build fails: error[E307]: mismatched types --> src/fs/metadata.rs:85:55 | 85 | let sflag = SFlag::from_bits_truncate(metadata_mode); | ------------------------- ^^^^^^^^^^^^^ expected `u16`, found `u32` | | | arguments to this function are incorrect...
## What does this PR do Adds support for nix to receive additional Fanotify information records (such as `libc::fanotify_event_info_fid`, `libc::fanotify_event_info_error` and `libc::fanotify_event_info_pidfd`) Adds abstractions over the new fanotify structs. Adds...
Given that this is a library for low level programming, it should probably provide a `no_std` version. I will add (preferably with everyones help) a list what we have to...
Thanks for the awesome crate and great work! I am the main author of [syd](https://lib.rs/crates/syd) and we've been using nix in our project with great joy. Below is an error...
It appears you can read freed memory without unsafe code via vmsplice: ```Rust use nix::fcntl::{fcntl, splice, vmsplice, SpliceFFlags}; use nix::unistd::pipe; use std::error::Error; use std::fs::File; use std::io::{IoSlice, Read}; use std::os::fd::{AsFd, AsRawFd};...
cookie. ## What does this PR do ## Checklist: - [ ] I have read `CONTRIBUTING.md` - [ ] I have written necessary tests and rustdoc comments - [ ]...
Implement TCP_INFO option for getsockopt. ## What does this PR do ## Checklist: - [x] I have read `CONTRIBUTING.md` - [x] I have written necessary tests and rustdoc comments -...
Looks like linux has had this since 5.10: https://www.phoronix.com/news/Linux-5.10-nosymfollow, and [nix has it for bsd](https://github.com/nix-rust/nix/blob/a397b089354d4c07f826619f06e8b0d7b6f24406/src/mount/bsd_without_apple.rs#L52) At a glance it looks like all it takes is adding a comment and an...
According to the `ptrace(2) System Calls Manual` (`man ptrace`), the `PTRACE_KILL` request is depreciated. It might be a good idea to mark `ptrace::kill` as depreciated too. The manual recommends to...
I'm trying to implement crate to make OSS (audio on FreeBSD) handling easier, and this is the part of code that is behaving strangely ``` const SNDCTL_DSP_MAGIC: u8 = b'P';...