Module unix

Source

Re-exports§

pub use system_info::iov_max;
pub use system_info::number_of_logical_cores;
pub use system_info::pagesize;
pub use descriptor::*;

Modules§

descriptor
fcntl 🔒
file_flags 🔒
file_traits
FileReadWriteAtVolatile is implemented in terms of pread and pwrite. These are provided by platform-specific imports. On Linux they resolve to the 64-bit versions, while on MacOS the base versions are already 64-bit.
handle_eintr
Macro and helper trait for handling interrupted routines.
iobuf 🔒
net
sock_ctrl_msg 🔒
Used to send and receive messages with file descriptors on sockets that accept control messages (e.g. Unix domain sockets).
stream_channel 🔒
system_info
time 🔒
tube

Structs§

ScmSocket
Trait for file descriptors can send and receive socket control messages via sendmsg and recvmsg.
StreamChannel
An abstraction over named pipes and unix socketpairs. This abstraction can be used in a blocking and non blocking mode.

Enums§

BlockingMode
FileFlags
FramingMode

Constants§

SCM_MAX_FD
SCM_SOCKET_MAX_FD_COUNT
The maximum number of FDs that can be sent in a single send.

Traits§

AsIobuf
Trait for types that can be converted into an iovec that can be referenced by a syscall for the lifetime of this object.

Functions§

add_fd_flags
Performs a logical OR of the given flags with the FD’s flags, setting the given bits for the FD.
clear_fd_flags
Clears the given flags in the FD’s flags.
duration_to_timespec
Return a timespec filed with the specified Duration duration.

Type Aliases§

IoBuf
Cross platform binary compatible iovec. See crate::IoBufMut for documentation.
Pid
Process identifier.