diff --git a/lib/std/posix.zig b/lib/std/posix.zig index f99875437d81..71d7baa99948 100644 --- a/lib/std/posix.zig +++ b/lib/std/posix.zig @@ -1169,8 +1169,7 @@ pub const WriteError = error{ DeviceBusy, InvalidArgument, - /// In WASI, this error may occur when the file descriptor does - /// not hold the required rights to write to it. + /// File descriptor does not hold the required rights to write to it. AccessDenied, BrokenPipe, SystemResources, @@ -1269,6 +1268,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,