| ... | @@ -3447,6 +3447,9 @@ pub const BindError = error{ | ... | @@ -3447,6 +3447,9 @@ pub const BindError = error{ |
| 3447 | /// A nonexistent interface was requested or the requested address was not local. | 3447 | /// A nonexistent interface was requested or the requested address was not local. |
| 3448 | AddressNotAvailable, | 3448 | AddressNotAvailable, |
| 3449 | | 3449 | |
| | 3450 | /// The address is not valid for the address family of socket. |
| | 3451 | AddressFamilyNotSupported, |
| | 3452 | |
| 3450 | /// Too many symbolic links were encountered in resolving addr. | 3453 | /// Too many symbolic links were encountered in resolving addr. |
| 3451 | SymLinkLoop, | 3454 | SymLinkLoop, |
| 3452 | | 3455 | |
| ... | @@ -3502,6 +3505,7 @@ pub fn bind(sock: socket_t, addr: *const sockaddr, len: socklen_t) BindError!voi | ... | @@ -3502,6 +3505,7 @@ pub fn bind(sock: socket_t, addr: *const sockaddr, len: socklen_t) BindError!voi |
| 3502 | .BADF => unreachable, // always a race condition if this error is returned | 3505 | .BADF => unreachable, // always a race condition if this error is returned |
| 3503 | .INVAL => unreachable, // invalid parameters | 3506 | .INVAL => unreachable, // invalid parameters |
| 3504 | .NOTSOCK => unreachable, // invalid `sockfd` | 3507 | .NOTSOCK => unreachable, // invalid `sockfd` |
| | 3508 | .AFNOSUPPORT => return error.AddressFamilyNotSupported, |
| 3505 | .ADDRNOTAVAIL => return error.AddressNotAvailable, | 3509 | .ADDRNOTAVAIL => return error.AddressNotAvailable, |
| 3506 | .FAULT => unreachable, // invalid `addr` pointer | 3510 | .FAULT => unreachable, // invalid `addr` pointer |
| 3507 | .LOOP => return error.SymLinkLoop, | 3511 | .LOOP => return error.SymLinkLoop, |