pub const SetLengthError = error 76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91pub const SetLengthError = error{
/// Changing the mapping length could not be done atomically. Caller must
/// use `destroy` and `create` to resize the mapping.
OperationUnsupported,
/// One of the following:
/// * The `File.Kind` is not `file`.
/// * The file is not open for reading and read access protections enabled.
/// * The file is not open for writing and write access protections enabled.
AccessDenied,
/// The `prot` argument asks for `PROT_EXEC` but the mapped area belongs to a file on
/// a filesystem that was mounted no-exec.
PermissionDenied,
LockedMemoryLimitExceeded,
ProcessFdQuotaExceeded,
SystemFdQuotaExceeded,
} || Allocator.Error || File.SetLengthError