diff options
author | Ian Lewis <ianlewis@google.com> | 2019-04-03 03:09:26 -0700 |
---|---|---|
committer | Shentubot <shentubot@google.com> | 2019-04-03 03:10:23 -0700 |
commit | 77f01ee3c7f947a3be569e49e248187b2663607f (patch) | |
tree | 0bd19688fa2be9b21fb67ac1723ce51801a6cc2f /pkg/sentry/context | |
parent | c4caccd54042ea80a6e8b5a8f5ce59ee87a7f424 (diff) |
Add syscall annotations for unimplemented syscalls
Added syscall annotations for unimplemented syscalls for later generation into
reference docs. Annotations are of the form:
@Syscall(<name>, <key:value>, ...)
Supported args and values are:
- arg: A syscall option. This entry only applies to the syscall when given this
option.
- support: Indicates support level
- UNIMPLEMENTED: Unimplemented (implies returns:ENOSYS)
- PARTIAL: Partial support. Details should be provided in note.
- FULL: Full support
- returns: Indicates a known return value. Values are
syscall errors. This is treated as a string so you can use something
like "returns:EPERM or ENOSYS".
- issue: A Github issue number.
- note: A note
Example:
// @Syscall(mmap, arg:MAP_PRIVATE, support:FULL, note:Private memory fully supported)
// @Syscall(mmap, arg:MAP_SHARED, support:UNIMPLEMENTED, issue:123, note:Shared memory not supported)
// @Syscall(setxattr, returns:ENOTSUP, note:Requires file system support)
Annotations should be placed as close to their implementation as possible
(preferrably as part of a supporting function's Godoc) and should be updated as
syscall support changes.
PiperOrigin-RevId: 241697482
Change-Id: I7a846135db124e1271dc5057d788cba82ca312d4
Diffstat (limited to 'pkg/sentry/context')
0 files changed, 0 insertions, 0 deletions