sigpending()

Examine the set of pending, masked signals for a process

Synopsis:

#include <signal.h>

int sigpending( sigset_t *set );

Arguments:

set
A pointer to a sigset_t object that the function sets to indicate the pending, masked signals.

Library:

libc

Use the -l c option to qcc to link against this library. This library is usually included automatically.

Description:

The sigpending() function is used to examine the set of pending signals that are masked (blocked) from delivery to the calling thread and that are pending on the calling process or thread. They're saved in the signal set pointed to by set.

Returns:

0
Success.
-1
An error occurred (errno is set).

Errors:

EFAULT
A fault occurred while accessing the buffer pointed to by set.

Examples:

See sigprocmask().

Classification:

POSIX 1003.1

Safety:
Cancellation point No
Interrupt handler No
Signal handler Yes
Thread Yes

See also:

kill(), pthread_sigmask(), raise(), sigaction(), sigaddset(), sigdelset(), sigemptyset(), sigfillset(), sigismember(), signal(), sigprocmask()