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 › MSF
MSF
c.MSF
pub const MSF = switch (native_os )
File
Code
pub const MSF = switch (native_os ) {
.linux => linux .MSF ,
.emscripten => emscripten .MSF ,
.driverkit , .ios , .maccatalyst , .macos , .tvos , .visionos , .watchos => struct {
pub const ASYNC = 0x1 ;
pub const INVALIDATE = 0x2 ;
pub const KILLPAGES = 0x4 ;
pub const DEACTIVATE = 0x8 ;
pub const SYNC = 0x10 ;
},
.freebsd , .dragonfly => struct {
pub const SYNC = 0 ;
pub const ASYNC = 1 ;
pub const INVALIDATE = 2 ;
},
.openbsd , .haiku => struct {
pub const ASYNC = 1 ;
pub const SYNC = 2 ;
pub const INVALIDATE = 4 ;
},
.netbsd , .illumos => struct {
pub const ASYNC = 1 ;
pub const INVALIDATE = 2 ;
pub const SYNC = 4 ;
},
.serenity => struct {
pub const SYNC = 1 ;
pub const ASYNC = 2 ;
pub const INVALIDATE = 4 ;
},
else => void ,
}