From 49519f067f7fc9bfbf869e6851a4d398a9f7863f Mon Sep 17 00:00:00 2001 From: Florent Revest Date: Thu, 8 Jun 2023 17:56:49 +0200 Subject: pkg/csource: annotate syscall() args with their names This annotates syscall arguments so they are easier to read without having to pull out the syscall's man page. E.g: syscall(__NR_mmap, /*addr=*/0x21000000ul, /*len=*/0x1000ul, /*prot=*/0ul, ... Signed-off-by: Florent Revest --- sys/test/csource.txt | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'sys') diff --git a/sys/test/csource.txt b/sys/test/csource.txt index e4c447b54..1f524da89 100644 --- a/sys/test/csource.txt +++ b/sys/test/csource.txt @@ -5,10 +5,10 @@ resource fd0[int32] -csource0(a int32) fd0 -csource1(a fd0) -csource2(a ptr[in, array[int8]]) -csource3(a ptr[in, array[const[0, int8], 10]]) -csource4(a ptr[in, array[const[0x30, int8], 10]]) -csource5(a ptr[in, array[const[0x3130, int16], 5]]) -csource6(a ptr[in, array[const[0x3130, int16be], 6]]) +csource0(num int32) fd0 +csource1(fd fd0) +csource2(buf ptr[in, array[int8]]) +csource3(buf ptr[in, array[const[0, int8], 10]]) +csource4(buf ptr[in, array[const[0x30, int8], 10]]) +csource5(buf ptr[in, array[const[0x3130, int16], 5]]) +csource6(buf ptr[in, array[const[0x3130, int16be], 6]]) -- cgit mrf-deployment