Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-7]: src/sys/compat/svr4_32 Also pull up rev1.30 (accidently missi...



details:   https://anonhg.NetBSD.org/src/rev/c5474fb1fcf5
branches:  netbsd-7
changeset: 800308:c5474fb1fcf5
user:      martin <martin%NetBSD.org@localhost>
date:      Sat Aug 12 19:07:51 2017 +0000

description:
Also pull up rev1.30 (accidently missing in ticket #1475)

diffstat:

 sys/compat/svr4_32/svr4_32_signal.c |  22 +++++++++++-----------
 1 files changed, 11 insertions(+), 11 deletions(-)

diffs (70 lines):

diff -r feda03c809f7 -r c5474fb1fcf5 sys/compat/svr4_32/svr4_32_signal.c
--- a/sys/compat/svr4_32/svr4_32_signal.c       Sat Aug 12 06:05:16 2017 +0000
+++ b/sys/compat/svr4_32/svr4_32_signal.c       Sat Aug 12 19:07:51 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: svr4_32_signal.c,v 1.26.62.1 2017/08/12 04:00:50 snj Exp $      */
+/*     $NetBSD: svr4_32_signal.c,v 1.26.62.2 2017/08/12 19:07:51 martin Exp $   */
 
 /*-
  * Copyright (c) 1994, 1998 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: svr4_32_signal.c,v 1.26.62.1 2017/08/12 04:00:50 snj Exp $");
+__KERNEL_RCSID(0, "$NetBSD: svr4_32_signal.c,v 1.26.62.2 2017/08/12 19:07:51 martin Exp $");
 
 #if defined(_KERNEL_OPT)
 #include "opt_compat_svr4.h"
@@ -397,16 +397,16 @@
                nbsa.sa_handler = (sig_t)SCARG(uap, handler);
                sigemptyset(&nbsa.sa_mask);
                nbsa.sa_flags = 0;
-               error = sigaction1(l, signum, &nbsa, &obsa, NULL, 0);
+               error = sigaction1(l, native_signo, &nbsa, &obsa, NULL, 0);
                if (error)
-                       return (error);
+                       return error;
                *retval = (u_int)(u_long)obsa.sa_handler;
-               return (0);
+               return 0;
 
        case SVR4_SIGHOLD_MASK:
        sighold:
                sigemptyset(&ss);
-               sigaddset(&ss, signum);
+               sigaddset(&ss, native_signo);
                mutex_enter(p->p_lock);
                error = sigprocmask1(l, SIG_BLOCK, &ss, 0);
                mutex_exit(p->p_lock);
@@ -414,7 +414,7 @@
 
        case SVR4_SIGRELSE_MASK:
                sigemptyset(&ss);
-               sigaddset(&ss, signum);
+               sigaddset(&ss, native_signo);
                mutex_enter(p->p_lock);
                error = sigprocmask1(l, SIG_UNBLOCK, &ss, 0);
                mutex_exit(p->p_lock);
@@ -424,17 +424,17 @@
                nbsa.sa_handler = SIG_IGN;
                sigemptyset(&nbsa.sa_mask);
                nbsa.sa_flags = 0;
-               return (sigaction1(l, signum, &nbsa, 0, NULL, 0));
+               return sigaction1(l, native_signo, &nbsa, 0, NULL, 0);
 
        case SVR4_SIGPAUSE_MASK:
                mutex_enter(p->p_lock);
                ss = l->l_sigmask;
                mutex_exit(p->p_lock);
-               sigdelset(&ss, signum);
-               return (sigsuspend1(l, &ss));
+               sigdelset(&ss, native_signo);
+               return sigsuspend1(l, &ss);
 
        default:
-               return (ENOSYS);
+               return ENOSYS;
        }
 }
 



Home | Main Index | Thread Index | Old Index