| ... | @@ -1946,6 +1946,7 @@ pub fn connect(sockfd: fd_t, sock_addr: *const sockaddr, len: socklen_t) Connect | ... | @@ -1946,6 +1946,7 @@ pub fn connect(sockfd: fd_t, sock_addr: *const sockaddr, len: socklen_t) Connect |
| 1946 | ENOTSOCK => unreachable, // The file descriptor sockfd does not refer to a socket. | 1946 | ENOTSOCK => unreachable, // The file descriptor sockfd does not refer to a socket. |
| 1947 | EPROTOTYPE => unreachable, // The socket type does not support the requested communications protocol. | 1947 | EPROTOTYPE => unreachable, // The socket type does not support the requested communications protocol. |
| 1948 | ETIMEDOUT => return error.ConnectionTimedOut, | 1948 | ETIMEDOUT => return error.ConnectionTimedOut, |
| | 1949 | ENOENT => return error.FileNotFound, // Returned when socket is AF_UNIX and the given path does not exist. |
| 1949 | else => |err| return unexpectedErrno(err), | 1950 | else => |err| return unexpectedErrno(err), |
| 1950 | } | 1951 | } |
| 1951 | } | 1952 | } |