6 print "/* This file was automatically generated */"
7 print "/* by the awk script \"sigconv.awk\". */\n"
8 print "struct sigdesc {"
12 print "struct sigdesc sigdesc[] = {"
15 /^#define[ \t][ \t]*SIG[A-Z]+[0-9]*[ \t]/ {
17 j = sprintf("%d", $3);
23 siglist[j] = sprintf("{ \"%s\",\t%2d },", \
26 /^#[ \t]*define[ \t][ \t]*SIG[A-Z]+[0-9]*[ \t]/ {
28 j = sprintf("%d", $4);
34 siglist[j] = sprintf("{ \"%s\",\t%2d },", \
37 /^#[ \t]*define[ \t][ \t]*_SIG[A-Z]+[0-9]*[ \t]/ {
39 j = sprintf("%d", $4);
45 siglist[j] = sprintf("{ \"%s\",\t%2d },", \
50 for (n = 1; n <= nsig; n++)
52 printf(" %s\n", siglist[n]);
54 printf(" { NULL,\t 0 }\n};\n");