From 997ccc675b3dc049ad3ce922580397bd546956ea Mon Sep 17 00:00:00 2001 From: Paul Chaignon Date: Sat, 26 Oct 2019 15:31:00 +0200 Subject: pkg/compiler: define fileoff template Signed-off-by: Paul Chaignon --- docs/syscall_descriptions_syntax.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'docs/syscall_descriptions_syntax.md') diff --git a/docs/syscall_descriptions_syntax.md b/docs/syscall_descriptions_syntax.md index 28dcc5d96..3592d61b6 100644 --- a/docs/syscall_descriptions_syntax.md +++ b/docs/syscall_descriptions_syntax.md @@ -44,7 +44,6 @@ rest of the type-options are type-specific: "fmt": a string representation of an integer (not zero-terminated), type-options: format (one of "dec", "hex", "oct") and the value (a resource, int, flags, const or proc) the resulting data is always fixed-size (formatted as "%020llu", "0x%016llx" or "%023llo", respectively) -"fileoff": offset within a file "len": length of another field (for array it is number of elements), type-options: argname of the object "bytesize": similar to "len", but always denotes the size in bytes, type-options: @@ -188,6 +187,8 @@ type bool32 int32[0:1] type bool64 int64[0:1] type boolptr intptr[0:1] +type fileoff[BASE] BASE + type filename string[filename] type buffer[DIR] ptr[DIR, array[int8]] -- cgit mrf-deployment