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 › _errno Public Constant _errno Doc Source Public Constant std.c._errno
pub const _errno = switch (native_os ) File c.zig: 7101
7101
7102
7103
7104
7105
7106
7107
7108
7109
7110
7111
7112
7113
7114
7115
7116 pub const _errno = switch (native_os ) {
.linux => switch (native_abi ) {
.android , .androideabi => private .__errno ,
else => private .__errno_location ,
},
.emscripten => private .__errno_location ,
.wasi , .dragonfly => private .errnoFromThreadLocal ,
.windows => private ._errno ,
.driverkit , .ios , .maccatalyst , .macos , .tvos , .visionos , .watchos , .freebsd => private .__error ,
.illumos => private .___errno ,
.openbsd , .netbsd => private .__errno ,
.haiku => haiku ._errnop ,
// https://github.com/SerenityOS/serenity/blob/a353ceecf13b6f156a078e32f1ddf1d21366934c/Userland/Libraries/LibC/errno.h#L33
.serenity => private .__errno_location ,
else => {},
}