std.posix: Fix errno 13 when writing to file

This commit is contained in:
Bryce Vandegrift 2025-01-18 14:21:12 -05:00 committed by Andrew Kelley
parent 160445ef31
commit e4d5706957

View File

@ -1269,6 +1269,7 @@ pub fn write(fd: fd_t, bytes: []const u8) WriteError!usize {
.FBIG => return error.FileTooBig,
.IO => return error.InputOutput,
.NOSPC => return error.NoSpaceLeft,
.ACCES => return error.AccessDenied,
.PERM => return error.AccessDenied,
.PIPE => return error.BrokenPipe,
.CONNRESET => return error.ConnectionResetByPeer,