[BACK]Return to linux_sig_notalpha.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / sys / compat / linux / common

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

Diff for /src/sys/compat/linux/common/linux_sig_notalpha.c between version 1.30 and 1.30.20.1

version 1.30, 2005/12/11 12:20:19 version 1.30.20.1, 2006/10/24 21:10:22
Line 81  linux_sys_signal(l, v, retval)
Line 81  linux_sys_signal(l, v, retval)
                 syscallarg(int) signum;                  syscallarg(int) signum;
                 syscallarg(linux_handler_t) handler;                  syscallarg(linux_handler_t) handler;
         } */ *uap = v;          } */ *uap = v;
         struct proc *p = l->l_proc;  
         struct sigaction nbsa, obsa;          struct sigaction nbsa, obsa;
         int error, sig;          int error, sig;
   
Line 93  linux_sys_signal(l, v, retval)
Line 92  linux_sys_signal(l, v, retval)
         nbsa.sa_handler = SCARG(uap, handler);          nbsa.sa_handler = SCARG(uap, handler);
         sigemptyset(&nbsa.sa_mask);          sigemptyset(&nbsa.sa_mask);
         nbsa.sa_flags = SA_RESETHAND | SA_NODEFER;          nbsa.sa_flags = SA_RESETHAND | SA_NODEFER;
         error = sigaction1(p, linux_to_native_signo[sig],          error = sigaction1(l, linux_to_native_signo[sig],
             &nbsa, &obsa, NULL, 0);              &nbsa, &obsa, NULL, 0);
         if (error == 0)          if (error == 0)
                 *retval = (int)(long)obsa.sa_handler; /* XXXmanu cast */                  *retval = (int)(long)obsa.sa_handler; /* XXXmanu cast */
Line 108  linux_sys_siggetmask(l, v, retval)
Line 107  linux_sys_siggetmask(l, v, retval)
         void *v;          void *v;
         register_t *retval;          register_t *retval;
 {  {
         struct proc *p = l->l_proc;  
         sigset_t bss;          sigset_t bss;
         linux_old_sigset_t lss;          linux_old_sigset_t lss;
         int error;          int error;
   
         error = sigprocmask1(p, SIG_SETMASK, 0, &bss);          error = sigprocmask1(l, SIG_SETMASK, 0, &bss);
         if (error)          if (error)
                 return (error);                  return (error);
         native_to_linux_old_sigset(&lss, &bss);          native_to_linux_old_sigset(&lss, &bss);
Line 135  linux_sys_sigsetmask(l, v, retval)
Line 133  linux_sys_sigsetmask(l, v, retval)
         struct linux_sys_sigsetmask_args /* {          struct linux_sys_sigsetmask_args /* {
                 syscallarg(linux_old_sigset_t) mask;                  syscallarg(linux_old_sigset_t) mask;
         } */ *uap = v;          } */ *uap = v;
         struct proc *p = l->l_proc;  
         sigset_t nbss, obss;          sigset_t nbss, obss;
         linux_old_sigset_t nlss, olss;          linux_old_sigset_t nlss, olss;
         int error;          int error;
   
         nlss = SCARG(uap, mask);          nlss = SCARG(uap, mask);
         linux_old_to_native_sigset(&nbss, &nlss);          linux_old_to_native_sigset(&nbss, &nlss);
         error = sigprocmask1(p, SIG_SETMASK, &nbss, &obss);          error = sigprocmask1(l, SIG_SETMASK, &nbss, &obss);
         if (error)          if (error)
                 return (error);                  return (error);
         native_to_linux_old_sigset(&olss, &obss);          native_to_linux_old_sigset(&olss, &obss);
Line 161  linux_sys_sigprocmask(l, v, retval)
Line 158  linux_sys_sigprocmask(l, v, retval)
                 syscallarg(const linux_old_sigset_t *) set;                  syscallarg(const linux_old_sigset_t *) set;
                 syscallarg(linux_old_sigset_t *) oset;                  syscallarg(linux_old_sigset_t *) oset;
         } */ *uap = v;          } */ *uap = v;
         struct proc *p = l->l_proc;  
   
         return(linux_sigprocmask1(p, SCARG(uap, how),          return(linux_sigprocmask1(l, SCARG(uap, how),
                                 SCARG(uap, set), SCARG(uap, oset)));                                  SCARG(uap, set), SCARG(uap, oset)));
 }  }
 #endif /* !__amd64__ */  #endif /* !__amd64__ */
Line 178  linux_sys_pause(l, v, retval)
Line 174  linux_sys_pause(l, v, retval)
         void *v;          void *v;
         register_t *retval;          register_t *retval;
 {  {
         struct proc *p = l->l_proc;  
   
         return (sigsuspend1(p, 0));          return (sigsuspend1(l, 0));
 }  }
   

Legend:
Removed from v.1.30  
changed lines
  Added in v.1.30.20.1

CVSweb <webmaster@jp.NetBSD.org>