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

Method insert

src/kernel_sigset.rs:61–66  ·  view source on GitHub ↗

Insert a signal.

(&mut self, sig: Signal)

Source from the content-addressed store, hash-verified

59
60 /// Insert a signal.
61 pub fn insert(&mut self, sig: Signal) {
62 let sigs_per_elt = core::mem::size_of_val(&self.0.sig[0]) * 8;
63
64 let raw = (sig.as_raw().wrapping_sub(1)) as usize;
65 self.0.sig[raw / sigs_per_elt] |= 1 << (raw % sigs_per_elt);
66 }
67
68 /// Insert all signals.
69 pub fn insert_all(&mut self) {

Callers 7

test_ops_plainFunction · 0.80
test_clearFunction · 0.80
test_termios_modesFunction · 0.80
read_entriesFunction · 0.80
read_raw_entriesFunction · 0.80
serverFunction · 0.80

Calls 1

as_rawMethod · 0.45

Tested by 4

test_ops_plainFunction · 0.64
test_clearFunction · 0.64
test_termios_modesFunction · 0.64