| ... | @@ -3999,6 +3999,7 @@ pub fn connect(sock: socket_t, sock_addr: *const sockaddr, len: socklen_t) Conne | ... | @@ -3999,6 +3999,7 @@ pub fn connect(sock: socket_t, sock_addr: *const sockaddr, len: socklen_t) Conne |
| 3999 | .PROTOTYPE => unreachable, // The socket type does not support the requested communications protocol. | 3999 | .PROTOTYPE => unreachable, // The socket type does not support the requested communications protocol. |
| 4000 | .TIMEDOUT => return error.ConnectionTimedOut, | 4000 | .TIMEDOUT => return error.ConnectionTimedOut, |
| 4001 | .NOENT => return error.FileNotFound, // Returned when socket is AF.UNIX and the given path does not exist. | 4001 | .NOENT => return error.FileNotFound, // Returned when socket is AF.UNIX and the given path does not exist. |
| | 4002 | .CONNABORTED => unreachable, // Tried to reuse socket that previously received error.ConnectionRefused. |
| 4002 | else => |err| return unexpectedErrno(err), | 4003 | else => |err| return unexpectedErrno(err), |
| 4003 | } | 4004 | } |
| 4004 | } | 4005 | } |