mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 13:54:21 +00:00
Merge f9af245b34 into 53e615b920
This commit is contained in:
commit
d63313f674
1 changed files with 1 additions and 3 deletions
|
|
@ -3433,7 +3433,6 @@ pub fn accept(
|
||||||
.BADF => unreachable, // always a race condition
|
.BADF => unreachable, // always a race condition
|
||||||
.CONNABORTED => return error.ConnectionAborted,
|
.CONNABORTED => return error.ConnectionAborted,
|
||||||
.FAULT => unreachable,
|
.FAULT => unreachable,
|
||||||
.INVAL => return error.SocketNotListening,
|
|
||||||
.NOTSOCK => unreachable,
|
.NOTSOCK => unreachable,
|
||||||
.MFILE => return error.ProcessFdQuotaExceeded,
|
.MFILE => return error.ProcessFdQuotaExceeded,
|
||||||
.NFILE => return error.SystemFdQuotaExceeded,
|
.NFILE => return error.SystemFdQuotaExceeded,
|
||||||
|
|
@ -3767,7 +3766,6 @@ pub fn getsockoptError(sockfd: fd_t) ConnectError!void {
|
||||||
.SUCCESS => return,
|
.SUCCESS => return,
|
||||||
.ACCES => return error.AccessDenied,
|
.ACCES => return error.AccessDenied,
|
||||||
.PERM => return error.PermissionDenied,
|
.PERM => return error.PermissionDenied,
|
||||||
.ADDRINUSE => return error.AddressInUse,
|
|
||||||
.ADDRNOTAVAIL => return error.AddressUnavailable,
|
.ADDRNOTAVAIL => return error.AddressUnavailable,
|
||||||
.AFNOSUPPORT => return error.AddressFamilyUnsupported,
|
.AFNOSUPPORT => return error.AddressFamilyUnsupported,
|
||||||
.AGAIN => return error.SystemResources,
|
.AGAIN => return error.SystemResources,
|
||||||
|
|
@ -3775,7 +3773,7 @@ pub fn getsockoptError(sockfd: fd_t) ConnectError!void {
|
||||||
.BADF => unreachable, // sockfd is not a valid open file descriptor.
|
.BADF => unreachable, // sockfd is not a valid open file descriptor.
|
||||||
.CONNREFUSED => return error.ConnectionRefused,
|
.CONNREFUSED => return error.ConnectionRefused,
|
||||||
.FAULT => unreachable, // The socket structure address is outside the user's address space.
|
.FAULT => unreachable, // The socket structure address is outside the user's address space.
|
||||||
.ISCONN => return error.AlreadyConnected, // The socket is already connected.
|
.ISCONN => @panic("AlreadyConnected"), // The socket is already connected.
|
||||||
.HOSTUNREACH => return error.NetworkUnreachable,
|
.HOSTUNREACH => return error.NetworkUnreachable,
|
||||||
.NETUNREACH => return error.NetworkUnreachable,
|
.NETUNREACH => return error.NetworkUnreachable,
|
||||||
.NOTSOCK => unreachable, // The file descriptor sockfd does not refer to a socket.
|
.NOTSOCK => unreachable, // The file descriptor sockfd does not refer to a socket.
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue