1set -e 2
| 1set -e 2
|
| 3# $FreeBSD: head/usr.bin/kdump/mkioctls 51960 1999-10-06 07:45:30Z n_hibma $ 4
|
3# Build a list of headers that have ioctls in them. 4# XXX should we use an ANSI cpp? 5# XXX netipx conflicts with netns (leave out netns). 6ioctl_includes=` 7 cd $DESTDIR/usr/include 8 find * -name '*.h' -follow | 9 egrep -v '^(netns)/' | 10 xargs egrep -l \ 11'^#[ ]*define[ ]+[A-Za-z_][A-Za-z0-0_]*[ ]+_IO[^a-z0-9_]' | 12 sed -e 's/^/#include </' -e s'/$/>/' 13` 14 15echo "$ioctl_includes" | 16 cpp -I$DESTDIR/usr/include -dM | 17 awk -v ioctl_includes="$ioctl_includes" ' 18BEGIN { 19 print "/* XXX obnoxious prerequisites. */" 20 print "#define COMPAT_43" 21 print "#include <sys/param.h>"
| 5# Build a list of headers that have ioctls in them. 6# XXX should we use an ANSI cpp? 7# XXX netipx conflicts with netns (leave out netns). 8ioctl_includes=` 9 cd $DESTDIR/usr/include 10 find * -name '*.h' -follow | 11 egrep -v '^(netns)/' | 12 xargs egrep -l \ 13'^#[ ]*define[ ]+[A-Za-z_][A-Za-z0-0_]*[ ]+_IO[^a-z0-9_]' | 14 sed -e 's/^/#include </' -e s'/$/>/' 15` 16 17echo "$ioctl_includes" | 18 cpp -I$DESTDIR/usr/include -dM | 19 awk -v ioctl_includes="$ioctl_includes" ' 20BEGIN { 21 print "/* XXX obnoxious prerequisites. */" 22 print "#define COMPAT_43" 23 print "#include <sys/param.h>"
|
22 print "#include <sys/device.h>"
| |
23 print "#include <sys/devicestat.h>" 24 print "#include <sys/disklabel.h>" 25 print "#include <sys/dkbad.h>" 26 print "#include <sys/socket.h>" 27 print "#include <sys/time.h>" 28 print "#include <sys/tty.h>" 29 print "#include <net/if.h>" 30 print "#include <net/if_var.h>"
--- 48 unchanged lines hidden --- | 24 print "#include <sys/devicestat.h>" 25 print "#include <sys/disklabel.h>" 26 print "#include <sys/dkbad.h>" 27 print "#include <sys/socket.h>" 28 print "#include <sys/time.h>" 29 print "#include <sys/tty.h>" 30 print "#include <net/if.h>" 31 print "#include <net/if_var.h>"
--- 48 unchanged lines hidden --- |