.TH sigpending() "" "" "System Call (libc)"
.PC "Examine signals that are blocked and pending"
.B "#include <signal.h>"
\fBint sigpending(\fIstash\^\fB)\fR
\fBsigset_t *\fIstash\^\fB;
.PP
.B sigpending()
retrieves the signals that have been sent to the calling process
but have been blocked by the calling process's signal mask.
.I stash
points to the area of memory where the retrieved signals are to be stored.
.PP
.B sigpending()
returns zero if all goes well.
It returns \-1 and sets
.B errno
to
.B EFAULT
if
.I stash
points outside the process's allocated address space.
.SH "See Also"
.Xr "libc," libc
.Xr "sigaction()," sigaction
.Xr "signal()" signal
.R
.br
\*(PX Standard, \(sc3.3.6
