Skip to content

Commit ef8db03

Browse files
jaunealexrp
authored andcommitted
std.posix.accept: add WSAENOTSOCK
1 parent 97ecb6c commit ef8db03

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/std/posix.zig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3936,6 +3936,7 @@ pub fn accept(
39363936
.WSANOTINITIALISED => unreachable, // not initialized WSA
39373937
.WSAECONNRESET => return error.ConnectionResetByPeer,
39383938
.WSAEFAULT => unreachable,
3939+
.WSAENOTSOCK => return error.FileDescriptorNotASocket,
39393940
.WSAEINVAL => return error.SocketNotListening,
39403941
.WSAEMFILE => return error.ProcessFdQuotaExceeded,
39413942
.WSAENETDOWN => return error.NetworkSubsystemFailed,

0 commit comments

Comments
 (0)