Lines Matching defs:self
73 ulwp_t *self = curthread;
74 uberdata_t *udp = self->ul_uberdata;
86 set_parking_flag(self, 0);
88 if (__td_event_report(self, TD_CATCHSIG, udp)) {
89 self->ul_td_evbuf.eventnum = TD_CATCHSIG;
90 self->ul_td_evbuf.eventdata = (void *)(intptr_t)sig;
95 * Get a self-consistent set of flags, handler, and mask
115 if (self->ul_vfork ||
138 * signal mask for sigsuspend() or pollsys() (self->ul_tmpmask) but
142 * level equals self->ul_sigmask (maskset for sigsuspend() / pollsys()),
147 if (self->ul_sigsuspend) {
148 ucp->uc_sigmask = self->ul_sigmask;
149 self->ul_sigsuspend = 0;
151 sigorset(&uact.sa_mask, &self->ul_tmpmask);
158 self->ul_sigmask = uact.sa_mask;
159 self->ul_siglink = ucp;
241 ulwp_t *self = curthread;
242 siguaction_t *suap = &self->ul_uberdata->siguaction[sig];
246 ASSERT((self->ul_critical | self->ul_sigdefer | self->ul_cursig) == 0);
270 tact.sa_sigaction = self->ul_uberdata->sigacthandler;
275 if (self->ul_siginfo.si_signo == 0)
278 sip = &self->ul_siginfo;
281 while ((error = __sigresend(sig, sip, &self->ul_sigmask)) == EAGAIN)
291 ulwp_t *self = curthread;
297 self->ul_sp = 0;
299 self->ul_cancel_async = self->ul_save_async;
306 * we are actually executing at main level (self->ul_siglink == NULL).
309 if (self->ul_siglink == NULL)
316 if ((self->ul_critical + self->ul_sigdefer) == 0) {
334 ASSERT(self->ul_cursig == 0);
335 self->ul_cursig = (char)sig;
337 (void) memcpy(&self->ul_siginfo,
340 self->ul_siginfo.si_signo = 0;
347 set_parking_flag(self, 0);
365 ulwp_t *self = curthread;
366 uberdata_t *udp = self->ul_uberdata;
377 if (!self->ul_vfork)
409 if (self->ul_vfork) {
455 if (!self->ul_vfork)
467 ulwp_t *self = curthread;
468 uberdata_t *udp = self->ul_uberdata;
485 * See the definition of restore_signals(self).
488 block_all_signals(ulwp_t *self)
492 enter_critical(self);
493 if ((scp = self->ul_schedctl) != NULL ||
498 exit_critical(self);
524 ulwp_t *self = curthread;
540 block_all_signals(self);
542 self->ul_sigmask = uc.uc_sigmask;
543 if (self->ul_cursig) {
549 ASSERT(self->ul_critical + self->ul_sigdefer != 0);
553 self->ul_siglink = uc.uc_link;
564 uc.uc_mcontext.gregs[REG_G7] = (greg_t)self;
579 set_parking_flag(self, 0);
580 self->ul_sp = 0;
596 ulwp_t *self = curthread;
600 enter_critical(self);
602 *oset = self->ul_sigmask;
603 exit_critical(self);
615 * The assignments to self->ul_sigmask must be protected from
618 block_all_signals(self);
620 saveset = self->ul_sigmask;
623 self->ul_sigmask.__sigbits[0] |= set->__sigbits[0];
624 self->ul_sigmask.__sigbits[1] |= set->__sigbits[1];
625 self->ul_sigmask.__sigbits[2] |= set->__sigbits[2];
626 self->ul_sigmask.__sigbits[3] |= set->__sigbits[3];
629 self->ul_sigmask.__sigbits[0] &= ~set->__sigbits[0];
630 self->ul_sigmask.__sigbits[1] &= ~set->__sigbits[1];
631 self->ul_sigmask.__sigbits[2] &= ~set->__sigbits[2];
632 self->ul_sigmask.__sigbits[3] &= ~set->__sigbits[3];
635 self->ul_sigmask.__sigbits[0] = set->__sigbits[0];
636 self->ul_sigmask.__sigbits[1] = set->__sigbits[1];
637 self->ul_sigmask.__sigbits[2] = set->__sigbits[2];
638 self->ul_sigmask.__sigbits[3] = set->__sigbits[3];
641 delete_reserved_signals(&self->ul_sigmask);
644 restore_signals(self);
715 * Common code for cancelling self in _sigcancel() and pthread_cancel().
726 ulwp_t *self = curthread;
728 ASSERT(self->ul_critical == 0);
729 ASSERT(self->ul_sigdefer == 0);
730 self->ul_cancel_pending = 1;
731 if (self->ul_cancel_async &&
732 !self->ul_cancel_disabled &&
733 self->ul_libc_locks == 0 &&
734 !self->ul_cancelable)
736 set_cancel_pending_flag(self, 0);