Lines Matching defs:uth

438 	struct uthread * uth;
447 uth = (struct uthread *)get_bsdthread_info(thact);
448 if (uth) {
449 uth->uu_siglist &= ~bit;
457 TAILQ_FOREACH(uth, &p->p_uthlist, uu_list) {
458 uth->uu_siglist &= ~bit;
472 struct uthread * uth;
480 uth = (struct uthread *)get_bsdthread_info(thact);
481 if (uth) {
482 uth->uu_sigmask &= ~bit;
489 TAILQ_FOREACH(uth, &p->p_uthlist, uu_list) {
490 uth->uu_sigmask &= ~bit;
502 struct uthread * uth;
510 uth = (struct uthread *)get_bsdthread_info(thact);
511 if (uth) {
512 uth->uu_sigmask |= bit;
519 TAILQ_FOREACH(uth, &p->p_uthlist, uu_list) {
520 uth->uu_sigmask |= bit;
532 struct uthread * uth;
540 uth = (struct uthread *)get_bsdthread_info(thact);
541 if (uth) {
542 uth->uu_sigmask = bit;
549 TAILQ_FOREACH(uth, &p->p_uthlist, uu_list) {
550 uth->uu_sigmask = bit;
829 struct uthread *uth;
831 uth = (struct uthread *)get_bsdthread_info(current_thread());
834 uth->uu_flag |= (UT_NO_SIGMASK | UT_CANCELDISABLE);
869 struct uthread *uth;
876 uth = (struct uthread *)get_bsdthread_info(target_act);
879 if ((uth->uu_flag & (UT_VFORK | UT_CANCEL | UT_CANCELED )) == 0) {
880 uth->uu_flag |= (UT_CANCEL | UT_NO_SIGMASK);
881 if (((uth->uu_flag & UT_NOTCANCELPT) == 0)
882 && ((uth->uu_flag & UT_CANCELDISABLE) == 0))
900 struct uthread *uth;
904 uth = (struct uthread *)get_bsdthread_info(thread);
908 uth->uu_flag &= ~UT_CANCELDISABLE;
911 uth->uu_flag |= UT_CANCELDISABLE;
916 if((uth->uu_flag & ( UT_CANCELDISABLE | UT_CANCEL | UT_CANCELED)) == UT_CANCEL) {
917 uth->uu_flag &= ~UT_CANCEL;
918 uth->uu_flag |= (UT_CANCELED | UT_NO_SIGMASK);
1137 struct uthread *uth;
1148 uth = (struct uthread *)get_bsdthread_info(target_act);
1150 if (uth->uu_flag & UT_NO_SIGMASK) {
1229 struct uthread *uth;
1256 TAILQ_FOREACH(uth, &p->p_uthlist, uu_list) {
1257 if ( (sigw = uth->uu_siglist & siglist) ) {
1275 uth = ut; /* wait for it to be delivered to us */
1303 uth->uu_siglist &= ~(sigmask(signum));
1325 struct uthread *uth;
1328 uth = (struct uthread *)get_bsdthread_info(current_thread());
1330 pstk = &uth->uu_sigstk;
1331 if ((uth->uu_flag & UT_ALTSTACK) == 0)
1332 uth->uu_sigstk.ss_flags |= SA_DISABLE;
1366 if (uth->uu_sigstk.ss_flags & SA_ONSTACK)
1368 uth->uu_flag &= ~UT_ALTSTACK;
1369 uth->uu_sigstk.ss_flags = ss.ss_flags;
1378 uth->uu_flag |= UT_ALTSTACK;
1379 uth->uu_sigstk= ss;
1624 struct uthread *uth;
1638 uth = get_bsdthread_info(sig_actthread);
1639 if (uth->uu_flag & UT_VFORK)
1640 p = uth->uu_proc;
1648 uth->uu_siglist |= mask;
1649 uth->uu_code = code;
1659 struct uthread *uth;
1678 TAILQ_FOREACH(uth, &p->p_uthlist, uu_list) {
1679 if(((uth->uu_flag & UT_NO_SIGMASK)== 0) &&
1680 (((uth->uu_sigmask & mask) == 0) || (uth->uu_sigwait & mask))) {
1681 if (check_actforsig(p->task, uth->uu_context.vc_thread, 1) == KERN_SUCCESS) {
1682 *thr = uth->uu_context.vc_thread;
1718 struct uthread *uth;
1810 uth = get_bsdthread_info(sig_thread);
1829 if (uth->uu_sigwait & mask)
1831 else if (uth->uu_sigmask & mask)
1848 uth->uu_siglist &= ~stopsigmask;
1867 uth->uu_siglist &= ~contsigmask;
1870 uth->uu_siglist |= mask;
1921 bzero((caddr_t)&(uth->t_dtrace_siginfo), sizeof(uth->t_dtrace_siginfo));
1923 uth->t_dtrace_siginfo.si_signo = signum;
1924 uth->t_dtrace_siginfo.si_pid = current_proc()->p_pid;
1925 uth->t_dtrace_siginfo.si_status = W_EXITCODE(signum, 0);
1926 uth->t_dtrace_siginfo.si_uid = r_uid;
1927 uth->t_dtrace_siginfo.si_code = 0;
1929 uth->uu_sigwait = mask;
1930 uth->uu_siglist &= ~mask;
1931 wakeup(&uth->uu_sigwait);
1999 uth->uu_siglist &= ~mask;
2009 uth->uu_siglist &= ~mask;
2105 if (((flavor & (PSIG_VFORK|PSIG_THREAD)) == 0) && (((uth->uu_siglist & ~uth->uu_sigmask) & ~sig_proc->p_sigignore) & ~mask)) {
2106 uth->uu_siglist &= ~mask;
2111 uth->uu_siglist &= ~mask;
2149 uth->uu_siglist |= sigmask(sig_proc->p_xstat);
3022 struct uthread * uth;
3034 uth = (struct uthread *)get_bsdthread_info(th);
3035 if (uth) {
3036 bits = (((uth->uu_siglist & ~uth->uu_sigmask) & ~p->p_sigignore) & mask);
3042 TAILQ_FOREACH(uth, &p->p_uthlist, uu_list) {
3043 bits |= (((uth->uu_siglist & ~uth->uu_sigmask) & ~p->p_sigignore) & mask);
3053 struct uthread * uth;
3057 uth = (struct uthread *)get_bsdthread_info(th);
3058 if (uth) {
3059 bits = (((uth->uu_siglist & ~uth->uu_sigmask) & ~p->p_sigignore) & mask);