mkioctls (191936) | mkioctls (192768) |
---|---|
1#!/bin/sh 2# | 1#!/bin/sh 2# |
3# $FreeBSD: head/usr.bin/kdump/mkioctls 191936 2009-05-09 15:09:40Z ed $ | 3# $FreeBSD: head/usr.bin/kdump/mkioctls 192768 2009-05-25 20:07:41Z ed $ |
4 5set -e 6 7if [ "x$1" = "x-s" ]; then 8 use_switch=1 9 shift 10else 11 use_switch=0 --- 15 unchanged lines hidden (view full) --- 27 cd $1 28 find -H -s * -name '*.h' \! -regex $exclude | 29 xargs egrep -l \ 30'^#[ ]*define[ ]+[A-Za-z_][A-Za-z0-9_]*[ ]+_IO[^a-z0-9_]' | 31 awk '{printf("#include <%s>\\\\n", $1)}' 32` 33 34awk -v x="$ioctl_includes" 'BEGIN {print x}' | | 4 5set -e 6 7if [ "x$1" = "x-s" ]; then 8 use_switch=1 9 shift 10else 11 use_switch=0 --- 15 unchanged lines hidden (view full) --- 27 cd $1 28 find -H -s * -name '*.h' \! -regex $exclude | 29 xargs egrep -l \ 30'^#[ ]*define[ ]+[A-Za-z_][A-Za-z0-9_]*[ ]+_IO[^a-z0-9_]' | 31 awk '{printf("#include <%s>\\\\n", $1)}' 32` 33 34awk -v x="$ioctl_includes" 'BEGIN {print x}' | |
35 gcc -E -I$1 -dM - | | 35 gcc -E -I$1 -dM -DCOMPAT_43TTY - | |
36 awk -v ioctl_includes="$ioctl_includes" -v use_switch="$use_switch" ' 37BEGIN { 38 print "/* XXX obnoxious prerequisites. */" 39 print "#define COMPAT_43" 40 print "#define COMPAT_43TTY" 41 print "#include <sys/param.h>" 42 print "#include <sys/devicestat.h>" 43 print "#include <sys/disklabel.h>" --- 50 unchanged lines hidden --- | 36 awk -v ioctl_includes="$ioctl_includes" -v use_switch="$use_switch" ' 37BEGIN { 38 print "/* XXX obnoxious prerequisites. */" 39 print "#define COMPAT_43" 40 print "#define COMPAT_43TTY" 41 print "#include <sys/param.h>" 42 print "#include <sys/devicestat.h>" 43 print "#include <sys/disklabel.h>" --- 50 unchanged lines hidden --- |