Source-Changes-HG archive

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

[src/netbsd-6-1]: src/sys/compat/svr4_32 Pull up following revision(s) (reque...



details:   https://anonhg.NetBSD.org/src/rev/598ad7e009c3
branches:  netbsd-6-1
changeset: 776242:598ad7e009c3
user:      snj <snj%NetBSD.org@localhost>
date:      Sat Aug 19 04:02:22 2017 +0000

description:
Pull up following revision(s) (requested by martin in ticket #1479):
        sys/compat/svr4_32/svr4_32_signal.c: 1.30
make it compile again.

diffstat:

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

diffs (70 lines):

diff -r fcdc7ad83689 -r 598ad7e009c3 sys/compat/svr4_32/svr4_32_signal.c
--- a/sys/compat/svr4_32/svr4_32_signal.c       Sat Aug 19 03:49:59 2017 +0000
+++ b/sys/compat/svr4_32/svr4_32_signal.c       Sat Aug 19 04:02:22 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: svr4_32_signal.c,v 1.26.56.1 2017/08/19 03:40:48 snj Exp $      */
+/*     $NetBSD: svr4_32_signal.c,v 1.26.56.2 2017/08/19 04:02:22 snj 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.56.1 2017/08/19 03:40:48 snj Exp $");
+__KERNEL_RCSID(0, "$NetBSD: svr4_32_signal.c,v 1.26.56.2 2017/08/19 04:02:22 snj 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