struct Sigaction [src]
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,
else => c_ulong,
}
Members
- handler_fn (Type)
- sigaction_fn (Type)
Source
pub const Sigaction = struct {
pub const handler_fn = *align(1) const fn (i32) callconv(.c) void;
pub const sigaction_fn = *const fn (i32, *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,
else => c_ulong,
},
}