Function libseccomp_sys::seccomp_arch_exist
source · [−]pub unsafe extern "C" fn seccomp_arch_exist(
ctx: const_scmp_filter_ctx,
arch_token: u32
) -> c_int
Expand description
Check to see if an existing architecture is present in the filter
ctx
: the filter contextarch_token
: the architecture token, e.g.SCMP_ARCH_*
This function tests to see if a given architecture is included in the filter
context. If the architecture token is SCMP_ARCH_NATIVE
then the native
architecture will be assumed. Returns zero if the architecture exists in
the filter, -libc::EEXIST
if it is not present, and other negative values on
failure.