sys_rt_sigtimedwait

Function sys_rt_sigtimedwait 

Source
pub fn sys_rt_sigtimedwait(
    locked: &mut Locked<Unlocked>,
    current_task: &mut CurrentTask,
    set_addr: UserRef<SigSet>,
    siginfo_addr: MultiArchUserRef<siginfo_t, siginfo_t>,
    timeout_addr: MultiArchUserRef<timespec, timespec>,
    sigset_size: usize,
) -> Result<Signal, Errno>
Expand description

The rt_sigtimedwait syscall waits for one of the signals in set_addr to become pending for the calling thread. The call will block until a signal is pending or the timeout expires.

§Args

  • set_addr: A pointer to a signal set specifying the signals to wait for.
  • siginfo_addr: If not null, a siginfo_t structure for the received signal is stored here.
  • timeout_addr: If not null, specifies a timeout for the wait.
  • sigset_size: The size of the signal set, in bytes.

§Returns

On success, returns Ok(Signal) containing the signal that was caught. On failure, returns an Errno.