Create a new `KernelSigSet` with all signals set. This includes signals which are typically reserved for libc.
()
| 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) { |