Function libseccomp::get_syscall_name_from_arch
source · [−]pub fn get_syscall_name_from_arch(
arch: ScmpArch,
syscall: i32
) -> Result<String, SeccompError>
👎Deprecated since 0.2.3: Use ScmpSyscall::get_name_by_arch instead.
Expand description
Retrieves the name of a syscall from its number for a given architecture.
This function returns a string containing the name of the syscall.
Arguments
arch
- A valid architecture tokensyscall
- The number of syscall
Errors
If the syscall is unrecognized or an issue occurs or an issue is encountered getting the name of the syscall, an error will be returned.