int sigismember(FAR const sigset_t *set, int signo) { int ret = ERROR; /* Verify the signal */ if (GOOD_SIGNO(signo)) { /* Check if the signal is in the set */ ret = ((*set & SIGNO2SET(signo)) != 0); } return ret; }
int sigaddset(FAR sigset_t *set, int signo) { int ret = ERROR; /* Verify the signal */ if (GOOD_SIGNO(signo)) { /* Add the signal to the set */ *set |= SIGNO2SET(signo); ret = OK; } return ret; }
int sigaddset(FAR sigset_t *set, int signo) { /* Verify the signal */ if (!GOOD_SIGNO(signo)) { set_errno(EINVAL); return ERROR; } else { /* Add the signal to the set */ *set |= SIGNO2SET(signo); return OK; } }