[compiler-rt] r368246 - Update generate_netbsd_ioctls.awk for NetBSD 9.99.3
Kamil Rytarowski via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 7 19:08:23 PDT 2019
Author: kamil
Date: Wed Aug 7 19:08:23 2019
New Revision: 368246
URL: http://llvm.org/viewvc/llvm-project?rev=368246&view=rev
Log:
Update generate_netbsd_ioctls.awk for NetBSD 9.99.3
Register new ioctl argument types passed in ioctl(2) calls.
Modified:
compiler-rt/trunk/utils/generate_netbsd_ioctls.awk
Modified: compiler-rt/trunk/utils/generate_netbsd_ioctls.awk
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/utils/generate_netbsd_ioctls.awk?rev=368246&r1=368245&r2=368246&view=diff
==============================================================================
--- compiler-rt/trunk/utils/generate_netbsd_ioctls.awk (original)
+++ compiler-rt/trunk/utils/generate_netbsd_ioctls.awk Wed Aug 7 19:08:23 2019
@@ -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"
More information about the llvm-commits
mailing list