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 › SCM
SCM
c.SCM
pub const SCM = switch (native_os )
File
Code
pub const SCM = switch (native_os ) {
.linux , .emscripten => linux .SCM ,
.illumos => struct {
pub const RIGHTS = 0x1010 ;
pub const UCRED = 0x1012 ;
pub const TIMESTAMP = SO .TIMESTAMP ;
},
.haiku => struct {
pub const RIGHTS = 1 ;
},
.serenity => struct {
pub const TIMESTAMP = 0 ;
pub const RIGHTS = 1 ;
},
.freebsd => struct {
pub const RIGHTS = 1 ;
pub const TIMESTAMP = 2 ;
pub const CREDS = 3 ;
pub const BINTIME = 4 ;
pub const REALTIME = 5 ;
pub const MONOTONIC = 6 ;
pub const TIME_INFO = 7 ;
pub const CREDS2 = 8 ;
},
.dragonfly => struct {
pub const RIGHTS = 1 ;
pub const TIMESTAMP = 2 ;
pub const CREDS = 3 ;
},
.netbsd => struct {
pub const RIGHTS = 0x01 ;
pub const TIMESTAMP = 0x08 ;
pub const CREDS = 0x10 ;
},
.openbsd => struct {
pub const RIGHTS = 0x01 ;
pub const TIMESTAMP = 0x04 ;
},
.driverkit , .ios , .maccatalyst , .macos , .tvos , .visionos , .watchos => struct {
pub const RIGHTS = 1 ;
pub const TIMESTAMP = 2 ;
pub const CREDS = 3 ;
pub const TIMESTAMP_MONOTONIC = 4 ;
},
else => void ,
}