Expand description
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 accountingaio
- POSIX AIOdir
- Stuff relating to directory iterationenv
- Manipulate environment variablesevent
- Event-driven APIs, likekqueue
andepoll
feature
- Query characteristics of the OS at runtimefs
- File system functionalityhostname
- Get and set the system’s hostnameinotify
- Linux’sinotify
file system notification APIioctl
- Theioctl
syscall, and wrappers for my specific instanceskmod
- Load and unload kernel modulesmman
- Stuff relating to memory managementmount
- Mount and unmount file systemsmqueue
- POSIX message queuesnet
- Networking-related functionalitypersonality
- Set the process execution domainpoll
- APIs likepoll
andselect
process
- Stuff relating to running processespthread
- POSIX threadsptrace
- Process tracing and debuggingquota
- File system quotasreboot
- Reboot the systemresource
- Process resource limitssched
- Manipulate process’s schedulingsocket
- Sockets, whether for networking or local usesignal
- Send and receive signals to processesterm
- Terminal control APIstime
- Query the operating system’s clocksucontext
- User thread contextuio
- Vectored I/Ouser
- Stuff relating to users and groupszerocopy
- APIs likesendfile
andcopy_file_range
Re-exports
pub use libc;
Modules
dir
dir
List directory contents
env
env
Environment variables
features
feature
Feature tests for OS functionality
net
net
Functionality involving network interfaces
poll
poll
Wait for events to trigger on specific file descriptors
sched
sched
Execution scheduling
Mostly platform-specific functionality
time
time
Safe wrappers around functions found in libc “unistd.h” header
Macros
cmsg_space
socket
and uio
Create a buffer large enough for storing some control messages as returned
by
recvmsg
.Traits
Common trait used to represent file system paths by many Nix functions.