4 print "/* This file was automatically generated */"
5 print "/* by the awk script \"sigconv.awk\". */\n"
6 print "struct sigdesc {"
10 print "struct sigdesc sigdesc[] = {"
13 /^
#define[ \t][ \t]*SIG[A-Z]/ {
15 j =
sprintf("%d", $
3);
21 siglist
[j
] =
sprintf("\"%s\",\t%2d,", \
24 /^
#[ \t]*define[ \t][ \t]*SIG[A-Z]/ {
26 j =
sprintf("%d", $
4);
32 siglist
[j
] =
sprintf("\"%s\",\t%2d,", \
35 /^
#[ \t]*define[ \t][ \t]*_SIG[A-Z]/ {
37 j =
sprintf("%d", $
4);
43 siglist
[j
] =
sprintf("\"%s\",\t%2d,", \
48 for (n =
1; n
<= nsig
; n
++)
50 printf(" %s\n", siglist
[n
]);
52 printf(" NULL,\t 0\n};\n");