feature. See also
. The project being documented here (as the example) is the Zig library itself.
c._errno
pub const _errno = switch (native_os)
File
Code
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,
.serenity => private.__errno_location,
else => {},
}