Update generate_netbsd_ioctls.awk for NetBSD 9.99.3

Register new ioctl argument types passed in ioctl(2) calls.

llvm-svn: 368246
This commit is contained in:
Kamil Rytarowski 2019-08-08 02:08:23 +00:00
parent 7dbdc8de18
commit 9d161896a1
1 changed files with 6 additions and 0 deletions

View File

@ -482,6 +482,8 @@ function get_type(string)
return "sizeof(u16)"
} else if (string == "u_int32_t" || string == "uint32_t") {
return "sizeof(u32)"
} else if (string == "u_int64_t" || string == "uint64_t") {
return "sizeof(u64)"
} else if (string ~ /\*$/) {
return "sizeof(uptr)"
} else if (string == "off_t") {
@ -623,6 +625,10 @@ function get_type(string)
return "struct_RF_ProgressInfo_sz"
} else if (string == "nvlist_ref_t") {
return "struct_nvlist_ref_sz"
} else if (string == "spi_ioctl_transfer_t") {
return "struct_spi_ioctl_transfer_sz"
} else if (string == "spi_ioctl_configure_t") {
return "struct_spi_ioctl_configure_sz"
} else {
print "Unrecognized entry: " string
print "Aborting"