aboutsummaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorAndrew Thompson <thompsa@FreeBSD.org>2009-02-24 00:53:10 +0000
committerAndrew Thompson <thompsa@FreeBSD.org>2009-02-24 00:53:10 +0000
commit8b446f57a85dfd201c4da0ef9eb71c3cadd685d0 (patch)
treed0bba76dcbc288bad715b392c05f0eaada370eaa /usr.bin
parent211211de831cf0b2474deb94345ff76680f07e88 (diff)
Notes
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/kdump/mkioctls5
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.bin/kdump/mkioctls b/usr.bin/kdump/mkioctls
index 5feae115a3c7a..cad3c962aec16 100644
--- a/usr.bin/kdump/mkioctls
+++ b/usr.bin/kdump/mkioctls
@@ -18,11 +18,14 @@ fi
LC_ALL=C; export LC_ALL
+# include subdirs to exclude from the search
+exclude="^legacy/.*"
+
# Build a list of headers that have ioctls in them.
# XXX should we use an ANSI cpp?
ioctl_includes=`
cd $1
- find -H -s * -name '*.h' |
+ find -H -s * -name '*.h' \! -regex $exclude |
xargs egrep -l \
'^#[ ]*define[ ]+[A-Za-z_][A-Za-z0-9_]*[ ]+_IO[^a-z0-9_]' |
awk '{printf("#include <%s>\\\\n", $1)}'