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 › sigrt_private
sigrt_private
c.sigrt_private
const sigrt_private = struct
File
Code
const sigrt_private = struct {
pub fn sigrtmin () u8 {
return switch (native_os ) {
.freebsd => 65 ,
.netbsd => 33 ,
.illumos => @truncate (sysconf (@backingInt (_SC .SIGRT_MIN ))),
.haiku => @truncate (@as (c_uint , @bitCast (private .__signal_get_sigrtmin ()))),
else => @truncate (@as (c_uint , @bitCast (private .__libc_current_sigrtmin ()))),
};
}
pub fn sigrtmax () u8 {
return switch (native_os ) {
.freebsd => 126 ,
.netbsd => 63 ,
.illumos => @truncate (sysconf (@backingInt (_SC .SIGRT_MAX ))),
.haiku => @truncate (@as (c_uint , @bitCast (private .__signal_get_sigrtmax ()))),
else => @truncate (@as (c_uint , @bitCast (private .__libc_current_sigrtmax ()))),
};
}
}