summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorPaul Moore <pmoore@redhat.com>2013-11-11 10:08:41 -0500
committerPaul Moore <pmoore@redhat.com>2013-11-11 10:08:41 -0500
commit2fa593e06bcb345f0302a5662c82fd542b849f0c (patch)
treefd708f7143530714543880b21d973d5d3a1d4628 /include
parent46a0ab2f1be238d60cbaa491b98f1320b0bf6b9b (diff)
downloadlibseccomp-2fa593e06bcb345f0302a5662c82fd542b849f0c.tar.gz
doc: fix documentation mistakes relating to the syscall resolver functions
Signed-off-by: Paul Moore <pmoore@redhat.com>
Diffstat (limited to 'include')
-rw-r--r--include/seccomp.h.in6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/seccomp.h.in b/include/seccomp.h.in
index e150fbd..082c14c 100644
--- a/include/seccomp.h.in
+++ b/include/seccomp.h.in
@@ -353,7 +353,8 @@ char *seccomp_syscall_resolve_num_arch(uint32_t arch_token, int num);
*
* Resolve the given syscall name to the syscall number for the given
* architecture. Returns the syscall number on success, including negative
- * pseudo syscall numbers (e.g. __PNR_*); returns __NR_SCMP_ERROR on failure.
+ * pseudo syscall numbers (e.g. __PNR_*); returns __NR_SCMP_ERROR if the
+ * syscall does not exist, negative values on other error conditions.
*
*/
int seccomp_syscall_resolve_name_arch(uint32_t arch_token, const char *name);
@@ -364,7 +365,8 @@ int seccomp_syscall_resolve_name_arch(uint32_t arch_token, const char *name);
*
* Resolve the given syscall name to the syscall number. Returns the syscall
* number on success, including negative pseudo syscall numbers (e.g. __PNR_*);
- * returns __NR_SCMP_ERROR on failure.
+ * returns __NR_SCMP_ERROR if the syscall does not exist, negative values on
+ * other error conditions.
*
*/
int seccomp_syscall_resolve_name(const char *name);