From 162bd26be4e47d89f305435f7a1917b023138ed6 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Mon, 1 Apr 2019 12:46:10 +0200 Subject: pkg/compiler: make buffer alias to ptr[array[int8]] Ptr type has special handling of direction (pointers are always input). But buffer type missed this special case all the time. Make buffer less special by aliasing to the ptr[array[int8]] type. As the result buffer type can't have optional trailing "opt" attribute because we don't have such support for templates yet. Change such cases to use ptr type directly. Fixes #1097 --- sys/linux/sys.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/linux/sys.txt') diff --git a/sys/linux/sys.txt b/sys/linux/sys.txt index f932d3cc3..11fec7be7 100644 --- a/sys/linux/sys.txt +++ b/sys/linux/sys.txt @@ -319,7 +319,7 @@ init_module(mod ptr[in, string], len len[mod], args ptr[in, string]) finit_module(fd fd, args ptr[in, string], flags flags[finit_module_flags]) delete_module(name ptr[in, string], flags flags[delete_module_flags]) kexec_load(entry intptr, nr_segments len[segments], segments ptr[in, array[kexec_segment]], flags flags[kexec_load_flags]) -syslog(cmd flags[syslog_cmd], buf buffer[out, opt], len len[buf]) +syslog(cmd flags[syslog_cmd], buf ptr[out, array[int8], opt], len len[buf]) uname(buf buffer[out]) sysinfo(info buffer[out]) ustat(dev intptr, buf ptr[out, ustat]) -- cgit mrf-deployment