Lines Matching defs:uth

440 	struct uthread * uth;
449 uth = (struct uthread *)get_bsdthread_info(thact);
450 if (uth) {
451 uth->uu_siglist &= ~bit;
459 TAILQ_FOREACH(uth, &p->p_uthlist, uu_list) {
460 uth->uu_siglist &= ~bit;
474 struct uthread * uth;
482 uth = (struct uthread *)get_bsdthread_info(thact);
483 if (uth) {
484 uth->uu_sigmask &= ~bit;
491 TAILQ_FOREACH(uth, &p->p_uthlist, uu_list) {
492 uth->uu_sigmask &= ~bit;
504 struct uthread * uth;
512 uth = (struct uthread *)get_bsdthread_info(thact);
513 if (uth) {
514 uth->uu_sigmask |= bit;
521 TAILQ_FOREACH(uth, &p->p_uthlist, uu_list) {
522 uth->uu_sigmask |= bit;
534 struct uthread * uth;
542 uth = (struct uthread *)get_bsdthread_info(thact);
543 if (uth) {
544 uth->uu_sigmask = bit;
551 TAILQ_FOREACH(uth, &p->p_uthlist, uu_list) {
552 uth->uu_sigmask = bit;
831 struct uthread *uth;
833 uth = (struct uthread *)get_bsdthread_info(current_thread());
836 uth->uu_flag |= (UT_NO_SIGMASK | UT_CANCELDISABLE);
871 struct uthread *uth;
878 uth = (struct uthread *)get_bsdthread_info(target_act);
881 if ((uth->uu_flag & (UT_VFORK | UT_CANCEL | UT_CANCELED )) == 0) {
882 uth->uu_flag |= (UT_CANCEL | UT_NO_SIGMASK);
883 if (((uth->uu_flag & UT_NOTCANCELPT) == 0)
884 && ((uth->uu_flag & UT_CANCELDISABLE) == 0))
902 struct uthread *uth;
906 uth = (struct uthread *)get_bsdthread_info(thread);
910 uth->uu_flag &= ~UT_CANCELDISABLE;
913 uth->uu_flag |= UT_CANCELDISABLE;
918 if((uth->uu_flag & ( UT_CANCELDISABLE | UT_CANCEL | UT_CANCELED)) == UT_CANCEL) {
919 uth->uu_flag &= ~UT_CANCEL;
920 uth->uu_flag |= (UT_CANCELED | UT_NO_SIGMASK);
1139 struct uthread *uth;
1150 uth = (struct uthread *)get_bsdthread_info(target_act);
1152 if (uth->uu_flag & UT_NO_SIGMASK) {
1231 struct uthread *uth;
1258 TAILQ_FOREACH(uth, &p->p_uthlist, uu_list) {
1259 if ( (sigw = uth->uu_siglist & siglist) ) {
1277 uth = ut; /* wait for it to be delivered to us */
1305 uth->uu_siglist &= ~(sigmask(signum));
1327 struct uthread *uth;
1330 uth = (struct uthread *)get_bsdthread_info(current_thread());
1332 pstk = &uth->uu_sigstk;
1333 if ((uth->uu_flag & UT_ALTSTACK) == 0)
1334 uth->uu_sigstk.ss_flags |= SA_DISABLE;
1368 if (uth->uu_sigstk.ss_flags & SA_ONSTACK)
1370 uth->uu_flag &= ~UT_ALTSTACK;
1371 uth->uu_sigstk.ss_flags = ss.ss_flags;
1380 uth->uu_flag |= UT_ALTSTACK;
1381 uth->uu_sigstk= ss;
1626 struct uthread *uth;
1640 uth = get_bsdthread_info(sig_actthread);
1641 if (uth->uu_flag & UT_VFORK)
1642 p = uth->uu_proc;
1650 uth->uu_siglist |= mask;
1651 uth->uu_code = code;
1661 struct uthread *uth;
1680 TAILQ_FOREACH(uth, &p->p_uthlist, uu_list) {
1681 if(((uth->uu_flag & UT_NO_SIGMASK)== 0) &&
1682 (((uth->uu_sigmask & mask) == 0) || (uth->uu_sigwait & mask))) {
1683 if (check_actforsig(p->task, uth->uu_context.vc_thread, 1) == KERN_SUCCESS) {
1684 *thr = uth->uu_context.vc_thread;
1720 struct uthread *uth;
1812 uth = get_bsdthread_info(sig_thread);
1831 if (uth->uu_sigwait & mask)
1833 else if (uth->uu_sigmask & mask)
1850 uth->uu_siglist &= ~stopsigmask;
1869 uth->uu_siglist &= ~contsigmask;
1872 uth->uu_siglist |= mask;
1923 bzero((caddr_t)&(uth->t_dtrace_siginfo), sizeof(uth->t_dtrace_siginfo));
1925 uth->t_dtrace_siginfo.si_signo = signum;
1926 uth->t_dtrace_siginfo.si_pid = current_proc()->p_pid;
1927 uth->t_dtrace_siginfo.si_status = W_EXITCODE(signum, 0);
1928 uth->t_dtrace_siginfo.si_uid = r_uid;
1929 uth->t_dtrace_siginfo.si_code = 0;
1931 uth->uu_sigwait = mask;
1932 uth->uu_siglist &= ~mask;
1933 wakeup(&uth->uu_sigwait);
2001 uth->uu_siglist &= ~mask;
2011 uth->uu_siglist &= ~mask;
2107 if (((flavor & (PSIG_VFORK|PSIG_THREAD)) == 0) && (((uth->uu_siglist & ~uth->uu_sigmask) & ~sig_proc->p_sigignore) & ~mask)) {
2108 uth->uu_siglist &= ~mask;
2113 uth->uu_siglist &= ~mask;
2151 uth->uu_siglist |= sigmask(sig_proc->p_xstat);
3021 struct uthread * uth;
3033 uth = (struct uthread *)get_bsdthread_info(th);
3034 if (uth) {
3035 bits = (((uth->uu_siglist & ~uth->uu_sigmask) & ~p->p_sigignore) & mask);
3041 TAILQ_FOREACH(uth, &p->p_uthlist, uu_list) {
3042 bits |= (((uth->uu_siglist & ~uth->uu_sigmask) & ~p->p_sigignore) & mask);
3052 struct uthread * uth;
3056 uth = (struct uthread *)get_bsdthread_info(th);
3057 if (uth) {
3058 bits = (((uth->uu_siglist & ~uth->uu_sigmask) & ~p->p_sigignore) & mask);