mirror of
https://codeberg.org/ziglang/zig.git
synced 2026-03-08 02:44:43 +01:00
std.Io.Threaded: consider EOPNOTSUPP to be programmer error in createFileMap()
Not doing so was hiding bugs (e.g. on s390x-linux).
This commit is contained in:
parent
c6538b70f5
commit
cbe38f771c
1 changed files with 1 additions and 0 deletions
|
|
@ -16796,6 +16796,7 @@ fn createFileMap(
|
|||
.OVERFLOW => return error.Unseekable,
|
||||
.BADF => return errnoBug(err), // Always a race condition.
|
||||
.INVAL => return errnoBug(err), // Invalid parameters to mmap()
|
||||
.OPNOTSUPP => return errnoBug(err), // Bad flags with MAP.SHARED_VALIDATE on Linux.
|
||||
else => return posix.unexpectedErrno(err),
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue