Lines Matching refs:set

56 int OsSigIsMember(const sigset_t *set, int signo)
63 /* Check if the signal is in the set */
64 ret = ((*set & SIGNO2SET((unsigned int)signo)) != 0);
204 void OsSigMaskSwitch(LosTaskCB * const rtcb, sigset_t set)
208 rtcb->sig.sigprocmask = set;
222 sigset_t set;
232 set = *(sigset_t *)setl;
235 /* Set the union of the current set and the signal
236 * set pointed to by set as the new sigprocmask.
239 spcb->sig.sigprocmask |= set;
241 /* Set the intersection of the current set and the
242 * signal set pointed to by set as the new sigprocmask.
245 spcb->sig.sigprocmask &= ~(set);
247 /* Set the signal set pointed to by set as the new sigprocmask. */
249 spcb->sig.sigprocmask = set;
255 /* If pending mask not in sigmask, need set sigflag. */
286 /* If the default tcb is not set, then set this one as default. */
300 /* set this tcb as awakenedTcb */
307 /* if unblockedTcb of this signal is not set, then set it. */
314 /* set this tcb as receivedTcb */
375 int OsSigEmptySet(sigset_t *set)
377 *set = NULL_SIGNAL_SET;
541 int OsSigAddSet(sigset_t *set, int signo)
549 /* Add the signal to the set */
550 *set |= SIGNO2SET((unsigned int)signo);
555 int OsSigPending(sigset_t *set)
560 if (set == NULL) {
566 *set = tcb->sig.sigPendFlag;
582 int OsSigTimedWaitNoLock(sigset_t *set, siginfo_t *info, unsigned int timeout)
594 /* If pendingflag & set > 0, should clear pending flag */
595 sigset_t clear = sigcb->sigPendFlag & *set;
601 OsSigAddSet(set, SIGKILL);
602 OsSigAddSet(set, SIGSTOP);
604 sigcb->sigwaitmask |= *set;
618 int OsSigTimedWait(sigset_t *set, siginfo_t *info, unsigned int timeout)
625 ret = OsSigTimedWaitNoLock(set, info, timeout);
641 int OsSigSuspend(const sigset_t *set)
648 if (set == NULL) {
655 setSuspend = FULL_SIGNAL_SET & (~(*set));
657 /* If pending mask not in sigmask, need set sigflag */
658 OsSigMaskSwitch(rtcb, *set);