aboutsummaryrefslogtreecommitdiffstats
path: root/docs/syscall_descriptions_syntax.md
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2017-12-31 14:58:00 +0100
committerDmitry Vyukov <dvyukov@google.com>2018-01-06 17:40:36 +0100
commit8e6b9eeb2711705b01229614891c4150c7df261a (patch)
treed25c322d2013b2e5d88fea4c83fff5fe60334cf8 /docs/syscall_descriptions_syntax.md
parentbb0359b914863d1c662a775b4159834e0fa697ce (diff)
pkg/compiler: add bitsize type
This is need for few crypto/xfrm descriptions.
Diffstat (limited to 'docs/syscall_descriptions_syntax.md')
-rw-r--r--docs/syscall_descriptions_syntax.md6
1 files changed, 4 insertions, 2 deletions
diff --git a/docs/syscall_descriptions_syntax.md b/docs/syscall_descriptions_syntax.md
index 06e77ad62..8bf6b64ee 100644
--- a/docs/syscall_descriptions_syntax.md
+++ b/docs/syscall_descriptions_syntax.md
@@ -9,7 +9,7 @@ argname = identifier
type = typename [ "[" type-options "]" ]
typename = "const" | "intN" | "intptr" | "flags" | "array" | "ptr" |
"buffer" | "string" | "strconst" | "filename" | "len" |
- "bytesize" | "vma" | "proc"
+ "bytesize" | "bytesizeN" | "bitsize" | "vma" | "proc"
type-options = [type-opt ["," type-opt]]
```
@@ -45,6 +45,8 @@ rest of the type-options are type-specific:
argname of the object
"bytesize": similar to "len", but always denotes the size in bytes, type-options:
argname of the object
+"bitsize": similar to "len", but always denotes the size in bits, type-options:
+ argname of the object
"vma": a pointer to a set of pages (used as input for mmap/munmap/mremap/madvise), type-options:
optional number of pages (e.g. vma[7]), or a range of pages (e.g. vma[2-4])
"proc": per process int (see description below), type-options:
@@ -137,7 +139,7 @@ listen(fd sock, backlog int32)
## Length
-You can specify length of a particular field in struct or a named argument by using `len` and `bytesize` types, for example:
+You can specify length of a particular field in struct or a named argument by using `len`, `bytesize` and `bitsize` types, for example:
```
write(fd fd, buf buffer[in], count len[buf]) len[buf]