feature. See also
. The project being documented here (as the example) is the Zig library itself.
c.sem_t
pub const sem_t = switch (native_os)
File
Code
pub const sem_t = switch (native_os) {
.linux, .emscripten => extern struct {
__size: [4 * @sizeOf(usize)]u8 align(@alignOf(usize)),
},
.driverkit, .ios, .maccatalyst, .macos, .tvos, .visionos, .watchos => c_int,
.freebsd => extern struct {
_magic: u32,
_kern: extern struct {
_count: u32,
_flags: u32,
},
_padding: u32,
},
.illumos => extern struct {
count: u32 = 0,
type: u16 = 0,
magic: u16 = 0x534d,
__pad1: [3]u64 = @splat(0),
__pad2: [2]u64 = @splat(0),
},
.openbsd, .netbsd, .dragonfly => ?*opaque {},
.haiku => extern struct {
type: i32,
u: extern union {
named_sem_id: i32,
unnamed_sem: i32,
},
padding: [2]i32,
},
.serenity => extern struct {
magic: u32,
value: u32,
flags: u8,
},
else => void,
}