File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -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
}
Original file line number Diff line number Diff line change @@ -202,6 +202,7 @@ const FmtError = error{
202
202
DestinationAddressRequired ,
203
203
DiskQuota ,
204
204
FileTooBig ,
205
+ MessageTooBig ,
205
206
InputOutput ,
206
207
NoSpaceLeft ,
207
208
AccessDenied ,
You can’t perform that action at this time.
0 commit comments