Deleted Added
full compact
mkioctls (53069) mkioctls (53079)
1set -e
2
1set -e
2
3# $FreeBSD: head/usr.bin/kdump/mkioctls 53069 1999-11-09 22:32:29Z dfr $
3# $FreeBSD: head/usr.bin/kdump/mkioctls 53079 1999-11-10 08:41:08Z dfr $
4
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)/' |

--- 25 unchanged lines hidden (view full) ---

37 print "#include <netinet/in.h>"
38 print "#include <netinet/ip_mroute.h>"
39 print "#include <cam/cam.h>"
40 print "#include <stdio.h>"
41 print ""
42 print ioctl_includes
43 print ""
44 print "char *"
4
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)/' |

--- 25 unchanged lines hidden (view full) ---

37 print "#include <netinet/in.h>"
38 print "#include <netinet/ip_mroute.h>"
39 print "#include <cam/cam.h>"
40 print "#include <stdio.h>"
41 print ""
42 print ioctl_includes
43 print ""
44 print "char *"
45 print "ioctlname(u_long val)"
45 print "ioctlname(register_t val)"
46 print "{"
47 print ""
48 generate_case_statement = 0
49 if (generate_case_statement)
50 print "\tswitch(val) {"
51}
52
53/^#[ ]*define[ ]+[A-Za-z_][A-Za-z0-9_]*[ ]+_IO/ {

--- 20 unchanged lines hidden ---
46 print "{"
47 print ""
48 generate_case_statement = 0
49 if (generate_case_statement)
50 print "\tswitch(val) {"
51}
52
53/^#[ ]*define[ ]+[A-Za-z_][A-Za-z0-9_]*[ ]+_IO/ {

--- 20 unchanged lines hidden ---