std.posix.accept: add WSAENOTSOCK
This commit is contained in:
committed by
Alex Rønne Petersen
parent
97ecb6c551
commit
ef8db03d52
@@ -3936,6 +3936,7 @@ pub fn accept(
|
||||
.WSANOTINITIALISED => unreachable, // not initialized WSA
|
||||
.WSAECONNRESET => return error.ConnectionResetByPeer,
|
||||
.WSAEFAULT => unreachable,
|
||||
.WSAENOTSOCK => return error.FileDescriptorNotASocket,
|
||||
.WSAEINVAL => return error.SocketNotListening,
|
||||
.WSAEMFILE => return error.ProcessFdQuotaExceeded,
|
||||
.WSAENETDOWN => return error.NetworkSubsystemFailed,
|
||||
|
||||
Reference in New Issue
Block a user