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. sigismember(const 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.     return 0;
  15.   return _set->__bits[_signo >> 5] & (1U<<(_signo&31)) ? 1 : 0;
  16. }
  17.