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.
This commit is contained in:
parent
1ee0f07b95
commit
453514a280
|
@ -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 @@ ${AWK} '
|
|||
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
|
||||
|
|
Loading…
Reference in New Issue