Source-Changes-HG archive

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

[src/trunk]: src/sys/kern CTASSERT that NSIG <= 128. There are many hard-cod...



details:   https://anonhg.NetBSD.org/src/rev/552e7c122324
branches:  trunk
changeset: 982165:552e7c122324
user:      simonb <simonb%NetBSD.org@localhost>
date:      Sat Apr 03 11:19:11 2021 +0000

description:
CTASSERT that NSIG <= 128.  There are many hard-coded assumptions that
there are <= 4 x 32bit signal mask bits.

diffstat:

 sys/kern/kern_sig.c |  7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diffs (28 lines):

diff -r 33daabedeb58 -r 552e7c122324 sys/kern/kern_sig.c
--- a/sys/kern/kern_sig.c       Sat Apr 03 11:08:40 2021 +0000
+++ b/sys/kern/kern_sig.c       Sat Apr 03 11:19:11 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: kern_sig.c,v 1.396 2021/01/11 17:18:51 skrll Exp $     */
+/*     $NetBSD: kern_sig.c,v 1.397 2021/04/03 11:19:11 simonb Exp $    */
 
 /*-
  * Copyright (c) 2006, 2007, 2008, 2019 The NetBSD Foundation, Inc.
@@ -70,7 +70,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_sig.c,v 1.396 2021/01/11 17:18:51 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_sig.c,v 1.397 2021/04/03 11:19:11 simonb Exp $");
 
 #include "opt_execfmt.h"
 #include "opt_ptrace.h"
@@ -110,6 +110,9 @@
 
 #include <uvm/uvm_extern.h>
 
+/* Many hard-coded assumptions that there are <= 4 x 32bit signal mask bits */
+__CTASSERT(NSIG <= 128);
+
 #define        SIGQUEUE_MAX    32
 static pool_cache_t    sigacts_cache   __read_mostly;
 static pool_cache_t    ksiginfo_cache  __read_mostly;



Home | Main Index | Thread Index | Old Index