strace/linux/ioctlent-filter.awk
Dmitry V. Levin 17e3860ee8 Filter out redundant "*32" ioctl entries
* linux/ioctlent-filter.awk: New file.
* Makefile.am: Use it.
* linux/ioctlent.h.in: Removed redundant "*32" entries.
2012-10-27 01:13:53 +00:00

20 lines
194 B
Awk

#!/bin/awk -f
# Filter out redundant "*32" symbols.
BEGIN {
s=""
c=""
}
NF == 3 && $2 ~ /^"[^",]*",$/ {
if ($2 == s && $3 == c)
next
s = $2
sub(/",$/, "32\",", s)
c = $3
}
{
print
}