]> git.ipfire.org Git - thirdparty/man-pages.git/blame - man2/sigpending.2
Added a GLIBC NOTES section describing sigisemptyset(),
[thirdparty/man-pages.git] / man2 / sigpending.2
CommitLineData
bfac9793
MK
1.\" Copyright (c) 2005 Michael Kerrisk
2.\" based on earlier work by faith@cs.unc.edu and
3.\" Mike Battersby <mib@deakin.edu.au>
4.\"
5.\" Permission is granted to make and distribute verbatim copies of this
6.\" manual provided the copyright notice and this permission notice are
7.\" preserved on all copies.
8.\"
9.\" Permission is granted to copy and distribute modified versions of this
10.\" manual under the conditions for verbatim copying, provided that the
11.\" entire resulting derived work is distributed under the terms of a
12.\" permission notice identical to this one.
13.\"
14.\" Since the Linux kernel and libraries are constantly changing, this
15.\" manual page may be incorrect or out-of-date. The author(s) assume no
16.\" responsibility for errors or omissions, or for damages resulting from
17.\" the use of the information contained herein. The author(s) may not
18.\" have taken the same level of care in the production of this manual,
19.\" which is licensed free of charge, as they might when working
20.\" professionally.
21.\"
22.\" Formatted or processed versions of this manual, if unaccompanied by
23.\" the source, must acknowledge the copyright and authors of this work.
24.\"
25.\" 2005-09-15, mtk, Created new page by splitting off from sigaction.2
26.\"
27.TH SIGPENDING 2 2005-09-15 "Linux 2.6.13" "Linux Programmer's Manual"
28.SH NAME
29sigpending \- examine pending signals
30.SH SYNOPSIS
31.B #include <signal.h>
32.sp
33.BI "int sigpending(sigset_t *" set );
34.SH DESCRIPTION
35.PP
36.BR sigpending ()
37returns the set of signals that are pending for delivery to the calling
38thread (i.e., the signals which have been raised while blocked).
39The mask of pending signals is returned in
40.IR set .
41.SH "RETURN VALUE"
42.BR sigpending ()
43returns 0 on success and \-1 on error.
44.SH ERRORS
45.TP
46.B EFAULT
47.IR set
48points to memory which is not a valid part of the process address space.
49.SH NOTES
50.BR sigsetops (3)
51for details on manipulating signal sets.
52.SH "CONFORMING TO"
53POSIX.1-2001.
54.SH "SEE ALSO"
55.BR kill (2),
56.BR sigaction (2),
57.BR signal (2),
58.BR sigprocmask (2),
59.BR sigsuspend (2),
60.BR sigsetops (3),
61.BR signal (7)