aboutsummaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorFlorent Revest <revest@chromium.org>2023-06-08 17:56:49 +0200
committerAleksandr Nogikh <wp32pw@gmail.com>2023-06-09 17:56:11 +0200
commit49519f067f7fc9bfbf869e6851a4d398a9f7863f (patch)
treeaaab672be53e832a098f8797fad2cdebadf67cf6 /sys
parentf6c9fc7b5ee92530706841871ae962f2300f4f26 (diff)
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 <revest@chromium.org>
Diffstat (limited to 'sys')
-rw-r--r--sys/test/csource.txt14
1 files changed, 7 insertions, 7 deletions
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]])