Zig 0.17.0-dev (Split by item)

Shortcut keys
?
Show these tips
S
Focus search field
Esc
Clear focus & close tips
U
Jump to source code
↑
Move up in search results
↓
Move down in search results
↵
Go to active search result
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 standard library. Public Struct

Sigaction

Public Struct
std.os.linux.Sigaction
pub const Sigaction = struct

Kernel Sigaction wrapper for the actual ABI k_sigaction. The Zig linux.zig wrapper library still does some pre-processing on sigaction() calls (to add the restorer field).

Renamed from sigaction to Sigaction to avoid conflict with the syscall.

Fields

handler: extern union { handler: ?handler_fn, sigaction: ?sigaction_fn, }
mask: sigset_t
flags: switch (native_arch) { .mips, .mipsel, .mips64, .mips64el => c_uint, .alpha => c_int, else => c_ulong, }

Values

File

os/linux.zig:6736
6736
6737
6738
6739
6740
6741
6742
6743
6744
6745
6746
6747
6748
6749
6750
pub const Sigaction = struct {
    pub const handler_fn = *align(1) const fn (SIG) callconv(.c) void;
    pub const sigaction_fn = *const fn (SIG, *const siginfo_t, ?*anyopaque) callconv(.c) void;

    handler: extern union {
        handler: ?handler_fn,
        sigaction: ?sigaction_fn,
    },
    mask: sigset_t,
    flags: switch (native_arch) {
        .mips, .mipsel, .mips64, .mips64el => c_uint,
        .alpha => c_int,
        else => c_ulong,
    },
}