Crate nix
Documentation
Rust friendly bindings to the various *nix system functions.
Modules are structured according to the C header file that they would be defined in.
Re-exports
pub use libc;
Modules
dir not(target_os = "redox")
Environment variables
Feature tests for OS functionality
ifaddrs any(target_os = "android", target_os = "dragonfly", target_os = "freebsd", target_os = "ios", target_os = "linux", target_os = "macos", target_os = "netbsd", target_os = "illumos", target_os = "openbsd")
Query network interface addresses
kmod any(target_os = "android", target_os = "linux")
Load and unload kernel modules.
mount any(target_os = "android", target_os = "freebsd", target_os = "linux")
Mount file systems
mqueue any(target_os = "dragonfly", target_os = "freebsd", target_os = "fushsia", target_os = "linux", target_os = "netbsd")
Posix Message Queue functions
net not(target_os = "redox")
Functionality involving network interfaces
Wait for events to trigger on specific file descriptors
pty not(any(target_os = "redox", target_os = "fuchsia"))
Create master and slave virtual pseudo-terminals (PTYs)
Execution scheduling
Mostly platform-specific functionality
ucontext all(target_os = "linux", any(target_arch = "x86", target_arch = "x86_64"))
Safe wrappers around functions found in libc “unistd.h” header
Macros
Create a buffer large enough for storing some control messages as returned
by recvmsg
.
Generates a wrapper function for an ioctl that passes no data to the kernel.
Generates a wrapper function for a “bad” ioctl that passes no data to the kernel.
Generates a wrapper function for an ioctl that reads data from the kernel.
Generates a wrapper function for a “bad” ioctl that reads data from the kernel.
Generates a wrapper function for an ioctl that reads an array of elements from the kernel.
Generates a wrapper function for an ioctl that reads and writes data to the kernel.
Generates a wrapper function for a “bad” ioctl that reads and writes data to the kernel.
Generates a wrapper function for an ioctl that reads and writes an array of elements to the kernel.
Generates a wrapper function for an ioctl that writes an array of elements to the kernel.
Generates a wrapper function for a ioctl that writes an integer to the kernel.
Generates a wrapper function for a “bad” ioctl that writes an integer to the kernel.
Generates a wrapper function for an ioctl that writes data through a pointer to the kernel.
Generates a wrapper function for a “bad” ioctl that writes data through a pointer to the kernel.
Generate an ioctl request code for a command that passes no data.
Generate an ioctl request code for a command that reads.
Generate an ioctl request code for a command that reads and writes.
Generate an ioctl request code for a command that writes.
Traits
Common trait used to represent file system paths by many Nix functions.