| ... | ... | @@ -1198,6 +1198,10 @@ pub const WriteError = error{ |
| 1198 | 1198 | /// This error occurs when a device gets disconnected before or mid-flush |
| 1199 | 1199 | /// while it's being written to - errno(6): No such device or address. |
| 1200 | 1200 | NoDevice, |
| 1201 | |
| 1202 | /// The socket type requires that message be sent atomically, and the size of the message |
| 1203 | /// to be sent made this impossible. The message is not transmitted. |
| 1204 | MessageTooBig, |
| 1201 | 1205 | } || UnexpectedError; |
| 1202 | 1206 | |
| 1203 | 1207 | /// Write to a file descriptor. |
| ... | ... | @@ -1279,6 +1283,7 @@ pub fn write(fd: fd_t, bytes: []const u8) WriteError!usize { |
| 1279 | 1283 | .CONNRESET => return error.ConnectionResetByPeer, |
| 1280 | 1284 | .BUSY => return error.DeviceBusy, |
| 1281 | 1285 | .NXIO => return error.NoDevice, |
| 1286 | .MSGSIZE => return error.MessageTooBig, |
| 1282 | 1287 | else => |err| return unexpectedErrno(err), |
| 1283 | 1288 | } |
| 1284 | 1289 | } |