xref: /csrg-svn/lib/libc/compat-43/sigblock.2 (revision 60986)
1*60986Sbostic.\" Copyright (c) 1983, 1991, 1993
2*60986Sbostic.\"	The Regents of the University of California.  All rights reserved.
320265Smckusick.\"
443569Strent.\" %sccs.include.redist.man%
520265Smckusick.\"
6*60986Sbostic.\"     @(#)sigblock.2	8.1 (Berkeley) 06/02/93
738053Sbostic.\"
847209Scael.Dd
947209Scael.Dt SIGBLOCK 2
1047209Scael.Os BSD 4.2
1147209Scael.Sh NAME
1247209Scael.Nm sigblock
1347209Scael.Nd block signals
1447209Scael.Sh SYNOPSIS
1555755Sbostic.Fd #include <signal.h>
1647209Scael.Ft int
1747209Scael.Fn sigblock "int mask"
1847209Scael.Ft int
1947209Scael.Fn sigmask signum
2047209Scael.Sh DESCRIPTION
2147209Scael.Bf -symbolic
2247209ScaelThis interface is made obsolete by:
2347209Scael.Ef
2447209Scael.Xr sigprocmask 2 .
2547209Scael.Pp
2647209Scael.Fn Sigblock
2747209Scaeladds the signals specified in
2847209Scael.Fa mask
2947209Scaelto the set of signals currently
3028127Skarelsbeing blocked from delivery.
3128127SkarelsSignals are blocked if the
3228141Skarelscorresponding bit in
3347209Scael.Fa mask
3428127Skarelsis a 1; the macro
3547209Scael.Fn sigmask
3628127Skarelsis provided to construct the mask for a given
3747209Scael.Fa signum .
3847209Scael.Pp
3947209ScaelIt is not possible to block
4047209Scael.Dv SIGKILL
4147209Scaelor
4247209Scael.Dv SIGSTOP ;
4347209Scaelthis restriction is silently
4420265Smckusickimposed by the system.
4547209Scael.Sh RETURN VALUES
4620265SmckusickThe previous set of masked signals is returned.
4747209Scael.Sh SEE ALSO
4847209Scael.Xr kill 2 ,
4947209Scael.Xr sigprocmask 2 ,
5047209Scael.Xr sigaction 2 ,
5147209Scael.Xr sigsetmask 2 ,
5247209Scael.Xr sigsetops 3
5347209Scael.Sh HISTORY
5447209ScaelThe
5547209Scael.Nm
5647209Scaelfunction call appeared in
5747209Scael.Bx 4.2
5847209Scaeland has been deprecated.
59