diff options
| author | Jason A. Donenfeld <Jason@zx2c4.com> | 2020-02-07 22:26:45 +0100 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2020-02-10 10:51:16 +0100 |
| commit | b97dee873b419c5386b2742530c98a18dae36e2b (patch) | |
| tree | 67afbc63c3acf5196495baa9b62315ad5eef09b4 /docs/syscall_descriptions_syntax.md | |
| parent | 4f86d327735efede368648e63570189966cb30c0 (diff) | |
pkg/compiler: allow for escaped strings
This adds stringnozescapes to allow parsing of escape sequences in
strings.
Diffstat (limited to 'docs/syscall_descriptions_syntax.md')
| -rw-r--r-- | docs/syscall_descriptions_syntax.md | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/docs/syscall_descriptions_syntax.md b/docs/syscall_descriptions_syntax.md index 33652c8cb..43374d4dd 100644 --- a/docs/syscall_descriptions_syntax.md +++ b/docs/syscall_descriptions_syntax.md @@ -41,6 +41,8 @@ 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, +"stringnozescapes": same as "stringnoz", except escape sequences are respected, in order to have + binary strings such as "\x12\x34\x56". "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) |
