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

Method remove

src/kernel_sigset.rs:74–79  ·  view source on GitHub ↗

Remove a signal.

(&mut self, sig: Signal)

Source from the content-addressed store, hash-verified

72
73 /// Remove a signal.
74 pub fn remove(&mut self, sig: Signal) {
75 let sigs_per_elt = core::mem::size_of_val(&self.0.sig[0]) * 8;
76
77 let raw = (sig.as_raw().wrapping_sub(1)) as usize;
78 self.0.sig[raw / sigs_per_elt] &= !(1 << (raw % sigs_per_elt));
79 }
80
81 /// Test whether a given signal is present.
82 pub fn contains(&self, sig: Signal) -> bool {

Callers 4

test_ops_plainFunction · 0.80
test_termios_modesFunction · 0.80
serverFunction · 0.80

Calls 1

as_rawMethod · 0.45

Tested by 3

test_ops_plainFunction · 0.64
test_termios_modesFunction · 0.64