Add vop_stdpathconf and default it so filesystems do not need to declare
[dragonfly.git] / contrib / top / sigconv.awk
blob8c90d8dc749e895f303b8283b4acf6f6060d9744
1 BEGIN {
2 nsig = 0;
3 j = 0;
4 print "/* This file was automatically generated */"
5 print "/* by the awk script \"sigconv.awk\". */\n"
6 print "struct sigdesc {"
7 print " char *name;"
8 print " int number;"
9 print "};\n"
10 print "struct sigdesc sigdesc[] = {"
13 /^#define[ \t][ \t]*SIG[A-Z]/ {
15 j = sprintf("%d", $3);
16 str = $2;
18 if (nsig < j)
19 nsig = j;
21 siglist[j] = sprintf("\"%s\",\t%2d,", \
22 substr(str, 4), j);
24 /^#[ \t]*define[ \t][ \t]*SIG[A-Z]/ {
26 j = sprintf("%d", $4);
27 str = $3;
29 if (nsig < j)
30 nsig = j;
32 siglist[j] = sprintf("\"%s\",\t%2d,", \
33 substr(str, 4), j);
35 /^#[ \t]*define[ \t][ \t]*_SIG[A-Z]/ {
37 j = sprintf("%d", $4);
38 str = $3;
40 if (nsig < j)
41 nsig = j;
43 siglist[j] = sprintf("\"%s\",\t%2d,", \
44 substr(str, 5), j);
47 END {
48 for (n = 1; n <= nsig; n++)
49 if (siglist[n] != "")
50 printf(" %s\n", siglist[n]);
52 printf(" NULL,\t 0\n};\n");