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

Sigaction docs with an example and links to docs and security best practicies. Solves #319 .

I have lost some time already trying to figure out how to use ioctl with nix, but until now I couldn't get it work. Is there any documentation with examples...

You may have noticed that my responsiveness has been lagging the past few months. COVID has given me less time to work on Nix, though TBH I've been burning out,...

On Linux, the recent ``openat2()`` system call provides a broader API surface than ``openat()``. However, it's not yet wrapped in GLIBC, so it would be necessary to make the system...

This commit adds definitions for Linux debug related MAGIC to confirm if the filesystem for debug is mounted using statfs. Reference commit: https://github.com/rust-lang/libc/pull/1943 Signed-off-by: Kenta Tada

There are situation where you want to have the raw error value of an error, e.g. for passing back into C code. Also, there is already a perfectly good type...

A-ergonomics

This implements cfset*speed for termios using ioctal, so that non-standard baud rates can be set. /closes #1376

On Linux, non-standard baud rates are often required, but not "supported" by traditional termios APIs. They must be set with an IOCTL but this is still needed. The DMX512 Lighting...

Both Metadata::uid() and nix::unistd::Uid are both u32. An easy way of converting between the two would much cleaner code. let md = src.metadata()?; set_permissions(&file, md.permissions())?; chown(file.as_path(), Some(md.uid()), Some(md.gid())); vs: let...