Lines Matching defs:uc
183 ucontext_t uc;
202 savecontext(&uc, &curthread->t_hold);
203 if (uc.uc_flags & UC_SIGMASK)
204 SIGSET_NATIVE_TO_BRAND(&uc.uc_sigmask);
205 if (copyout(&uc, arg, sizeof (uc)))
217 if (copyin(ucp, &uc, sizeof (ucontext_t) -
218 sizeof (uc.uc_filler) -
219 sizeof (uc.uc_mcontext.fpregs))) {
222 if (uc.uc_flags & UC_SIGMASK)
223 SIGSET_BRAND_TO_NATIVE(&uc.uc_sigmask);
225 if ((uc.uc_flags & UC_FPU) &&
226 copyin(&ucp->uc_mcontext.fpregs, &uc.uc_mcontext.fpregs,
227 sizeof (uc.uc_mcontext.fpregs))) {
231 restorecontext(&uc);
233 if ((uc.uc_flags & UC_STACK) && (lwp->lwp_ustack != 0))
234 (void) copyout(&uc.uc_stack, (stack_t *)lwp->lwp_ustack,
235 sizeof (uc.uc_stack));
320 ucontext32_t uc;
333 savecontext32(&uc, &curthread->t_hold);
334 if (uc.uc_flags & UC_SIGMASK)
335 SIGSET_NATIVE_TO_BRAND(&uc.uc_sigmask);
336 if (copyout(&uc, arg, sizeof (uc)))
344 if (copyin(ucp, &uc, sizeof (uc) -
345 sizeof (uc.uc_filler) -
346 sizeof (uc.uc_mcontext.fpregs))) {
349 if (uc.uc_flags & UC_SIGMASK)
350 SIGSET_BRAND_TO_NATIVE(&uc.uc_sigmask);
351 if ((uc.uc_flags & UC_FPU) &&
352 copyin(&ucp->uc_mcontext.fpregs, &uc.uc_mcontext.fpregs,
353 sizeof (uc.uc_mcontext.fpregs))) {
357 ucontext_32ton(&uc, &ucnat);
360 if ((uc.uc_flags & UC_STACK) && (lwp->lwp_ustack != 0))
361 (void) copyout(&uc.uc_stack,
362 (stack32_t *)lwp->lwp_ustack, sizeof (uc.uc_stack));