zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit ef8db03d52e4eeeafa0cc4697703bd711ffda6c3 (tree)
parent 97ecb6c551eb628e5a37d18d5a9720d3714a04ef
Author: jaune <jaunelacouleur@gmail.com>
Date:   Sun,  6 Jul 2025 23:10:51 +0800

std.posix.accept: add WSAENOTSOCK

Diffstat:
Mlib/std/posix.zig | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git 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,