diff options
| author | Andrew Thompson <thompsa@FreeBSD.org> | 2009-05-27 16:16:56 +0000 |
|---|---|---|
| committer | Andrew Thompson <thompsa@FreeBSD.org> | 2009-05-27 16:16:56 +0000 |
| commit | 11c63ede84d1a2de51406bf889d348fa3c37c495 (patch) | |
| tree | 723b0aed327f79b20884592648d5b64748a24f12 /usr.bin | |
| parent | 3c3c0b0bc2ae1ef7ffcf45e9d451eaffd2fa0dd2 (diff) | |
Notes
Diffstat (limited to 'usr.bin')
| -rw-r--r-- | usr.bin/kdump/mkioctls | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/usr.bin/kdump/mkioctls b/usr.bin/kdump/mkioctls index 9c7e9342017c..7ca773dca9de 100644 --- a/usr.bin/kdump/mkioctls +++ b/usr.bin/kdump/mkioctls @@ -18,14 +18,11 @@ 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' \! -regex $exclude | + find -H -s * -name '*.h' | xargs egrep -l \ '^#[ ]*define[ ]+[A-Za-z_][A-Za-z0-9_]*[ ]+_IO[^a-z0-9_]' | awk '{printf("#include <%s>\\\\n", $1)}' |
