# [−][src]Crate nix

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 extern crate libc;`

## Modules

dir |
errno |
fcntl |
features | Feature tests for OS functionality
ifaddrs | Query network interface addresses
kmod | Load and unload kernel modules.
mount |
mqueue | Posix Message Queue functions
net | Functionality involving network interfaces
poll | Wait for events to trigger on specific file descriptors
pty | Create master and slave virtual pseudo-terminals (PTYs)
sched |
sys |
ucontext |
unistd | Safe wrappers around functions found in libc "unistd.h" header

## Macros

cmsg_space | Create a buffer large enough for storing some control messages as returned by `recvmsg`.
ioctl_none | Generates a wrapper function for an ioctl that passes no data to the kernel.
ioctl_none_bad | Generates a wrapper function for a "bad" ioctl that passes no data to the kernel.
ioctl_read | Generates a wrapper function for an ioctl that reads data from the kernel.
ioctl_read_bad | Generates a wrapper function for a "bad" ioctl that reads data from the kernel.
ioctl_read_buf | Generates a wrapper function for an ioctl that reads an array of elements from the kernel.
ioctl_readwrite | Generates a wrapper function for an ioctl that reads and writes data to the kernel.
ioctl_readwrite_bad | Generates a wrapper function for a "bad" ioctl that reads and writes data to the kernel.
ioctl_readwrite_buf | Generates a wrapper function for an ioctl that reads and writes an array of elements to the kernel.
ioctl_write_buf | Generates a wrapper function for an ioctl that writes an array of elements to the kernel.
ioctl_write_int | Generates a wrapper function for a ioctl that writes an integer to the kernel.
ioctl_write_int_bad | Generates a wrapper function for a "bad" ioctl that writes an integer to the kernel.
ioctl_write_ptr | Generates a wrapper function for an ioctl that writes data through a pointer to the kernel.
ioctl_write_ptr_bad | Generates a wrapper function for a "bad" ioctl that writes data through a pointer to the kernel.
request_code_none | Generate an ioctl request code for a command that passes no data.
request_code_read | Generate an ioctl request code for a command that reads.
request_code_readwrite | Generate an ioctl request code for a command that reads and writes.
request_code_write | Generate an ioctl request code for a command that writes.

## Enums

Error | Nix Error Type

## Traits

NixPath |

## Type Definitions

Result | Nix Result Type

# Help

## Keyboard Shortcuts

`?`
  Show this help dialog
`S`
  Focus the search field
`↑`
  Move up in search results
`↓`
  Move down in search results
`↹`
  Switch tab
`⏎`
  Go to active search result
`+`
  Expand all sections
`-`
  Collapse all sections

## Search Tricks

Prefix searches with a type followed by a colon (e.g., `fn:`) to restrict the search to a given type.

Accepted types are: `fn`, `mod`, `struct`, `enum`, `trait`, `type`, `macro`, and `const`.

Search functions by type signature (e.g., `vec -> usize` or `* -> vec`)

Search multiple things at once by splitting your query with comma (e.g., `str,u8` or `String,struct:Vec,test`)