aboutsummaryrefslogtreecommitdiffstats
path: root/docs/syscall_descriptions_syntax.md
diff options
context:
space:
mode:
authorPaul Chaignon <paul.chaignon@orange.com>2019-10-26 15:31:00 +0200
committerDmitry Vyukov <dvyukov@google.com>2019-11-01 19:14:49 +0100
commit997ccc675b3dc049ad3ce922580397bd546956ea (patch)
tree969f40091b078b608f41d6668218724a732d2276 /docs/syscall_descriptions_syntax.md
parentf922d4435a79739a2abfdd4100f3eec10a5ef41b (diff)
pkg/compiler: define fileoff template
Signed-off-by: Paul Chaignon <paul.chaignon@orange.com>
Diffstat (limited to 'docs/syscall_descriptions_syntax.md')
-rw-r--r--docs/syscall_descriptions_syntax.md3
1 files changed, 2 insertions, 1 deletions
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]]