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.

k_sigaction

Kernel sigaction struct, as expected by the rt_sigaction syscall. Includes restorer on targets where userspace is responsible for hooking up rt_sigreturn.

linux.k_sigaction
pub const k_sigaction = switch (native_arch)

File

lib/std/os/linux.zig:6658

Code

pub const k_sigaction = switch (native_arch) {
    .mips, .mipsel, .mips64, .mips64el => extern struct {
        flags: c_uint,
        handler: k_sigaction_funcs.handler,
        mask: sigset_t,
    },
    .csky, .hexagon, .loongarch32, .loongarch64, .or1k, .riscv32, .riscv64 => extern struct {
        handler: k_sigaction_funcs.handler,
        flags: c_ulong,
        mask: sigset_t,
    },
    .alpha => extern struct {
        handler: k_sigaction_funcs.handler,
        mask: sigset_t,
        flags: c_int,
    },
    .xtensa, .xtensaeb => extern struct {
        handler: k_sigaction_funcs.handler,
        mask: sigset_t,
        flags: c_ulong,
        restorer: k_sigaction_funcs.restorer,
    },
    else => extern struct {
        handler: k_sigaction_funcs.handler,
        flags: c_ulong,
        restorer: k_sigaction_funcs.restorer,
        mask: sigset_t,
    },
}