A common format for the Sigaction struct across a variety of Linux flavors.
const common_linux_Sigaction = extern struct
const common_linux_Sigaction = extern 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: c_uint,
restorer: ?*const fn () callconv(.c) void = null, // C library will fill this in
}