Go to main content

man pages section 2: System Calls

Exit Print View

Updated: Thursday, June 13, 2019
 
 

sigpending(2)

Name

sigpending - examine signals that are blocked and pending

Synopsis

#include <signal.h>

int sigpending(sigset_t *set);

Description

The sigpending() function retrieves those signals that have been sent to the calling process but are being blocked from delivery by the calling process's signal mask. The signals are stored in the space pointed to by the set argument.

Return Values

Upon successful completion, 0 is returned. Otherwise, −1 is returned and errno is set to indicate the error.

Errors

The sigpending() function will fail if:

EFAULT

The set argument points to an illegal address.

Attributes

See attributes(7) for descriptions of the following attributes:

ATTRIBUTE TYPE
ATTRIBUTE VALUE
Interface Stability
Committed
MT-Level
Async-Signal-Safe
Standard

See Also

sigaction(2), sigprocmask(2), sigsetops(3C), attributes(7), standards(7)