From e6529b30ec934f285d57dc16dd8acbbab074f102 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Tue, 29 Dec 2015 15:00:57 +0100 Subject: sys: add union type --- sys/sys.txt | 32 ++++++-------------------------- 1 file changed, 6 insertions(+), 26 deletions(-) (limited to 'sys/sys.txt') diff --git a/sys/sys.txt b/sys/sys.txt index a0976e26d..be7479532 100644 --- a/sys/sys.txt +++ b/sys/sys.txt @@ -707,25 +707,9 @@ sock_filter { } file_handle { - bytes int32 + bytes len[parent, int32] type int32 -# TODO: again embed array of variable length (bytes is the length) - handl0 int64 - handl1 int64 - handl2 int64 - handl3 int64 - handl4 int64 - handl5 int64 - handl6 int64 - handl7 int64 - handl8 int64 - handl9 int64 - handl10 int64 - handl11 int64 - handl12 int64 - handl13 int64 - handl14 int64 - handl15 int64 + handle array[int8] } mq_attr { @@ -902,9 +886,8 @@ ip_msfilter { multi in_addr iface in_addr fmode flags[ip_msfilter_mode, int32] - numsrc flags[ip_msfilter_numsrc, int32] -# TODO: this is variable-length array and numsrc it its length - slist in_addr + numsrc len[slist, int32] + slist array[in_addr] } in_pktinfo { @@ -1011,11 +994,8 @@ fiemap { len int64 flags flags[fiemap_flags, int32] mapped int32 -# TODO: count is number of elements in extents array below - count int32 -# TODO: this is variable-length array - extent0 fiemap_extent - extent1 fiemap_extent + count len[extent, int32] + extent array[fiemap_extent] } fiemap_extent { -- cgit mrf-deployment