We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 160445e + 1110950 commit 744771dCopy full SHA for 744771d
lib/std/posix.zig
@@ -1169,8 +1169,7 @@ pub const WriteError = error{
1169
DeviceBusy,
1170
InvalidArgument,
1171
1172
- /// In WASI, this error may occur when the file descriptor does
1173
- /// not hold the required rights to write to it.
+ /// File descriptor does not hold the required rights to write to it.
1174
AccessDenied,
1175
BrokenPipe,
1176
SystemResources,
@@ -1269,6 +1268,7 @@ pub fn write(fd: fd_t, bytes: []const u8) WriteError!usize {
1269
1268
.FBIG => return error.FileTooBig,
1270
.IO => return error.InputOutput,
1271
.NOSPC => return error.NoSpaceLeft,
+ .ACCES => return error.AccessDenied,
1272
.PERM => return error.AccessDenied,
1273
.PIPE => return error.BrokenPipe,
1274
.CONNRESET => return error.ConnectionResetByPeer,
0 commit comments