SIGPENDING(2)                                                    SIGPENDING(2)


NAME
     sigpending - return set of signals pending for thread (POSIX)

SYNOPSIS
     #include <signal.h>

     int sigpending (sigset_t *maskptr);

DESCRIPTION
     sigpending returns the set of signals pending for the calling thread
     (i.e., blocked from delivery) in the space pointed to by maskptr.

     Routines described in sigsetops(3) are used to examine the returned
     signal set.

     sigpending will fail if:

     [EFAULT]       maskptr points to memory that is not a part of process's
                    valid address space.

SEE ALSO
     kill(2), sigaction(2), sigprocmask(2), sigsuspend(2), sigsetops(3).

DIAGNOSTICS
     A 0 value indicates that the call succeeded.  A -1 return value indicates
     an error occurred and errno is set to indicate the reason.

WARNING
     The POSIX and System V signal facilities have different semantics.  Using
     both facilities in the same program is strongly discouraged and will
     result in unpredictable behavior.


                                                                        Page 1