| 1 |
.TH "scmp_sys_resolver" 1 "23 May 2013" "[email protected]" "libseccomp Documentation" |
| 2 |
.\" ////////////////////////////////////////////////////////////////////////// |
| 3 |
.SH NAME |
| 4 |
.\" ////////////////////////////////////////////////////////////////////////// |
| 5 |
scmp_sys_resolver \- Resolve system calls |
| 6 |
.\" ////////////////////////////////////////////////////////////////////////// |
| 7 |
.SH SYNOPSIS |
| 8 |
.\" ////////////////////////////////////////////////////////////////////////// |
| 9 |
.B scmp_sys_resolver |
| 10 |
[\-h] [\-a |
| 11 |
.I ARCH |
| 12 |
] [\-t] |
| 13 |
.I SYSCALL_NAME |
| 14 |
| |
| 15 |
.I SYSCALL_NUMBER |
| 16 |
.\" ////////////////////////////////////////////////////////////////////////// |
| 17 |
.SH DESCRIPTION |
| 18 |
.\" ////////////////////////////////////////////////////////////////////////// |
| 19 |
.P |
| 20 |
This command resolves both system call names and numbers with respect to the |
| 21 |
given architecture supplied in the optional |
| 22 |
.I ARCH |
| 23 |
argument. If the architecture is not supplied on the command line then the |
| 24 |
native architecture is used. If the "\-t" argument is specified along with a |
| 25 |
system call name, then the system call will be translated as necessary for the |
| 26 |
given architecture. The "\-t" argument has no effect if a system call number |
| 27 |
is specified. |
| 28 |
.P |
| 29 |
In some combinations of architecture and system call, a negative system call |
| 30 |
number will be displayed. A negative system call number indicates that the |
| 31 |
system call is not defined for the given architecture and is treated in a |
| 32 |
special manner by libseccomp depending on the operation. |
| 33 |
.TP |
| 34 |
.B \-a \fIARCH |
| 35 |
The architecture to use for resolving the system call. Valid |
| 36 |
.I ARCH |
| 37 |
values are "x86", "x86_64", "x32", "arm", "aarch64", "loongarch64", "m68k", |
| 38 |
"mips", "mipsel", "mips64", "mipsel64", "mips64n32", "mipsel64n32", "parisc", |
| 39 |
"parisc64", "ppc", "ppc64", "ppc64le", "s390", "s390x", "sheb" and "sh". |
| 40 |
.TP |
| 41 |
.B \-t |
| 42 |
If necessary, translate the system call name to the proper system call number, |
| 43 |
even if the system call name is different, e.g. socket(2) on x86. |
| 44 |
.TP |
| 45 |
.B \-h |
| 46 |
A simple one-line usage display. |
| 47 |
.\" ////////////////////////////////////////////////////////////////////////// |
| 48 |
.SH EXIT STATUS |
| 49 |
.\" ////////////////////////////////////////////////////////////////////////// |
| 50 |
Returns zero on success, errno values on failure. |
| 51 |
.\" ////////////////////////////////////////////////////////////////////////// |
| 52 |
.SH NOTES |
| 53 |
.\" ////////////////////////////////////////////////////////////////////////// |
| 54 |
.P |
| 55 |
The libseccomp project site, with more information and the source code |
| 56 |
repository, can be found at https://github.com/seccomp/libseccomp. This tool, |
| 57 |
as well as the libseccomp library, is currently under development, please |
| 58 |
report any bugs at the project site or directly to the author. |
| 59 |
.\" ////////////////////////////////////////////////////////////////////////// |
| 60 |
.SH AUTHOR |
| 61 |
.\" ////////////////////////////////////////////////////////////////////////// |
| 62 |
Paul Moore <[email protected]> |