aboutsummaryrefslogtreecommitdiffstats
path: root/docs/syscall_descriptions_syntax.md
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2018-03-02 16:14:57 +0100
committerDmitry Vyukov <dvyukov@google.com>2018-03-05 12:10:27 +0100
commit002cecf2022de3ab01c87f905477aa3b063d73fc (patch)
tree674ee06d247de287e04017600f7fc52dc7ba58ec /docs/syscall_descriptions_syntax.md
parent5ef8dbdf5a63ccf7e069527dbb2493dc2ef0c319 (diff)
pkg/compiler: allow specifying static size for filename's
Sometimes filenames are embed into structs and need to take fixed space.
Diffstat (limited to 'docs/syscall_descriptions_syntax.md')
-rw-r--r--docs/syscall_descriptions_syntax.md4
1 files changed, 3 insertions, 1 deletions
diff --git a/docs/syscall_descriptions_syntax.md b/docs/syscall_descriptions_syntax.md
index 42a6439dd..6d3306232 100644
--- a/docs/syscall_descriptions_syntax.md
+++ b/docs/syscall_descriptions_syntax.md
@@ -42,7 +42,9 @@ rest of the type-options are type-specific:
"stringnoz": a non-zero-terminated memory buffer (no pointer indirection implied), type-options:
either a string value in quotes for constant strings (e.g. "foo"),
or a reference to string flags,
-"filename": a file/link/dir name, no pointer indirection implied, in most cases you want `ptr[in, filename]`
+"filename": a file/link/dir name, no pointer indirection implied,
+ in most cases you want `ptr[in, filename]`, type-options:
+ static size (optional)
"fileoff": offset within a file
"len": length of another field (for array it is number of elements), type-options:
argname of the object