sys_rt_sigprocmask

Function sys_rt_sigprocmask 

Source
pub fn sys_rt_sigprocmask(
    _locked: &mut Locked<Unlocked>,
    current_task: &CurrentTask,
    how: u32,
    user_set: UserRef<SigSet>,
    user_old_set: UserRef<SigSet>,
    sigset_size: usize,
) -> Result<(), Errno>
Expand description

The rt_sigprocmask syscall is used to fetch and/or change the signal mask of the calling thread.

§Args

  • how: Specifies how the signal mask should be changed. Can be SIG_BLOCK, SIG_UNBLOCK, or SIG_SETMASK.
  • user_set: A pointer to a signal set. The interpretation of this set depends on how.
  • user_old_set: If not null, the previous signal mask is stored here.
  • sigset_size: The size of the signal set, in bytes.

§Returns

Ok(()) on success. Otherwise, returns an Errno with the error code.