Subversion Repositories Kolibri OS

Rev

Blame | Last modification | View Log | Download | RSS feed

  1. /* Copyright (C) 1995 DJ Delorie, see COPYING.DJ for details */
  2. #include <errno.h>
  3. #include <signal.h>
  4.  
  5. int
  6. sigdelset(sigset_t *_set, int _signo)
  7. {
  8.   if (_set == 0)
  9.   {
  10.     errno = EINVAL;
  11.     return -1;
  12.   }
  13.   if (_signo < 0 || _signo >= 320)
  14.   {
  15.     errno = EINVAL;
  16.     return -1;
  17.   }
  18.   _set->__bits[_signo>>5] &= ~(1U << (_signo&31));
  19.   return 0;
  20. }
  21.