DoxigAlpha

SendfileError

Source

Implementation

#
pub const SendfileError = std.posix.UnexpectedError || error{
    /// `out_fd` is an unconnected socket, or out_fd closed its read end.
    BrokenPipe,
    /// Descriptor is not valid or locked, or an mmap(2)-like operation is not available for in_fd.
    UnsupportedOperation,
    /// Nonblocking I/O has been selected but the write would block.
    WouldBlock,
    /// Unspecified error while reading from in_fd.
    InputOutput,
    /// Insufficient kernel memory to read from in_fd.
    SystemResources,
    /// `offset` is not `null` but the input file is not seekable.
    Unseekable,
}