feature. See also
. The project being documented here (as the example) is the Zig library itself.
c._SC
pub const _SC = if (builtin.abi.isAndroid()) enum(c_int)
File
Code
pub const _SC = if (builtin.abi.isAndroid()) enum(c_int) {
PAGESIZE = 39,
NPROCESSORS_ONLN = 97,
} else switch (native_os) {
.driverkit, .ios, .maccatalyst, .macos, .tvos, .visionos, .watchos => enum(c_int) {
PAGESIZE = 29,
},
.dragonfly => enum(c_int) {
PAGESIZE = 47,
},
.freebsd => enum(c_int) {
PAGESIZE = 47,
},
.fuchsia => enum(c_int) {
PAGESIZE = 30,
},
.haiku => enum(c_int) {
PAGESIZE = 27,
},
.linux => enum(c_int) {
PAGESIZE = 30,
},
.netbsd => enum(c_int) {
PAGESIZE = 28,
},
.openbsd => enum(c_int) {
PAGESIZE = 28,
},
.illumos => enum(c_int) {
PAGESIZE = 11,
NPROCESSORS_ONLN = 15,
SIGRT_MIN = 40,
SIGRT_MAX = 41,
},
.serenity => enum(c_int) {
MONOTONIC_CLOCK = 0,
NPROCESSORS_CONF = 1,
NPROCESSORS_ONLN = 2,
OPEN_MAX = 3,
HOST_NAME_MAX = 4,
TTY_NAME_MAX = 5,
PAGESIZE = 6,
GETPW_R_SIZE_MAX = 7,
GETGR_R_SIZE_MAX = 8,
CLK_TCK = 9,
SYMLOOP_MAX = 10,
MAPPED_FILES = 11,
ARG_MAX = 12,
IOV_MAX = 13,
PHYS_PAGES = 14,
},
else => void,
}