-.TH "seccomp_syscall_resolve_name" 3 "7 January 2013" "paul@paul-moore.com" "libseccomp Documentation"
+.TH "seccomp_syscall_resolve_name" 3 "11 November 2013" "paul@paul-moore.com" "libseccomp Documentation"
.\" //////////////////////////////////////////////////////////////////////////
.SH NAME
.\" //////////////////////////////////////////////////////////////////////////
number being returned in cases where the given syscall does not exist for the
architeture. The value
.BR __NR_SCMP_ERROR
-is returned in case of error. In all cases, the return value is suitable for
-use in any libseccomp API function which requires the syscall number, examples include
+is returned if the syscall does not exist with other negative values returned
+on other error conditions. In all cases, the return value is suitable for
+use in any libseccomp API function which requires the syscall number, examples
+include
.BR seccomp_rule_add ()
and
.BR seccomp_rule_add_exact ().
*
* 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);
*
* 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);