Commit ef8db03d52

jaune <jaunelacouleur@gmail.com>
2025-07-06 17:10:51
std.posix.accept: add WSAENOTSOCK
1 parent 97ecb6c
Changed files (1)
lib
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,