Deleted Added
full compact
sigsetmask.c (89857) sigsetmask.c (130561)
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. */
5
6/*
7
8@deftypefn Supplemental int sigsetmask (int @var{set})

--- 11 unchanged lines hidden (view full) ---

20/* Including <sys/types.h> seems to be needed by ISC. */
21#include <sys/types.h>
22#include <signal.h>
23
24extern void abort PARAMS ((void)) ATTRIBUTE_NORETURN;
25
26#ifdef SIG_SETMASK
27int
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. */
5
6/*
7
8@deftypefn Supplemental int sigsetmask (int @var{set})

--- 11 unchanged lines hidden (view full) ---

20/* Including <sys/types.h> seems to be needed by ISC. */
21#include <sys/types.h>
22#include <signal.h>
23
24extern void abort PARAMS ((void)) ATTRIBUTE_NORETURN;
25
26#ifdef SIG_SETMASK
27int
28DEFUN(sigsetmask,(set),
29 int set)
28sigsetmask (set)
29 int set;
30{
31 sigset_t new;
32 sigset_t old;
33
34 sigemptyset (&new);
35 if (set != 0) {
36 abort(); /* FIXME, we don't know how to translate old mask to new */
37 }
38 sigprocmask(SIG_SETMASK, &new, &old);
39 return 1; /* FIXME, we always return 1 as old value. */
40}
41#endif
30{
31 sigset_t new;
32 sigset_t old;
33
34 sigemptyset (&new);
35 if (set != 0) {
36 abort(); /* FIXME, we don't know how to translate old mask to new */
37 }
38 sigprocmask(SIG_SETMASK, &new, &old);
39 return 1; /* FIXME, we always return 1 as old value. */
40}
41#endif