Zig 0.17.0-dev (Split by item) This is an example of documentation generated by
ZigDoc , an alternative to Zig's built-in
Auto Doc feature. See also
examples in other modes/formats . The project being documented here (as the example) is the Zig standard library.
std › c › SOMAXCONN Public Constant SOMAXCONN Doc Source Public Constant std.c.SOMAXCONN
pub const SOMAXCONN = switch (native_os ) File c.zig: 6909
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918
6919
6920
6921 pub const SOMAXCONN = switch (native_os ) {
.linux => linux .SOMAXCONN ,
.windows => ws2_32 .SOMAXCONN ,
// https://github.com/SerenityOS/serenity/blob/ac44ec5ebc707f9dd0c3d4759a1e17e91db5d74f/Kernel/API/POSIX/sys/socket.h#L128
.illumos , .serenity => 128 ,
// https://github.com/freebsd/freebsd-src/blob/9ab31f821ad1c6bad474510447387c50bef2c24c/sys/sys/socket.h#L434
// https://github.com/DragonFlyBSD/DragonFlyBSD/blob/fd3d1949d526ffa646e57037770acd6f2f3bb617/sys/sys/socket.h#L393
// https://github.com/NetBSD/src/blob/a673fb3f8487e974c669216064f7588207229fea/sys/sys/socket.h#L472
// https://github.com/openbsd/src/blob/8ba9cd88f10123fef7af805b8e5ccc2463ad8fa4/sys/sys/socket.h#L483
// https://github.com/apple/darwin-xnu/blob/2ff845c2e033bd0ff64b5b6aa6063a1f8f65aa32/bsd/sys/socket.h#L815
.freebsd , .dragonfly , .netbsd , .openbsd , .driverkit , .ios , .maccatalyst , .macos , .tvos , .visionos , .watchos => 128 ,
else => void ,
}