Expand description
Runtime interface for file descriptors.
Re-exports§
pub use crate::bindings::descriptor as RawFd;
pub use crate::bindings::name_entry as NameEntry;
Structs§
- FdFlags
- Flags for file descriptors.
- FdInfo
- Information about an open file descriptor.
- Socket
Address
Enums§
- FdKind
- Possible Fd Kinds
- Open
Anon Kind
Functions§
- twz_
rt_ fd_ close - Close a file descriptor. If the fd is already closed, or invalid, this function has no effect.
- twz_
rt_ fd_ copen - Open a file descriptor by name, as a C-string.
- twz_
rt_ fd_ dup - Duplicate a file descriptor.
- twz_
rt_ fd_ enumerate_ names - Enumerate sub-names for an fd (e.g. directory entries). Returns Some(n) on success, None if no names can be enumerated. Return of Some(n) indicates number of items read into the buffer, 0 if end of name list. Offset argument specifies number of entries to skip.
- twz_
rt_ fd_ get_ info - Get information about an open file descriptor. If the fd is invalid or closed, returns None.
- twz_
rt_ fd_ mkns - Make a new namespace
- twz_
rt_ fd_ open - Open a file descriptor by name, as a Rust-string.
- twz_
rt_ fd_ open_ pipe - Open an anonymous file descriptor.
- twz_
rt_ fd_ open_ socket_ bind - Open an anonymous file descriptor.
- twz_
rt_ fd_ open_ socket_ connect - Open an anonymous file descriptor.
- twz_
rt_ fd_ readlink - twz_
rt_ fd_ remove - Remove a name
- twz_
rt_ fd_ symlink - Make a new symlink
- twz_
rt_ fd_ sync - Sync a file descriptor.
- twz_
rt_ fd_ truncate - Truncate a file descriptor.