Line | |
---|
1 | .TH SIGPROCMASK 2
|
---|
2 | .SH NAME
|
---|
3 | sigprocmask \- manipulate the signal mask
|
---|
4 | .SH SYNOPSIS
|
---|
5 | .ft B
|
---|
6 | #include <signal.h>
|
---|
7 |
|
---|
8 | int sigprocmask(int \fIhow\fP, const sigset_t *\fIset\fP, sigset_t *\fIoset\fP)
|
---|
9 | .ft P
|
---|
10 | .SH DESCRIPTION
|
---|
11 | .B Sigprocmask()
|
---|
12 | examines or manipulates the signal mask. This mask is the set of signals
|
---|
13 | that are currently blocked. The
|
---|
14 | .I how
|
---|
15 | argument determines the action that must be performed. In all cases the
|
---|
16 | signal set referenced by
|
---|
17 | .IR oset ,
|
---|
18 | if not
|
---|
19 | .BR NULL ,
|
---|
20 | will be used to receive the old signal mask. The
|
---|
21 | .I set
|
---|
22 | argument, if not
|
---|
23 | .BR NULL ,
|
---|
24 | will be used to set or modify the current signal mask.
|
---|
25 | .PP
|
---|
26 | .I How
|
---|
27 | can be one of:
|
---|
28 | .PP
|
---|
29 | .TP 15
|
---|
30 | .B SIG_BLOCK
|
---|
31 | Add the signals referenced by
|
---|
32 | .I set
|
---|
33 | to the mask.
|
---|
34 | .TP
|
---|
35 | .B SIG_UNBLOCK
|
---|
36 | Remove the signals referenced by
|
---|
37 | .I set
|
---|
38 | from the mask.
|
---|
39 | .TP
|
---|
40 | .B SIG_SETMASK
|
---|
41 | Set the signal mask to the set referenced by
|
---|
42 | .IR set .
|
---|
43 | .PP
|
---|
44 | The value of
|
---|
45 | .I how
|
---|
46 | is ignored if
|
---|
47 | .I set
|
---|
48 | is
|
---|
49 | .BR NULL .
|
---|
50 | .SH "SEE ALSO"
|
---|
51 | .BR sigaction (2),
|
---|
52 | .BR sigpending (2),
|
---|
53 | .BR sigsuspend (2),
|
---|
54 | .BR sigset (3).
|
---|
55 | .SH DIAGNOSTICS
|
---|
56 | Returns
|
---|
57 | .B 0
|
---|
58 | on success and
|
---|
59 | .B \-1
|
---|
60 | on error. The error code is
|
---|
61 | .B EFAULT
|
---|
62 | for a bad
|
---|
63 | .I set
|
---|
64 | or
|
---|
65 | .I oset
|
---|
66 | address, or
|
---|
67 | .B EINVAL
|
---|
68 | for a bad
|
---|
69 | .I how
|
---|
70 | argument.
|
---|
71 | .SH AUTHOR
|
---|
72 | Kees J. Bot (kjb@cs.vu.nl)
|
---|
73 |
|
---|
74 | .\"
|
---|
75 | .\" $PchId: sigprocmask.2,v 1.2 1996/04/11 06:02:09 philip Exp $
|
---|
Note:
See
TracBrowser
for help on using the repository browser.