'\"macro stdmacro
.if n .pH g2.sigpending @(#)sigpending	40.18 of 10/10/89
.\" Copyright 1989 AT&T
.nr X
.if \nX=0 .ds x} sigpending 2 "" "\&"
.if \nX=1 .ds x} sigpending 2 ""
.if \nX=2 .ds x} sigpending 2 "" "\&"
.if \nX=3 .ds x} sigpending "" "" "\&"
.TH \*(x}
.SH NAME
\f4sigpending\f1 \- examine signals that are blocked and pending
.SH SYNOPSIS
\f4#include <signal.h>\f1
.PP
\f4int sigpending(sigset_t *set);\f1
.SH DESCRIPTION
The \f4sigpending\fP 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 argument \f2set\fP.
.PP
\f4sigpending\fP fails if the following is true:
.TP 15
\f4EFAULT\fP
The \f2set\fP argument points outside the process's allocated address
space.
.SH SEE ALSO
\f4sigaction\fP(2), \f4sigprocmask\fP(2), \f4sigsetops\fP(3C).
.SH DIAGNOSTICS
.PP
On success, \f4sigpending\fP returns zero.
On failure, it returns \-1 and sets \f4errno\f1 to indicate the error.
.\"	@(#)sigpending	1 of 9/28/88
.Ee
