summaryrefslogtreecommitdiffstats
path: root/compiler-rt/utils
diff options
context:
space:
mode:
authorKamil Rytarowski <n54@gmx.com>2018-10-30 08:32:47 +0000
committerKamil Rytarowski <n54@gmx.com>2018-10-30 08:32:47 +0000
commit7fc4f0d9af9778697911574ea6f08c64700b8253 (patch)
tree9dc1e1f14db940a10a243817b40fa09907685bde /compiler-rt/utils
parent4c5620f233cbf64ef7ed7f93640efbb44a4253ca (diff)
downloadbcm5719-llvm-7fc4f0d9af9778697911574ea6f08c64700b8253.tar.gz
bcm5719-llvm-7fc4f0d9af9778697911574ea6f08c64700b8253.zip
Drop now hidden ioctl(2) operations for NetBSD
POWER_IOC_GET_TYPE_WITH_LOSSAGE is no longer accessible from userland. llvm-svn: 345572
Diffstat (limited to 'compiler-rt/utils')
-rwxr-xr-xcompiler-rt/utils/generate_netbsd_ioctls.awk18
1 files changed, 7 insertions, 11 deletions
diff --git a/compiler-rt/utils/generate_netbsd_ioctls.awk b/compiler-rt/utils/generate_netbsd_ioctls.awk
index 9a92ff82a68..1796b22ffa5 100755
--- a/compiler-rt/utils/generate_netbsd_ioctls.awk
+++ b/compiler-rt/utils/generate_netbsd_ioctls.awk
@@ -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,17 +346,12 @@ 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])
- match(a[3], /[a-zA-Z0-9_* ]+/)
- type = get_type(substr(a[3], 0, RLENGTH))
- ioctl_type[ioctl_table_max] = type
- }
+ n = split($0, a, ",")
+ if (n == 3) {
+ gsub(/^[ ]+/, "", a[3])
+ match(a[3], /[a-zA-Z0-9_* ]+/)
+ type = get_type(substr(a[3], 0, RLENGTH))
+ ioctl_type[ioctl_table_max] = type
}
}
OpenPOWER on IntegriCloud