(
signal: Signal,
new: Option<KernelSigaction>,
)
| 148 | |
| 149 | #[inline] |
| 150 | pub(crate) unsafe fn kernel_sigaction( |
| 151 | signal: Signal, |
| 152 | new: Option<KernelSigaction>, |
| 153 | ) -> io::Result<KernelSigaction> { |
| 154 | let mut old = MaybeUninit::<KernelSigaction>::uninit(); |
| 155 | let new = opt_ref(new.as_ref()); |
| 156 | ret(syscall!( |
| 157 | __NR_rt_sigaction, |
| 158 | signal, |
| 159 | new, |
| 160 | &mut old, |
| 161 | size_of::<KernelSigSet, _>() |
| 162 | ))?; |
| 163 | Ok(old.assume_init()) |
| 164 | } |
| 165 | |
| 166 | #[inline] |
| 167 | pub(crate) unsafe fn kernel_sigaltstack(new: Option<Stack>) -> io::Result<Stack> { |
nothing calls this directly
no test coverage detected