Name Description Size
dir.rs List directory contents 8931
env.rs Environment variables 2187
errno.rs Safe wrappers around errno functions # Example ``` use nix::errno::Errno; Errno::EIO.set(); assert_eq!(Errno::last(), Errno::EIO); Errno::clear(); assert_eq!(Errno::last(), Errno::from_raw(0)); ``` 111478
fcntl.rs file control options 48829
features.rs Feature tests for OS functionality 3284
ifaddrs.rs Query network interface addresses Uses the Linux and/or BSD specific function `getifaddrs` to query the list of interfaces and their associated addresses. 7334
kmod.rs Load and unload kernel modules. For more details see 3952
lib.rs Rust friendly bindings to the various *nix system functions. Modules are structured according to the C header file that they would be defined in. # Features Nix uses the following Cargo features to enable optional functionality. They may be enabled in any combination. * `acct` - Process accounting * `aio` - POSIX AIO * `dir` - Stuff relating to directory iteration * `env` - Manipulate environment variables * `event` - Event-driven APIs, like `kqueue` and `epoll` * `fanotify` - Linux's `fanotify` filesystem events monitoring API * `feature` - Query characteristics of the OS at runtime * `fs` - File system functionality * `hostname` - Get and set the system's hostname * `inotify` - Linux's `inotify` file system notification API * `ioctl` - The `ioctl` syscall, and wrappers for many specific instances * `kmod` - Load and unload kernel modules * `mman` - Stuff relating to memory management * `mount` - Mount and unmount file systems * `mqueue` - POSIX message queues * `net` - Networking-related functionality * `personality` - Set the process execution domain * `poll` - APIs like `poll` and `select` * `process` - Stuff relating to running processes * `pthread` - POSIX threads * `ptrace` - Process tracing and debugging * `quota` - File system quotas * `reboot` - Reboot the system * `resource` - Process resource limits * `sched` - Manipulate process's scheduling * `socket` - Sockets, whether for networking or local use * `signal` - Send and receive signals to processes * `term` - Terminal control APIs * `time` - Query the operating system's clocks * `ucontext` - User thread context * `uio` - Vectored I/O * `user` - Stuff relating to users and groups * `zerocopy` - APIs like `sendfile` and `copy_file_range` 9688
macros.rs 8062
mount
mqueue.rs Posix Message Queue functions # Example 10984
net
poll.rs Wait for events to trigger on specific file descriptors 10037
poll_timeout.rs 7142
pty.rs Create master and slave virtual pseudo-terminals (PTYs) 11921
sched.rs Execution scheduling See Also [sched.h](https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/sched.h.html) 11214
sys
time.rs Sleep, query system clocks, and set system clock 11086
ucontext.rs 1268
unistd.rs Safe wrappers around functions found in libc "unistd.h" header 126659