nix icon indicating copy to clipboard operation
nix copied to clipboard

Rust friendly bindings to *nix APIs

Results 296 nix issues
Sort by recently updated
recently updated
newest added
trafficstars

## What does this PR do Fix #2447 ## Checklist: - [ x] I have read `CONTRIBUTING.md` - [ x] I have written necessary tests and rustdoc comments - [...

`ptrace::getregs` and `ptrace::getregset` are used to get register values of certain process (tracee), which utilizes the `ptrace(PTRACE_GETREGSET, ..)` syscall: ```rust pub fn getregset(pid: Pid) -> Result { let request =...

A-bug

Hi! On illumos, `nix`'s isatty() function can return `Err(UnknownErrno)` for non-TTY file descriptors: ``` $ cat src/main.rs use std::io; use std::os::unix::io::AsRawFd; fn main() { dbg!(nix::unistd::isatty(io::stdout().as_raw_fd())); } $ cargo run |...

When I bump the CI Linux runner from Ubuntu 20.04 to 22.04, [this test fails](https://github.com/nix-rust/nix/actions/runs/9235475942/job/25410368942?pr=2417) under QEMU for some architectures, it failed in this [line](https://github.com/nix-rust/nix/blob/1df106962b227257fbe8994b3712a7848befd898/test/sys/test_prctl.rs#L149): ```rs failures: ---- test_prctl::test_set_vma_anon_name stdout...

A-testing

For those syscalls that are signal-safe, their Nix wrappers may not be. For example, `stat(2)` is signal-safe, its Nix wrapper uses the `NixPath` trait, which will allocate if the passed...

A-docs

I have seen this [test](https://github.com/nix-rust/nix/blob/b2f34f7423740d8c46d3518b8b203a9d8cdc6ca4/test/sys/test_timer.rs#L23) failure several times after bumping our Linux CI runner: ```rs failures: ---- sys::test_timer::alarm_fires stdout ---- thread 'sys::test_timer::alarm_fires' panicked at test/sys/test_timer.rs:85:13: Timeout waiting for SIGALRM failures:...

A-testing

Milestone: https://github.com/nix-rust/nix/milestone/17 In Nix 0.30.0, most interfaces should have I/O safety adopted, so there are a lot of braking changes included. We should help Nix users migrate to 0.30.0. For...

enable echoing on input characters. while at it with this new flag, fixing pty open_tty_pair test for solarish. While the test_write_ptty_pair passes, the test_read_ptty_pair fails when filling the master buffer....

There are apparently some soundness issues with libc's `extra_traits` feature in https://github.com/rust-lang/libc/issues/2700, https://github.com/rust-lang/libc/issues/2064, and https://github.com/rust-lang/libc/issues/2816, with an effort to remove the `extra_traits` feature to avoid this issue in https://github.com/rust-lang/libc/pull/3692. Would...

relates to #317 ## What does this PR do Rename Flags ## Checklist: - [x] I have read `CONTRIBUTING.md` - [ ] I have written necessary tests and rustdoc comments...