1 /* Version of sigsetmask.c
2 Written by Steve Chamberlain (sac@cygnus.com).
3 Contributed by Cygnus Support.
4 This file is in the public doamin. */
8 @deftypefn Supplemental int sigsetmask (int @var{set})
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}).
20 /* Including <sys/types.h> seems to be needed by ISC. */
21 #include <sys/types.h>
24 extern void abort (void) ATTRIBUTE_NORETURN
;
33 sigemptyset (&new_sig
);
35 abort(); /* FIXME, we don't know how to translate old mask to new */
37 sigprocmask(SIG_SETMASK
, &new_sig
, &old_sig
);
38 return 1; /* FIXME, we always return 1 as old value. */
This page took 0.030445 seconds and 4 git commands to generate.