1.\" Copyright (c) 1983, 1991, 1993 2.\" The Regents of the University of California. All rights reserved. 3.\" 4.\" %sccs.include.redist.man% 5.\" 6.\" @(#)sigblock.2 8.1 (Berkeley) 06/02/93 7.\" 8.Dd 9.Dt SIGBLOCK 2 10.Os BSD 4.2 11.Sh NAME 12.Nm sigblock 13.Nd block signals 14.Sh SYNOPSIS 15.Fd #include <signal.h> 16.Ft int 17.Fn sigblock "int mask" 18.Ft int 19.Fn sigmask signum 20.Sh DESCRIPTION 21.Bf -symbolic 22This interface is made obsolete by: 23.Ef 24.Xr sigprocmask 2 . 25.Pp 26.Fn Sigblock 27adds the signals specified in 28.Fa mask 29to the set of signals currently 30being blocked from delivery. 31Signals are blocked if the 32corresponding bit in 33.Fa mask 34is a 1; the macro 35.Fn sigmask 36is provided to construct the mask for a given 37.Fa signum . 38.Pp 39It is not possible to block 40.Dv SIGKILL 41or 42.Dv SIGSTOP ; 43this restriction is silently 44imposed by the system. 45.Sh RETURN VALUES 46The previous set of masked signals is returned. 47.Sh SEE ALSO 48.Xr kill 2 , 49.Xr sigprocmask 2 , 50.Xr sigaction 2 , 51.Xr sigsetmask 2 , 52.Xr sigsetops 3 53.Sh HISTORY 54The 55.Nm 56function call appeared in 57.Bx 4.2 58and has been deprecated. 59