source: trunk/minix/man/man2/sigprocmask.2@ 11

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

Minix 3.1.2a

File size: 1.3 KB
Line 
1.TH SIGPROCMASK 2
2.SH NAME
3sigprocmask \- manipulate the signal mask
4.SH SYNOPSIS
5.ft B
6#include <signal.h>
7
8int sigprocmask(int \fIhow\fP, const sigset_t *\fIset\fP, sigset_t *\fIoset\fP)
9.ft P
10.SH DESCRIPTION
11.B Sigprocmask()
12examines or manipulates the signal mask. This mask is the set of signals
13that are currently blocked. The
14.I how
15argument determines the action that must be performed. In all cases the
16signal set referenced by
17.IR oset ,
18if not
19.BR NULL ,
20will be used to receive the old signal mask. The
21.I set
22argument, if not
23.BR NULL ,
24will be used to set or modify the current signal mask.
25.PP
26.I How
27can be one of:
28.PP
29.TP 15
30.B SIG_BLOCK
31Add the signals referenced by
32.I set
33to the mask.
34.TP
35.B SIG_UNBLOCK
36Remove the signals referenced by
37.I set
38from the mask.
39.TP
40.B SIG_SETMASK
41Set the signal mask to the set referenced by
42.IR set .
43.PP
44The value of
45.I how
46is ignored if
47.I set
48is
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
56Returns
57.B 0
58on success and
59.B \-1
60on error. The error code is
61.B EFAULT
62for a bad
63.I set
64or
65.I oset
66address, or
67.B EINVAL
68for a bad
69.I how
70argument.
71.SH AUTHOR
72Kees 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.