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

Function kernel_sigprocmask

src/backend/linux_raw/runtime/syscalls.rs:180–194  ·  view source on GitHub ↗
(
    how: How,
    new: Option<&KernelSigSet>,
)

Source from the content-addressed store, hash-verified

178
179#[inline]
180pub(crate) unsafe fn kernel_sigprocmask(
181 how: How,
182 new: Option<&KernelSigSet>,
183) -> io::Result<KernelSigSet> {
184 let mut old = MaybeUninit::<KernelSigSet>::uninit();
185 let new = opt_ref(new);
186 ret(syscall!(
187 __NR_rt_sigprocmask,
188 how,
189 new,
190 &mut old,
191 size_of::<KernelSigSet, _>()
192 ))?;
193 Ok(old.assume_init())
194}
195
196#[inline]
197pub(crate) fn kernel_sigpending() -> KernelSigSet {

Callers

nothing calls this directly

Calls 3

opt_refFunction · 0.85
assume_initMethod · 0.80
retFunction · 0.50

Tested by

no test coverage detected