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