From ef8db03d52e4eeeafa0cc4697703bd711ffda6c3 Mon Sep 17 00:00:00 2001 From: jaune Date: Sun, 6 Jul 2025 23:10:51 +0800 Subject: [PATCH] std.posix.accept: add WSAENOTSOCK --- lib/std/posix.zig | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/std/posix.zig b/lib/std/posix.zig index 9fb55db0c8..ae638226a1 100644 --- a/lib/std/posix.zig +++ b/lib/std/posix.zig @@ -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,