import less(1)
[unleashed/tickless.git] / share / man / man2 / sigpending.2
blobb88dc785186c5f1361f522f19b228131e687f784
1 '\" te
2 .\"  Copyright 1989 AT&T  Copyright (c) 1997, Sun Microsystems, Inc.  All Rights Reserved
3 .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License").  You may not use this file except in compliance with the License.
4 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing.  See the License for the specific language governing permissions and limitations under the License.
5 .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE.  If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
6 .TH SIGPENDING 2 "Dec 28, 1996"
7 .SH NAME
8 sigpending \- examine signals that are blocked and pending
9 .SH SYNOPSIS
10 .LP
11 .nf
12 #include <signal.h>
14 \fBint\fR \fBsigpending\fR(\fBsigset_t *\fR\fIset\fR);
15 .fi
17 .SH DESCRIPTION
18 .sp
19 .LP
20 The \fBsigpending()\fR function retrieves those signals that have been sent to
21 the calling process but are being blocked from delivery by the calling
22 process's signal mask. The signals are stored in the space pointed to by the
23 \fIset\fR argument.
24 .SH RETURN VALUES
25 .sp
26 .LP
27 Upon successful completion, \fB0\fR is returned. Otherwise, \fB\(mi1\fR is
28 returned and \fBerrno\fR is set to indicate the error.
29 .SH ERRORS
30 .sp
31 .LP
32 The \fBsigpending()\fR function will fail if:
33 .sp
34 .ne 2
35 .na
36 \fB\fBEFAULT\fR\fR
37 .ad
38 .RS 10n
39 The \fIset\fR argument points to an illegal address.
40 .RE
42 .SH ATTRIBUTES
43 .sp
44 .LP
45 See \fBattributes\fR(5) for descriptions of the following attributes:
46 .sp
48 .sp
49 .TS
50 box;
51 c | c
52 l | l .
53 ATTRIBUTE TYPE  ATTRIBUTE VALUE
55 Interface Stability     Standard
57 MT-Level        Async-Signal-Safe
58 .TE
60 .SH SEE ALSO
61 .sp
62 .LP
63 \fBsigaction\fR(2), \fBsigprocmask\fR(2), \fBsigsetops\fR(3C),
64 \fBattributes\fR(5), \fBstandards\fR(5)