seccomp_syscall_resolve_name_arch

Function seccomp_syscall_resolve_name_arch 

Source
pub unsafe extern "C" fn seccomp_syscall_resolve_name_arch(
    arch_token: u32,
    name: *const c_char,
) -> c_int
Expand description

Resolve a syscall name to a number

  • arch_token: the architecture token, e.g. SCMP_ARCH_*
  • name: the syscall name

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.