*
* @APPLE_LICENSE_HEADER_START@
*
- * Copyright (c) 1999-2003 Apple Computer, Inc. All Rights Reserved.
- *
* This file contains Original Code and/or Modifications of Original Code
* as defined in and that are subject to the Apple Public Source License
* Version 2.0 (the 'License'). You may not use this file except in
#undef sigdelset
#undef sigismember
+int
sigemptyset(set)
sigset_t *set;
{
return (0);
}
+int
sigfillset(set)
sigset_t *set;
{
return (0);
}
+int
sigaddset(set, signo)
sigset_t *set;
int signo;
errno = EINVAL;
return(-1);
}
+ if (signo == 0)
+ return(0);
*set |= sigmask(signo);
return (0);
}
+int
sigdelset(set, signo)
sigset_t *set;
int signo;
errno = EINVAL;
return(-1);
}
+ if (signo == 0)
+ return(0);
*set &= ~sigmask(signo);
return (0);
}
+int
sigismember(set, signo)
const sigset_t *set;
int signo;
errno = EINVAL;
return(-1);
}
- return ((*set & ~sigmask(signo)) != 0);
+ if (signo == 0)
+ return(0);
+ return ((*set & sigmask(signo)) != 0);
}