| ... | ... | @@ -6028,7 +6028,7 @@ pub fn sendfile( |
| 6028 | 6028 | .BADF => unreachable, // Always a race condition. |
| 6029 | 6029 | .FAULT => unreachable, // Segmentation fault. |
| 6030 | 6030 | .OVERFLOW => unreachable, // We avoid passing too large of a `count`. |
| 6031 | | .NOTCONN => unreachable, // `out_fd` is an unconnected socket. |
| 6031 | .NOTCONN => return error.BrokenPipe, // `out_fd` is an unconnected socket |
| 6032 | 6032 | |
| 6033 | 6033 | .INVAL, .NOSYS => { |
| 6034 | 6034 | // EINVAL could be any of the following situations: |
| ... | ... | @@ -6096,7 +6096,7 @@ pub fn sendfile( |
| 6096 | 6096 | |
| 6097 | 6097 | .BADF => unreachable, // Always a race condition. |
| 6098 | 6098 | .FAULT => unreachable, // Segmentation fault. |
| 6099 | | .NOTCONN => unreachable, // `out_fd` is an unconnected socket. |
| 6099 | .NOTCONN => return error.BrokenPipe, // `out_fd` is an unconnected socket |
| 6100 | 6100 | |
| 6101 | 6101 | .INVAL, .OPNOTSUPP, .NOTSOCK, .NOSYS => { |
| 6102 | 6102 | // EINVAL could be any of the following situations: |
| ... | ... | @@ -6178,7 +6178,7 @@ pub fn sendfile( |
| 6178 | 6178 | .BADF => unreachable, // Always a race condition. |
| 6179 | 6179 | .FAULT => unreachable, // Segmentation fault. |
| 6180 | 6180 | .INVAL => unreachable, |
| 6181 | | .NOTCONN => unreachable, // `out_fd` is an unconnected socket. |
| 6181 | .NOTCONN => return error.BrokenPipe, // `out_fd` is an unconnected socket |
| 6182 | 6182 | |
| 6183 | 6183 | .OPNOTSUPP, .NOTSOCK, .NOSYS => break :sf, |
| 6184 | 6184 | |
| ... | ... | @@ -6472,7 +6472,7 @@ pub fn recvfrom( |
| 6472 | 6472 | .BADF => unreachable, // always a race condition |
| 6473 | 6473 | .FAULT => unreachable, |
| 6474 | 6474 | .INVAL => unreachable, |
| 6475 | | .NOTCONN => unreachable, |
| 6475 | .NOTCONN => return error.SocketNotConnected, |
| 6476 | 6476 | .NOTSOCK => unreachable, |
| 6477 | 6477 | .INTR => continue, |
| 6478 | 6478 | .AGAIN => return error.WouldBlock, |