| ... | @@ -5781,7 +5781,10 @@ pub fn sendmsg( | ... | @@ -5781,7 +5781,10 @@ pub fn sendmsg( |
| 5781 | } | 5781 | } |
| 5782 | } | 5782 | } |
| 5783 | | 5783 | |
| 5784 | pub const SendToError = SendMsgError; | 5784 | pub const SendToError = SendMsgError || error{ |
| | 5785 | /// The destination address is not reachable by the bound address. |
| | 5786 | UnreachableAddress, |
| | 5787 | }; |
| 5785 | | 5788 | |
| 5786 | /// Transmit a message to another socket. | 5789 | /// Transmit a message to another socket. |
| 5787 | /// | 5790 | /// |
| ... | @@ -5858,7 +5861,7 @@ pub fn sendto( | ... | @@ -5858,7 +5861,7 @@ pub fn sendto( |
| 5858 | .DESTADDRREQ => unreachable, // The socket is not connection-mode, and no peer address is set. | 5861 | .DESTADDRREQ => unreachable, // The socket is not connection-mode, and no peer address is set. |
| 5859 | .FAULT => unreachable, // An invalid user space address was specified for an argument. | 5862 | .FAULT => unreachable, // An invalid user space address was specified for an argument. |
| 5860 | .INTR => continue, | 5863 | .INTR => continue, |
| 5861 | .INVAL => unreachable, // Invalid argument passed. | 5864 | .INVAL => return error.UnreachableAddress, |
| 5862 | .ISCONN => unreachable, // connection-mode socket was connected already but a recipient was specified | 5865 | .ISCONN => unreachable, // connection-mode socket was connected already but a recipient was specified |
| 5863 | .MSGSIZE => return error.MessageTooBig, | 5866 | .MSGSIZE => return error.MessageTooBig, |
| 5864 | .NOBUFS => return error.SystemResources, | 5867 | .NOBUFS => return error.SystemResources, |