Source-Changes-HG archive

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

[src/trunk]: src/sys introduce SIGACTION_PS() macro - this is similar to SIGA...



details:   https://anonhg.NetBSD.org/src/rev/dc7066c01587
branches:  trunk
changeset: 499285:dc7066c01587
user:      jdolecek <jdolecek%NetBSD.org@localhost>
date:      Wed Nov 15 21:13:58 2000 +0000

description:
introduce SIGACTION_PS() macro - this is similar to SIGACTION(), but works
for (struct sigacts *) instead of (struct proc *)

diffstat:

 sys/arch/i386/i386/machdep.c |  4 ++--
 sys/sys/signalvar.h          |  3 ++-
 2 files changed, 4 insertions(+), 3 deletions(-)

diffs (35 lines):

diff -r 6db47ea6b4ce -r dc7066c01587 sys/arch/i386/i386/machdep.c
--- a/sys/arch/i386/i386/machdep.c      Wed Nov 15 21:06:33 2000 +0000
+++ b/sys/arch/i386/i386/machdep.c      Wed Nov 15 21:13:58 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: machdep.c,v 1.414 2000/11/14 22:55:05 thorpej Exp $    */
+/*     $NetBSD: machdep.c,v 1.415 2000/11/15 21:13:58 jdolecek Exp $   */
 
 /*-
  * Copyright (c) 1996, 1997, 1998, 2000 The NetBSD Foundation, Inc.
@@ -1138,7 +1138,7 @@
        /* Do we need to jump onto the signal stack? */
        onstack =
            (psp->ps_sigstk.ss_flags & (SS_DISABLE | SS_ONSTACK)) == 0 &&
-           (psp->ps_sigact[sig].sa_flags & SA_ONSTACK) != 0;
+           (SIGACTION_PS(psp, sig).sa_flags & SA_ONSTACK) != 0;
 
        /* Allocate space for the signal handler context. */
        if (onstack)
diff -r 6db47ea6b4ce -r dc7066c01587 sys/sys/signalvar.h
--- a/sys/sys/signalvar.h       Wed Nov 15 21:06:33 2000 +0000
+++ b/sys/sys/signalvar.h       Wed Nov 15 21:13:58 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: signalvar.h,v 1.25 2000/11/05 15:37:10 jdolecek Exp $  */
+/*     $NetBSD: signalvar.h,v 1.26 2000/11/15 21:13:58 jdolecek Exp $  */
 
 /*
  * Copyright (c) 1991, 1993
@@ -69,6 +69,7 @@
  * get signal action for process and signal; currently only for current process
  */
 #define SIGACTION(p, sig)      (p->p_sigacts->ps_sigact[(sig)])
+#define        SIGACTION_PS(ps, sig)   (ps->ps_sigact[(sig)])
 
 /*
  * Determine signal that should be delivered to process p, the current



Home | Main Index | Thread Index | Old Index