From b97dee873b419c5386b2742530c98a18dae36e2b Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Fri, 7 Feb 2020 22:26:45 +0100 Subject: pkg/compiler: allow for escaped strings This adds stringnozescapes to allow parsing of escape sequences in strings. --- docs/syscall_descriptions_syntax.md | 2 ++ 1 file changed, 2 insertions(+) (limited to 'docs/syscall_descriptions_syntax.md') 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) -- cgit mrf-deployment