/[gnats]/gnats/libiberty/sigsetmask.c
ViewVC logotype

Diff of /gnats/libiberty/sigsetmask.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.2 by pdm, Mon Dec 10 23:03:26 2001 UTC revision 1.3 by chewie, Sat Nov 13 05:14:17 2004 UTC
# Line 3  Line 3 
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>
# Line 16  extern void abort PARAMS ((void)) ATTRIB Line 25  extern void abort PARAMS ((void)) ATTRIB
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;

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26