Expand description
Unix API crate
NOTE: The crate documentation is in the docs module.
Modules§
- Re-export of the libc crate with missing items added
- Module containing the crate documentation
Macros§
- Forwards its arguments to
format!and wraps the result in aUstring fn(<integer type>) -> Result<integer type>fn(<string literal>) -> &'static Ustr
Structs§
- Transparent wrapper that asserts that a type is
Packed - Transparent wrapper that asserts that a type is
Pod - Thin wrapper for a
[u8] - Wrapper for
*mut libc::DIR - Wrapper for
*const libc::dirent c_intnewtype which wrapsERRNOvalues- A borrowed file descriptor
- A wrapper for a partially initialized
iovec - An iterator over the initialized components of an
iovec - Wrapper for
libc::inotify_event - Rusty version of an immutable
c::msghdr - Rusty version of a mutable
c::msghdr - NlmsgWriterDeprecatedA writer for netlink messages
- An owned file descriptor
- Thin wrapper for a
[u8]that has a trailing nul byte - Wrapper for a
*const *const libc::c_charwith a terminating null pointer - Thin wrapper for a
Vec<u8>that has a trailing nul byte - Wrapper for
libc::utsname
Constants§
Traits§
- Used for cheap conversion from into
&Ustr - Trait for objects which can be turned into bytes
- Trait for objects which can be turned into
Cow<'a, Ustr> - A possibly uninitialized
iovec - A possibly uninitialized
iovec(mutable) - Extension for
MaybeUninit - NlmsgHeaderDeprecatedThe general shape of a header of a netlink message
- NlmsgHeaderExtDeprecatedExtension trait for netlink message headers
- Marker trait for types without padding
- Marker trait for Pod types
- Marker trait for socket address types
Readextensions
Functions§
- Returns the object representation of
t - Returns the mutable object representation of
t - Casts the argument to
MaybeUninitof the same type - Returns the object representation of
t - Returns the mutable object representation of
t - Returns the mutable object representation of
t - Casts the argument to
MaybeUninitof the same type - Asserts that
TisPacked - Asserts that
TisPod - Reads a cmsg from a buffer
- Returns the number of bytes needed to store a cmsg with data-length
data_len - Writes a cmsg to a buffer
- Returns an empty sig set
- Gets a pointer to the current thread’s errno
- Reads from an eventfd file descriptor
- Writes to an eventfd file descriptor
fcntl(2)with cmd =F_ADD_SEALSfcntl(2)with cmd =F_DUPFDfcntl(2)with cmd =F_DUPFD_CLOEXECfcntl(2)with cmd =F_GET_SEALSfcntl(2)with cmd =F_GETFDfcntl(2)with cmd =F_GETFLfcntl(2)with cmd =F_GETLKfcntl(2)with cmd =F_GETPIPE_SZfcntl(2)with cmd =F_OFD_GETLKfcntl(2)with cmd =F_OFD_SETLKfcntl(2)with cmd =F_OFD_SETLKWfcntl(2)with cmd =F_SETFDfcntl(2)with cmd =F_SETFLfcntl(2)with cmd =F_SETLKfcntl(2)with cmd =F_SETLKWfcntl(2)with cmd =F_SETPIPE_SZ- fork⚠
fsconfig(2)with cmd =FSCONFIG_CMD_CREATEfsconfig(2)with cmd =FSCONFIG_CMD_RECONFIGUREfsconfig(2)with cmd =FSCONFIG_SET_BINARYfsconfig(2)with cmd =FSCONFIG_SET_FDfsconfig(2)with cmd =FSCONFIG_SET_FLAGfsconfig(2)with cmd =FSCONFIG_SET_PATHfsconfig(2)with cmd =FSCONFIG_SET_PATH_EMPTYfsconfig(2)with cmd =FSCONFIG_SET_STRING- Gets the current thread’s errno
- Reads from an inotify file descriptor and returns an iterator over the results
- Returns
Option::<&mut [u8]>::None - Returns
Option::<&[u8]>::None - nlmsg_alignDeprecatedIncreases the size to the next multiple of 4
- nlmsg_readDeprecatedReads an object from an netlink message buffer
- Converts
uinto an iterator ofT - Converts
utoT - Converts an initial port of
utoT - Writes
utot - Returns an instance of
Twhose object representation is0in all non-padding bytes - Shortcut for
read_link_to_ustringwith a newUstring - Sets the current thread’s errno
signalfd(2)with fd !=-1signalfd(2)with fd =-1- Reads from a signalfd file descriptor and returns the elements read
- Returns
Option::<&mut c::sockaddr>::None - Returns
Option::<&c::sockaddr>::None