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

Method all

src/kernel_sigset.rs:46–51  ·  view source on GitHub ↗

Create a new `KernelSigSet` with all signals set. This includes signals which are typically reserved for libc.

()

Source from the content-addressed store, hash-verified

44 ///
45 /// This includes signals which are typically reserved for libc.
46 pub const fn all() -> Self {
47 const fn ones<const N: usize>() -> [c::c_ulong; N] {
48 [!0; N]
49 }
50 Self(kernel_sigset_t { sig: ones() })
51 }
52
53 /// Remove all signals.
54 pub fn clear(&mut self) {

Callers 1

extendMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected