Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/ktruss Add support for SIGRTMIN+1..SIGRTMAX-1 signal...



details:   https://anonhg.NetBSD.org/src/rev/6d1377f3cb30
branches:  trunk
changeset: 451107:6d1377f3cb30
user:      kamil <kamil%NetBSD.org@localhost>
date:      Mon May 06 11:58:37 2019 +0000

description:
Add support for SIGRTMIN+1..SIGRTMAX-1 signals in ktruss(1)

Generate misc.c and misc.h with entries for signals between SIGRTMIN+1
and SIGRTMAX-1.

diffstat:

 usr.bin/ktruss/makeerrnos.sh |  14 +++++++++++++-
 1 files changed, 13 insertions(+), 1 deletions(-)

diffs (34 lines):

diff -r 5285dd469c1d -r 6d1377f3cb30 usr.bin/ktruss/makeerrnos.sh
--- a/usr.bin/ktruss/makeerrnos.sh      Mon May 06 08:32:40 2019 +0000
+++ b/usr.bin/ktruss/makeerrnos.sh      Mon May 06 11:58:37 2019 +0000
@@ -1,6 +1,6 @@
 #! /bin/sh
 #
-#      $NetBSD: makeerrnos.sh,v 1.6 2012/03/12 22:02:07 dyoung Exp $
+#      $NetBSD: makeerrnos.sh,v 1.7 2019/05/06 11:58:37 kamil Exp $
 
 if [ $# -ne 3 ]; then
        echo "usage: makeerrnos.sh errno.h signal.h output"
@@ -53,10 +53,22 @@
                        break;
        i++;
        j = i + 1;
+
+       if ($i == "SIGRTMIN") {
+               sigrtmin=$j;
+       }
+       if ($i == "SIGRTMAX") {
+               sigrtmax=$j;
+       }
+
        #
        printf("\t{ \"%s\", %s },\n", $i, $j);
 }
 END {
+       j = 1;
+       for (i = sigrtmin + 1; i < sigrtmax; i++) {
+               printf("\t{ \"SIGRTMIN+%s\", %s },\n", j++, i);
+       }
        print " { \"0\", 0 },\n";
 }
 ' | sort -n -k 3 >> $CFILE



Home | Main Index | Thread Index | Old Index