authorgravatar for bryce@brycevandegrift.xyzBryce Vandegrift <bryce@brycevandegrift.xyz> 2025-01-18 14:21:12-05:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2025-01-20 21:07:49-08:00
loge4d570695777af643e375343a904a024250de98d
tree8319eab1d30da713e5b16bf0ea52cafb164afec2
parent160445ef316f76dfddfa17b11c4919a3e14f486d

std.posix: Fix errno 13 when writing to file


1 files changed, 1 insertions(+), 0 deletions(-)

lib/std/posix.zig+1
...@@ -1269,6 +1269,7 @@ pub fn write(fd: fd_t, bytes: []const u8) WriteError!usize {...@@ -1269,6 +1269,7 @@ pub fn write(fd: fd_t, bytes: []const u8) WriteError!usize {
1269 .FBIG => return error.FileTooBig,1269 .FBIG => return error.FileTooBig,
1270 .IO => return error.InputOutput,1270 .IO => return error.InputOutput,
1271 .NOSPC => return error.NoSpaceLeft,1271 .NOSPC => return error.NoSpaceLeft,
1272 .ACCES => return error.AccessDenied,
1272 .PERM => return error.AccessDenied,1273 .PERM => return error.AccessDenied,
1273 .PIPE => return error.BrokenPipe,1274 .PIPE => return error.BrokenPipe,
1274 .CONNRESET => return error.ConnectionResetByPeer,1275 .CONNRESET => return error.ConnectionResetByPeer,