• Home
  • Raw
  • Download

Lines Matching refs:SigSet

407 pub struct SigSet {  struct
412 impl SigSet { implementation
413 pub fn all() -> SigSet { in all()
417 unsafe{ SigSet { sigset: sigset.assume_init() } } in all()
420 pub fn empty() -> SigSet { in empty()
424 unsafe{ SigSet { sigset: sigset.assume_init() } } in empty()
449 pub fn extend(&mut self, other: &SigSet) { in extend() argument
458 pub fn thread_get_mask() -> Result<SigSet> { in thread_get_mask()
461 Ok(unsafe{ SigSet{sigset: oldmask.assume_init()}}) in thread_get_mask()
480 pub fn thread_swap_mask(&self, how: SigmaskHow) -> Result<SigSet> { in thread_swap_mask() argument
483 Ok(unsafe{ SigSet{sigset: oldmask.assume_init()}}) in thread_swap_mask()
499 impl AsRef<libc::sigset_t> for SigSet { implementation
533 pub fn new(handler: SigHandler, flags: SaFlags, mask: SigSet) -> SigAction { in new()
575 pub fn mask(&self) -> SigSet { in mask() argument
576 SigSet { sigset: self.sigaction.sa_mask } in mask()
696 set: Option<&SigSet>, in do_pthread_sigmask() argument
730 set: Option<&SigSet>, in pthread_sigmask() argument
731 oldset: Option<&mut SigSet>) -> Result<()> in pthread_sigmask()
740 pub fn sigprocmask(how: SigmaskHow, set: Option<&SigSet>, oldset: Option<&mut SigSet>) -> Result<()… in sigprocmask() argument
922 let mut mask = SigSet::empty(); in test_contains()
928 let all = SigSet::all(); in test_contains()
935 let mut set = SigSet::all(); in test_clear()
960 let mut one_signal = SigSet::empty(); in test_extend()
963 let mut two_signals = SigSet::empty(); in test_extend()
975 let prev_mask = SigSet::thread_get_mask() in test_thread_signal_set_mask()
982 let new_mask = SigSet::thread_get_mask() in test_thread_signal_set_mask()
996 let mut mask = SigSet::empty(); in test_thread_signal_block()
1001 assert!(SigSet::thread_get_mask().unwrap().contains(SIGUSR1)); in test_thread_signal_block()
1009 let mut mask = SigSet::empty(); in test_thread_signal_unblock()
1014 assert!(!SigSet::thread_get_mask().unwrap().contains(SIGUSR1)); in test_thread_signal_unblock()
1022 let mut mask = SigSet::empty(); in test_thread_signal_swap()
1026 assert!(SigSet::thread_get_mask().unwrap().contains(SIGUSR1)); in test_thread_signal_swap()
1028 let mut mask2 = SigSet::empty(); in test_thread_signal_swap()
1037 assert!(SigSet::thread_get_mask().unwrap().contains(SIGUSR2)); in test_thread_signal_swap()
1054 let mut mask = SigSet::empty(); in test_sigaction()
1083 let mut mask = SigSet::empty(); in test_sigwait()