summaryrefslogtreecommitdiff
path: root/pkg/strace/sen.awk
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2017-02-25 14:32:30 -0800
committerMichael Forney <mforney@mforney.org>2017-02-25 14:50:33 -0800
commitd785e9083077a7620a7cb9c2efada4dab7112bc0 (patch)
treedc11e417341ad637ba2d03cdd29f4d951445cdb6 /pkg/strace/sen.awk
parent2ffb8bfc373bca335f99debebeafe8cf48381063 (diff)
Add strace 4.16
Diffstat (limited to 'pkg/strace/sen.awk')
-rw-r--r--pkg/strace/sen.awk16
1 files changed, 16 insertions, 0 deletions
diff --git a/pkg/strace/sen.awk b/pkg/strace/sen.awk
new file mode 100644
index 00000000..6a0e2364
--- /dev/null
+++ b/pkg/strace/sen.awk
@@ -0,0 +1,16 @@
+BEGIN {
+ print "enum {"
+ print "SEN_printargs = 0,"
+}
+
+match($0, /SEN\([^)]+\)/) {
+ name = substr($0, RSTART + 4, RLENGTH - 5)
+ if (name != "printargs")
+ print "SEN_" name "," | "sort -u"
+}
+
+END {
+ if (close("sort -u"))
+ exit 1
+ print "};"
+}