Don't skip ioctls with a digit in the name.

Add a number of conflicting entries.
Add some entries from the IPv6 stack where the used structure is not
exported to userland.
This commit is contained in:
joerg 2008-03-11 20:39:57 +00:00
parent e33cbf5cfc
commit e1032da53f
1 changed files with 13 additions and 2 deletions

View File

@ -1,5 +1,5 @@
#!/bin/sh
# $NetBSD: mkioctls,v 1.34 2008/02/11 22:43:39 dyoung Exp $
# $NetBSD: mkioctls,v 1.35 2008/03/11 20:39:57 joerg Exp $
#
# Copyright (c) 1994
# The Regents of the University of California. All rights reserved.
@ -37,6 +37,7 @@
echo "/* Automatically generated file, do not edit! */"
#echo "#define const" # XXX: timepps lossage
echo "#define COMPAT_43"
echo "#define COMPAT_FREEBSD_NET80211"
echo "struct lwp;"
echo "struct crap { int _xxx; };" # XXX arm video lossage
echo "typedef struct crap videomemory_t;" # XXX arm video lossage
@ -110,6 +111,16 @@ BEGIN {
keep["CLOCKCTL_ADJTIME"] = 1; # Same as TCTRL_MODEM_PWR
keep["OFIOCNEXTPROP"] = 1; # Same as PNVIOCGETNUMGE
keep["OFIOCGET"] = 1; # Same as PNVIOCGET
keep["SIOCPHASE2"] = 1; # Same as GRESADDRS
keep["I4B_CTL_CLR_CHIPSTAT"] = 1; # Same as CLOCKCTL_NTP_ADJTIME
keep["STICIO_STARTQ"] = 1; # Same as SPKRTONE
keep["STICIO_RESET860"] = 1; # Same as SCIOCRESTART
keep["STICIO_START860"] = 1; # Same as SPKRTUNE
keep["I4B_CTL_SET_DEBUG"] = 1; # Same as CLOCKCTL_SETTIMEOFDAY
keep["SIOCGETSGCNT_IN6"] = 1; # Type sioc_sg_req6 not exported
keep["SIOCGPRLST_IN6"] = 1; Type in6_oprlist not exported
keep["SIOCGETMIFCNT_IN6"] = 1; Type sioc_mif_req6 not exported
i = 1;
altqt[i++] = "RED";
@ -152,7 +163,7 @@ BEGIN {
print "\tswitch (val) {\n"
}
/^#[ ]*define[ ]*[A-Z_]*[ ]*_IO[W]*[R]*[ ]*\(/ {
/^#[ ]*define[ ]*[A-Z0-9_]*[ ]*_IO[W]*[R]*[ ]*\(/ {
# find where the name starts
for (i = 1; i <= NF; i++)