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 library itself.
Zig › std/ › c.zig › SA
SA
c.SA
pub const SA = switch (native_os )
File
Code
pub const SA = switch (native_os ) {
.linux => linux .SA ,
.emscripten => emscripten .SA ,
.driverkit , .ios , .maccatalyst , .macos , .tvos , .visionos , .watchos => struct {
pub const ONSTACK = 0x0001 ;
pub const RESTART = 0x0002 ;
pub const RESETHAND = 0x0004 ;
pub const NOCLDSTOP = 0x0008 ;
pub const NODEFER = 0x0010 ;
pub const NOCLDWAIT = 0x0020 ;
pub const SIGINFO = 0x0040 ;
pub const USERTRAMP = 0x0100 ;
pub const @"64REGSET" = 0x0200 ;
},
.freebsd => struct {
pub const ONSTACK = 0x0001 ;
pub const RESTART = 0x0002 ;
pub const RESETHAND = 0x0004 ;
pub const NOCLDSTOP = 0x0008 ;
pub const NODEFER = 0x0010 ;
pub const NOCLDWAIT = 0x0020 ;
pub const SIGINFO = 0x0040 ;
},
.illumos => struct {
pub const ONSTACK = 0x00000001 ;
pub const RESETHAND = 0x00000002 ;
pub const RESTART = 0x00000004 ;
pub const SIGINFO = 0x00000008 ;
pub const NODEFER = 0x00000010 ;
pub const NOCLDWAIT = 0x00010000 ;
},
.netbsd => struct {
pub const ONSTACK = 0x0001 ;
pub const RESTART = 0x0002 ;
pub const RESETHAND = 0x0004 ;
pub const NOCLDSTOP = 0x0008 ;
pub const NODEFER = 0x0010 ;
pub const NOCLDWAIT = 0x0020 ;
pub const SIGINFO = 0x0040 ;
},
.dragonfly => struct {
pub const ONSTACK = 0x0001 ;
pub const RESTART = 0x0002 ;
pub const RESETHAND = 0x0004 ;
pub const NODEFER = 0x0010 ;
pub const NOCLDWAIT = 0x0020 ;
pub const SIGINFO = 0x0040 ;
},
.haiku => struct {
pub const NOCLDSTOP = 0x01 ;
pub const NOCLDWAIT = 0x02 ;
pub const RESETHAND = 0x04 ;
pub const NODEFER = 0x08 ;
pub const RESTART = 0x10 ;
pub const ONSTACK = 0x20 ;
pub const SIGINFO = 0x40 ;
pub const NOMASK = NODEFER ;
pub const STACK = ONSTACK ;
pub const ONESHOT = RESETHAND ;
},
.openbsd => struct {
pub const ONSTACK = 0x0001 ;
pub const RESTART = 0x0002 ;
pub const RESETHAND = 0x0004 ;
pub const NOCLDSTOP = 0x0008 ;
pub const NODEFER = 0x0010 ;
pub const NOCLDWAIT = 0x0020 ;
pub const SIGINFO = 0x0040 ;
},
.serenity => struct {
pub const NOCLDSTOP = 1 ;
pub const NOCLDWAIT = 2 ;
pub const SIGINFO = 4 ;
pub const ONSTACK = 0x08000000 ;
pub const RESTART = 0x10000000 ;
pub const NODEFER = 0x40000000 ;
pub const RESETHAND = 0x80000000 ;
pub const NOMASK = NODEFER ;
pub const ONESHOT = RESETHAND ;
},
else => void ,
}