forked from OSchip/llvm-project
Drop now hidden ioctl(2) operations for NetBSD
POWER_IOC_GET_TYPE_WITH_LOSSAGE is no longer accessible from userland. llvm-svn: 345572
This commit is contained in:
parent
4c5620f233
commit
7fc4f0d9af
|
@ -314,6 +314,7 @@ FNR == 1 {
|
|||
$0 ~ /PRIQ_IF_DETACH/ ||
|
||||
$0 ~ /PRIQ_ENABLE/ ||
|
||||
$0 ~ /WFQ_IF_ATTACH/ ||
|
||||
$0 ~ /POWER_IOC_GET_TYPE_WITH_LOSSAGE/ ||
|
||||
$0 ~ /HFSC_DEL_FILTER/) {
|
||||
# There are entries with duplicate codes.. disable the less used ones
|
||||
next
|
||||
|
@ -345,10 +346,6 @@ FNR == 1 {
|
|||
|
||||
# This !NONE check allows to skip some unparsable entries
|
||||
if (ioctl_mode[ioctl_table_max] != "NONE") {
|
||||
# special cases first
|
||||
if ($0 ~ /POWER_IOC_GET_TYPE_WITH_LOSSAGE/) {
|
||||
ioctl_type[ioctl_table_max] = "sizeof(uptr)"
|
||||
} else {
|
||||
n = split($0, a, ",")
|
||||
if (n == 3) {
|
||||
gsub(/^[ ]+/, "", a[3])
|
||||
|
@ -357,7 +354,6 @@ FNR == 1 {
|
|||
ioctl_type[ioctl_table_max] = type
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
ioctl_table_max++
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue