sigreturn(2)

DESCRIPTION

Restores a saved signal execution context.

SYNOPSIS

long sigreturn(const signal_context *context);

RETURN VALUE

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

ERRORS

  • -EFAULT
    • The saved context is outside userspace.
  • -EFAULT
    • The saved instruction pointer, stack pointer, or flags are invalid.

ABI

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