home *** CD-ROM | disk | FTP | other *** search
/ PC Extra Super CD 1998 January / PCPLUS131.iso / DJGPP / V2 / DJLSR201.ZIP / src / libc / posix / signal / sigfills.c < prev    next >
Encoding:
C/C++ Source or Header  |  1995-04-01  |  313 b   |  17 lines

  1. /* Copyright (C) 1995 DJ Delorie, see COPYING.DJ for details */
  2. #include <errno.h>
  3. #include <signal.h>
  4.  
  5. int
  6. sigfillset(sigset_t *_set)
  7. {
  8.   if (_set == 0)
  9.   {
  10.     errno = EINVAL;
  11.     return -1;
  12.   }
  13.   sigemptyset(_set);
  14.   _set->__bits[9] = 0x7fff; /* SIGABRT (288) .. SIGTRAP (302) */
  15.   return 0;
  16. }
  17.