std.posix.accept: add WSAENOTSOCK

This commit is contained in:
jaune 2025-07-06 23:10:51 +08:00 committed by Alex Rønne Petersen
parent 97ecb6c551
commit ef8db03d52

View File

@ -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,