Module descriptor

Source

Macros§

AsRawDescriptor 🔒
FromRawDescriptor 🔒
IntoRawDescriptor 🔒

Constants§

INVALID_DESCRIPTOR

Functions§

clear_descriptor_cloexec
Clears CLOEXEC flag on descriptor
clone_descriptor
Clones descriptor, returning a new SafeDescriptor that refers to the same file descriptor. The cloned descriptor will have the FD_CLOEXEC flag set but will not share any other file descriptor flags with descriptor.
clone_fd 🔒
Clones fd, returning a new file descriptor that refers to the same open file as fd. The cloned fd will have the FD_CLOEXEC flag set but will not share any other file descriptor flags with fd.
modify_descriptor_flags 🔒
Apply the specified modification to the file descriptor’s flags.
set_descriptor_cloexec
Adds CLOEXEC flag on descriptor

Type Aliases§

RawDescriptor