From 002cecf2022de3ab01c87f905477aa3b063d73fc Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Fri, 2 Mar 2018 16:14:57 +0100 Subject: pkg/compiler: allow specifying static size for filename's Sometimes filenames are embed into structs and need to take fixed space. --- docs/syscall_descriptions_syntax.md | 4 +++- 1 file changed, 3 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 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 -- cgit mrf-deployment