xref: /original-bsd/lib/libc/sys/sigpending.2 (revision 333da485)
1.\" Copyright (c) 1993
2.\"	The Regents of the University of California.  All rights reserved.
3.\"
4.\" This code is derived from software contributed to Berkeley by
5.\" Berkeley Software Design, Inc.
6.\"
7.\" %sccs.include.redist.roff%
8.\"
9.\"	@(#)sigpending.2	8.3 (Berkeley) 01/12/94
10.\"
11.Dd
12.Dt SIGPENDING 2
13.Os
14.Sh NAME
15.Nm sigpending
16.Nd get pending signals
17.Sh SYNOPSIS
18.Fd #include <signal.h>
19.Ft int
20.Fn sigpending "sigset_t *set"
21.Sh DESCRIPTION
22The
23.Nm sigpending
24function returns a mask of the signals pending for delivery
25to the calling process in the location indicated by
26.Fa set .
27Signals may be pending because they are currently masked,
28or transiently before delivery (although the latter case is not
29normally detectable).
30.Sh RETURN VALUES
31A 0 value indicated that the call succeeded.  A \-1 return value
32indicates an error occurred and
33.Va errno
34is set to indicated the reason.
35.Sh ERRORS
36The
37.Nm sigpending
38function does not currently detect any errors.
39.Sh SEE ALSO
40.Xr sigaction 2 ,
41.Xr sigprocmask 2
42.Sh STANDARDS
43The
44.Nm sigpending
45function is defined by
46.St -p1003.1-88 .
47