Module file

Source
Expand description

Types for, and operations on file descriptors. Useful for mapping

Modules§

memory
Provides physical in-memory file descriptors.

Structs§

ManagedFD
UnmanagedFD
Represents a RawFd but does not provide any ownership of it.

Constants§

STDERR_FILENO
Raw file-descriptor for standard error
STDIN_FILENO
Raw file-descriptor for standard input
STDOUT_FILENO
Raw file-descriptor for standard output

Functions§

try_map_or_cloned
Attempt to map a file, if it fails, copy that file into memory and map that.