Name Description Size
dir.rs List directory contents 10803
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)); ``` 126736
fcntl.rs File control options 56286
features.rs Feature tests for OS functionality 3341
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. 7335
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 * `syslog` - System logging * `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` 10482
macros.rs 8062
mount
mqueue.rs Posix Message Queue functions # Example 10995
net
poll.rs Wait for events to trigger on specific file descriptors 10884
poll_timeout.rs 7142
pty.rs Create master and slave virtual pseudo-terminals (PTYs) 12265
sched.rs Execution scheduling See Also [sched.h](https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/sched.h.html) 11370
spawn.rs Safe wrappers around posix_spawn* functions found in the libc "spawn.h" header. 15031
sys
syslog.rs Interfaces for controlling system log. 9125
time.rs Sleep, query system clocks, and set system clock 11146
ucontext.rs 1398
unistd.rs Safe wrappers around functions found in libc "unistd.h" header 136416