feature. See also
. The project being documented here (as the example) is the Zig library itself.
c.Flock
pub const Flock = switch (native_os)
File
Code
pub const Flock = switch (native_os) {
.linux => linux.Flock,
.emscripten => emscripten.Flock,
.openbsd, .dragonfly, .netbsd, .driverkit, .ios, .maccatalyst, .macos, .tvos, .visionos, .watchos => extern struct {
start: off_t,
len: off_t,
pid: pid_t,
type: i16,
whence: i16,
},
.freebsd => extern struct {
start: off_t,
len: off_t,
pid: pid_t,
type: i16,
whence: i16,
sysid: i32,
},
.illumos => extern struct {
type: c_short,
whence: c_short,
start: off_t,
len: off_t,
sysid: c_int,
pid: pid_t,
__pad: [4]c_long,
},
.haiku => extern struct {
type: i16,
whence: i16,
start: off_t,
len: off_t,
pid: pid_t,
},
.serenity => extern struct {
type: c_short,
whence: c_short,
start: off_t,
len: off_t,
pid: pid_t,
},
else => void,
}