[BACK]Return to netbsd32_signal.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / sys / compat / netbsd32

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/sys/compat/netbsd32/netbsd32_signal.c between version 1.17 and 1.17.10.1

version 1.17, 2006/03/15 09:09:47 version 1.17.10.1, 2006/10/21 15:20:48
Line 82  netbsd32_sigaction(l, v, retval)
Line 82  netbsd32_sigaction(l, v, retval)
                 nsa.sa_mask = sa32.netbsd32_sa_mask;                  nsa.sa_mask = sa32.netbsd32_sa_mask;
                 nsa.sa_flags = sa32.netbsd32_sa_flags;                  nsa.sa_flags = sa32.netbsd32_sa_flags;
         }          }
         error = sigaction1(l->l_proc, SCARG(uap, signum),          error = sigaction1(l, SCARG(uap, signum),
                            SCARG(uap, nsa) ? &nsa : 0,                             SCARG(uap, nsa) ? &nsa : 0,
                            SCARG(uap, osa) ? &osa : 0,                             SCARG(uap, osa) ? &osa : 0,
                            NULL, 0);                             NULL, 0);
Line 167  netbsd32___sigaction14(l, v, retval)
Line 167  netbsd32___sigaction14(l, v, retval)
                 nsa.sa_mask = sa32.netbsd32_sa_mask;                  nsa.sa_mask = sa32.netbsd32_sa_mask;
                 nsa.sa_flags = sa32.netbsd32_sa_flags;                  nsa.sa_flags = sa32.netbsd32_sa_flags;
         }          }
         error = sigaction1(l->l_proc, SCARG(uap, signum),          error = sigaction1(l, SCARG(uap, signum),
             SCARG(uap, nsa) ? &nsa : 0, SCARG(uap, osa) ? &osa : 0,              SCARG(uap, nsa) ? &nsa : 0, SCARG(uap, osa) ? &osa : 0,
             NULL, 0);              NULL, 0);
         if (error)          if (error)
Line 198  netbsd32___sigaction_sigtramp(l, v, retv
Line 198  netbsd32___sigaction_sigtramp(l, v, retv
                 syscallarg(netbsd32_voidp) tramp;                  syscallarg(netbsd32_voidp) tramp;
                 syscallarg(int) vers;                  syscallarg(int) vers;
         } */ *uap = v;          } */ *uap = v;
         struct proc *p = l->l_proc;  
         struct netbsd32_sigaction sa32;          struct netbsd32_sigaction sa32;
         struct sigaction nsa, osa;          struct sigaction nsa, osa;
         int error;          int error;
Line 212  netbsd32___sigaction_sigtramp(l, v, retv
Line 211  netbsd32___sigaction_sigtramp(l, v, retv
                 nsa.sa_mask = sa32.netbsd32_sa_mask;                  nsa.sa_mask = sa32.netbsd32_sa_mask;
                 nsa.sa_flags = sa32.netbsd32_sa_flags;                  nsa.sa_flags = sa32.netbsd32_sa_flags;
         }          }
         error = sigaction1(p, SCARG(uap, signum),          error = sigaction1(l, SCARG(uap, signum),
             SCARG(uap, nsa) ? &nsa : 0, SCARG(uap, osa) ? &osa : 0,              SCARG(uap, nsa) ? &nsa : 0, SCARG(uap, osa) ? &osa : 0,
             NETBSD32PTR64(SCARG(uap, tramp)), SCARG(uap, vers));              NETBSD32PTR64(SCARG(uap, tramp)), SCARG(uap, vers));
         if (error)          if (error)
Line 320  netbsd32_si_to_si32(siginfo32_t *si32, c
Line 319  netbsd32_si_to_si32(siginfo32_t *si32, c
 void  void
 getucontext32(struct lwp *l, ucontext32_t *ucp)  getucontext32(struct lwp *l, ucontext32_t *ucp)
 {  {
         struct proc     *p;          struct proc *p;
   
         p = l->l_proc;          p = l->l_proc;
   
         ucp->uc_flags = 0;          ucp->uc_flags = 0;
         ucp->uc_link = (uint32_t)(intptr_t)l->l_ctxlink;          ucp->uc_link = (uint32_t)(intptr_t)l->l_ctxlink;
   
         (void)sigprocmask1(p, 0, NULL, &ucp->uc_sigmask);          (void)sigprocmask1(l, 0, NULL, &ucp->uc_sigmask);
         ucp->uc_flags |= _UC_SIGMASK;          ucp->uc_flags |= _UC_SIGMASK;
   
         /*          /*
Line 369  netbsd32_getcontext(struct lwp *l, void 
Line 368  netbsd32_getcontext(struct lwp *l, void 
 int  int
 setucontext32(struct lwp *l, const ucontext32_t *ucp)  setucontext32(struct lwp *l, const ucontext32_t *ucp)
 {  {
         struct proc     *p;  
         int             error;          int             error;
   
         p = l->l_proc;  
         if ((error = cpu_setmcontext32(l, &ucp->uc_mcontext,          if ((error = cpu_setmcontext32(l, &ucp->uc_mcontext,
              ucp->uc_flags)) != 0)               ucp->uc_flags)) != 0)
                 return (error);                  return (error);
Line 382  setucontext32(struct lwp *l, const ucont
Line 379  setucontext32(struct lwp *l, const ucont
          * don't; see the comment in getucontext().           * don't; see the comment in getucontext().
          */           */
         if ((ucp->uc_flags & _UC_SIGMASK) != 0)          if ((ucp->uc_flags & _UC_SIGMASK) != 0)
                 sigprocmask1(p, SIG_SETMASK, &ucp->uc_sigmask, NULL);                  sigprocmask1(l, SIG_SETMASK, &ucp->uc_sigmask, NULL);
   
         return 0;          return 0;
 }  }

Legend:
Removed from v.1.17  
changed lines
  Added in v.1.17.10.1

CVSweb <webmaster@jp.NetBSD.org>