| ... | ... | @@ -1036,6 +1036,7 @@ pub const WriteError = error{ |
| 1036 | 1036 | FileTooBig, |
| 1037 | 1037 | InputOutput, |
| 1038 | 1038 | NoSpaceLeft, |
| 1039 | DeviceBusy, |
| 1039 | 1040 | |
| 1040 | 1041 | /// In WASI, this error may occur when the file descriptor does |
| 1041 | 1042 | /// not hold the required rights to write to it. |
| ... | ... | @@ -1134,6 +1135,7 @@ pub fn write(fd: fd_t, bytes: []const u8) WriteError!usize { |
| 1134 | 1135 | .PERM => return error.AccessDenied, |
| 1135 | 1136 | .PIPE => return error.BrokenPipe, |
| 1136 | 1137 | .CONNRESET => return error.ConnectionResetByPeer, |
| 1138 | .BUSY => return error.DeviceBusy, |
| 1137 | 1139 | else => |err| return unexpectedErrno(err), |
| 1138 | 1140 | } |
| 1139 | 1141 | } |
| ... | ... | @@ -1203,6 +1205,7 @@ pub fn writev(fd: fd_t, iov: []const iovec_const) WriteError!usize { |
| 1203 | 1205 | .PERM => return error.AccessDenied, |
| 1204 | 1206 | .PIPE => return error.BrokenPipe, |
| 1205 | 1207 | .CONNRESET => return error.ConnectionResetByPeer, |
| 1208 | .BUSY => return error.DeviceBusy, |
| 1206 | 1209 | else => |err| return unexpectedErrno(err), |
| 1207 | 1210 | } |
| 1208 | 1211 | } |
| ... | ... | @@ -1299,6 +1302,7 @@ pub fn pwrite(fd: fd_t, bytes: []const u8, offset: u64) PWriteError!usize { |
| 1299 | 1302 | .NXIO => return error.Unseekable, |
| 1300 | 1303 | .SPIPE => return error.Unseekable, |
| 1301 | 1304 | .OVERFLOW => return error.Unseekable, |
| 1305 | .BUSY => return error.DeviceBusy, |
| 1302 | 1306 | else => |err| return unexpectedErrno(err), |
| 1303 | 1307 | } |
| 1304 | 1308 | } |
| ... | ... | @@ -1388,6 +1392,7 @@ pub fn pwritev(fd: fd_t, iov: []const iovec_const, offset: u64) PWriteError!usiz |
| 1388 | 1392 | .NXIO => return error.Unseekable, |
| 1389 | 1393 | .SPIPE => return error.Unseekable, |
| 1390 | 1394 | .OVERFLOW => return error.Unseekable, |
| 1395 | .BUSY => return error.DeviceBusy, |
| 1391 | 1396 | else => |err| return unexpectedErrno(err), |
| 1392 | 1397 | } |
| 1393 | 1398 | } |