source: trunk/minix/man/man3/sigset.3@ 12

Last change on this file since 12 was 9, checked in by Mattia Monga, 14 years ago

Minix 3.1.2a

File size: 1.8 KB
RevLine 
[9]1.TH SIGSET 3
2.SH NAME
3sigset, sigaddset, sigdelset, sigemptyset, sigfillset, sigismember \- manipulate signal sets
4.SH SYNOPSIS
5.ft B
6#include <signal.h>
7
8.nf
9int sigaddset(sigset_t *\fIset\fP, int \fIsig\fP)
10int sigdelset(sigset_t *\fIset\fP, int \fIsig\fP)
11int sigemptyset(sigset_t *\fIset\fP)
12int sigfillset(sigset_t *\fIset\fP)
13int sigismember(const sigset_t *\fIset\fP, int \fIsig\fP)
14.fi
15.ft P
16.SH DESCRIPTION
17The system calls that handle signals, such as
18.BR sigaction (2)
19and
20.BR sigprocmask (2)
21use sets of signals to keep a process from being interrupted by those
22signals while executing a signal handler or a critical code segment. These
23signal sets are manipulated by the following functions:
24.TP 5
25.B "int sigaddset(sigset_t *\fIset\fP, int \fIsig\fP)"
26Add signal
27.I sig
28to the signal set referenced by
29.IR set .
30.TP
31.B "int sigdelset(sigset_t *\fIset\fP, int \fIsig\fP)"
32Remove signal
33.I sig
34from the signal set referenced by
35.IR set .
36.TP
37.B "int sigemptyset(sigset_t *\fIset\fP)"
38Initialize the signal set referenced by
39.I set
40to an empty set.
41.TP
42.B "int sigfillset(sigset_t *\fIset\fP)"
43Initialize the signal set referenced by
44.I set
45to an full set, i.e. all signals are in the set.
46.TP
47.B "int sigismember(const sigset_t *\fIset\fP, int \fIsig\fP)"
48Return
49.B 1
50if the signal
51.I sig
52is present in the set referenced by
53.IR set ,
54.B 0
55otherwise.
56.SH "SEE ALSO"
57.BR sigaction (2),
58.BR sigpending (2),
59.BR sigprocmask (2),
60.BR sigsuspend (2).
61.SH DIAGNOSTICS
62All functions except
63.B sigismember
64return
65.B 0
66on success.
67.B Sigismember
68returns
69.B 0
70or
71.B 1
72on success. They return
73.B \-1
74with error code
75.B EINVAL
76for an invalid signal number. (They do not use
77.B EFAULT
78for a bad
79.I set
80address, but will simply cause a segmentation violation.)
81.SH AUTHOR
82Kees J. Bot (kjb@cs.vu.nl)
83
84.\"
85.\" $PchId: sigset.3,v 1.2 1996/04/11 06:39:09 philip Exp $
Note: See TracBrowser for help on using the repository browser.