MCPcopy Create free account
hub / github.com/bytecodealliance/rustix / kernel_sigaction

Function kernel_sigaction

src/backend/linux_raw/runtime/syscalls.rs:150–164  ·  view source on GitHub ↗
(
    signal: Signal,
    new: Option<KernelSigaction>,
)

Source from the content-addressed store, hash-verified

148
149#[inline]
150pub(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]
167pub(crate) unsafe fn kernel_sigaltstack(new: Option<Stack>) -> io::Result<Stack> {

Callers

nothing calls this directly

Calls 4

opt_refFunction · 0.85
assume_initMethod · 0.80
retFunction · 0.50
as_refMethod · 0.45

Tested by

no test coverage detected