Add "sys/dkbad.h" for DIOCSBAD from sys/dkio.h.
Use # to start comment in awk program.
This commit is contained in:
parent
5f593fa3da
commit
97b2d1519a
@ -1,5 +1,5 @@
|
||||
#!/bin/sh
|
||||
# $NetBSD: mkioctls,v 1.16 2004/05/10 15:25:57 christos Exp $
|
||||
# $NetBSD: mkioctls,v 1.17 2004/05/10 20:41:32 hannken Exp $
|
||||
#
|
||||
# Copyright (c) 1994
|
||||
# The Regents of the University of California. All rights reserved.
|
||||
@ -44,6 +44,7 @@ echo "typedef struct videomemory_t videomemory_t;" # XXX arm video lossage
|
||||
echo "#include <sys/types.h>"
|
||||
echo "#include <sys/param.h>"
|
||||
echo "#include <sys/disk.h>"
|
||||
echo "#include <sys/dkbad.h>"
|
||||
echo "#include <sys/mount.h>"
|
||||
echo "#include <sys/termios.h>"
|
||||
echo "#include <sys/disklabel.h>"
|
||||
@ -64,11 +65,11 @@ done | sed -e "s,${DESTDIR}/usr/include/,,g"
|
||||
|
||||
${CC:-cc} -E -nostdinc -idirafter $DESTDIR/usr/include -dM ${1+"$@"} | tee sourcefile | awk '
|
||||
BEGIN {
|
||||
keep["SLIOCGUNIT"] = 1; /* Same as PPPIOCGASYNCMAP */
|
||||
keep["SIOCRMNAT"] = 1; /* Same as SIOCRMAFR */
|
||||
keep["SIOCADNAT"] = 1; /* Same as SIOCADAFR */
|
||||
keep["SIOCDELST"] = 1; /* Same as SIOCRMNAT */
|
||||
keep["CHIOGPICKER"] = 1; /* Same as CDIOREADTOCHEADER */
|
||||
keep["SLIOCGUNIT"] = 1; # Same as PPPIOCGASYNCMAP
|
||||
keep["SIOCRMNAT"] = 1; # Same as SIOCRMAFR
|
||||
keep["SIOCADNAT"] = 1; # Same as SIOCADAFR
|
||||
keep["SIOCDELST"] = 1; # Same as SIOCRMNAT
|
||||
keep["CHIOGPICKER"] = 1; # Same as CDIOREADTOCHEADER
|
||||
|
||||
print ""
|
||||
print "char *ioctlname __P((long));"
|
||||
|
Loading…
x
Reference in New Issue
Block a user