libc/new/glibc/sysdeps/unix/linux/bits/
sigaction.rs1use crate::prelude::*;
4
5s! {
6 #[allow(unpredictable_function_pointer_comparisons)]
8 pub struct sigaction {
9 pub sa_sigaction: crate::sighandler_t,
10 pub sa_mask: crate::sigset_t,
11 pub sa_flags: c_int,
12 #[cfg(any(target_arch = "riscv32", target_arch = "riscv64"))]
15 pub sa_restorer: Option<unsafe extern "C" fn()>,
16 #[cfg(not(any(target_arch = "riscv32", target_arch = "riscv64")))]
17 pub sa_restorer: Option<extern "C" fn()>,
18 }
19}
20
21pub const SA_NOCLDSTOP: c_int = 0x00000001;
22pub const SA_NOCLDWAIT: c_int = 0x00000002;
23pub const SA_SIGINFO: c_int = 0x00000004;
24pub const SA_ONSTACK: c_int = 0x08000000;
25pub const SA_RESTART: c_int = 0x10000000;
26pub const SA_NODEFER: c_int = 0x40000000;
27pub const SA_RESETHAND: c_int = u32_cast_int(0x80000000);
28
29pub const SIG_BLOCK: c_int = 0;
30pub const SIG_UNBLOCK: c_int = 1;
31pub const SIG_SETMASK: c_int = 2;