sigpending Subroutine
Purpose
Returns a set of signals that are blocked from delivery.
Library
Standard C Library (libc.a)
Syntax
#include <signal.h>
int sigpending ( Set)
sigset_t *Set;
sigset_t *Set;
Description
The sigpending subroutine stores a set of signals that are blocked from delivery and pending for the calling thread, in the space pointed to by the Set parameter.
Parameters
Item | Description |
---|---|
Set | Specifies the set of signals. |
Return Values
Upon successful completion, the sigpending subroutine returns a value of 0. Otherwise, a value of -1 is returned and the errno global variable is set to indicate the error.
Error Codes
The sigpending subroutine is unsuccessful if the following is true:
Item | Description |
---|---|
EINVAL | The input parameter is outside the user's address space. |