Skip to content
This repository was archived by the owner on Apr 23, 2020. It is now read-only.

Commit e714d8a

Browse files
committed
Update generate_netbsd_ioctls.awk for NetBSD 9.99.3
Register new ioctl argument types passed in ioctl(2) calls. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@368246 91177308-0d34-0410-b5e6-96231b3b80d8
1 parent ae6271b commit e714d8a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Diff for: utils/generate_netbsd_ioctls.awk

+6
Original file line numberDiff line numberDiff line change
@@ -482,6 +482,8 @@ function get_type(string)
482482
return "sizeof(u16)"
483483
} else if (string == "u_int32_t" || string == "uint32_t") {
484484
return "sizeof(u32)"
485+
} else if (string == "u_int64_t" || string == "uint64_t") {
486+
return "sizeof(u64)"
485487
} else if (string ~ /\*$/) {
486488
return "sizeof(uptr)"
487489
} else if (string == "off_t") {
@@ -623,6 +625,10 @@ function get_type(string)
623625
return "struct_RF_ProgressInfo_sz"
624626
} else if (string == "nvlist_ref_t") {
625627
return "struct_nvlist_ref_sz"
628+
} else if (string == "spi_ioctl_transfer_t") {
629+
return "struct_spi_ioctl_transfer_sz"
630+
} else if (string == "spi_ioctl_configure_t") {
631+
return "struct_spi_ioctl_configure_sz"
626632
} else {
627633
print "Unrecognized entry: " string
628634
print "Aborting"

0 commit comments

Comments
 (0)