3 |
Contributed by Cygnus Support. |
Contributed by Cygnus Support. |
4 |
This file is in the public doamin. */ |
This file is in the public doamin. */ |
5 |
|
|
6 |
/* Set the current signal mask to the set provided, and return the |
/* |
7 |
previous value */ |
|
8 |
|
@deftypefn Supplemental int sigsetmask (int @var{set}) |
9 |
|
|
10 |
|
Sets the signal mask to the one provided in @var{set} and returns |
11 |
|
the old mask (which, for libiberty's implementation, will always |
12 |
|
be the value @code{1}). |
13 |
|
|
14 |
|
@end deftypefn |
15 |
|
|
16 |
|
*/ |
17 |
|
|
18 |
#define _POSIX_SOURCE |
#define _POSIX_SOURCE |
19 |
#include <ansidecl.h> |
#include <ansidecl.h> |
25 |
|
|
26 |
#ifdef SIG_SETMASK |
#ifdef SIG_SETMASK |
27 |
int |
int |
28 |
DEFUN(sigsetmask,(set), |
sigsetmask (set) |
29 |
int set) |
int set; |
30 |
{ |
{ |
31 |
sigset_t new; |
sigset_t new; |
32 |
sigset_t old; |
sigset_t old; |