sigprocmask(2)

DESCRIPTION

Blocks, unblocks, or replaces the signal mask.

SYNOPSIS

long sigprocmask(int how, uint32_t set, uint32_t *old);

RETURN VALUE

  • Returns a non-negative result on success. Negative values are ABI errno codes.

ERRORS

  • -EFAULT
    • The old mask pointer is not writable userspace memory.
  • -EINVAL
    • The operation is not BLOCK, UNBLOCK, or SETMASK.
  • -ESRCH
    • There is no current process.

ABI

Arguments enter through the direct syscall ABI; validation is performed before entering the process subsystem.