| 1 | .\" Copyright (c) 1983, 1991 The Regents of the University of California. |
| 2 | .\" All rights reserved. |
| 3 | .\" |
| 4 | .\" %sccs.include.redist.man% |
| 5 | .\" |
| 6 | .\" @(#)sigblock.2 6.7 (Berkeley) %G% |
| 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 <sys/signal.h> |
| 16 | .Ft int |
| 17 | .Fn sigblock "int mask" |
| 18 | .Ft int |
| 19 | .Fn sigmask signum |
| 20 | .Sh DESCRIPTION |
| 21 | .Bf -symbolic |
| 22 | This interface is made obsolete by: |
| 23 | .Ef |
| 24 | .Xr sigprocmask 2 . |
| 25 | .Pp |
| 26 | .Fn Sigblock |
| 27 | adds the signals specified in |
| 28 | .Fa mask |
| 29 | to the set of signals currently |
| 30 | being blocked from delivery. |
| 31 | Signals are blocked if the |
| 32 | corresponding bit in |
| 33 | .Fa mask |
| 34 | is a 1; the macro |
| 35 | .Fn sigmask |
| 36 | is provided to construct the mask for a given |
| 37 | .Fa signum . |
| 38 | .Pp |
| 39 | It is not possible to block |
| 40 | .Dv SIGKILL |
| 41 | or |
| 42 | .Dv SIGSTOP ; |
| 43 | this restriction is silently |
| 44 | imposed by the system. |
| 45 | .Sh RETURN VALUES |
| 46 | The 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 |
| 54 | The |
| 55 | .Nm |
| 56 | function call appeared in |
| 57 | .Bx 4.2 |
| 58 | and has been deprecated. |