pub fn get_api() -> u32
Expand description

Gets the API level supported by the system.

See the seccomp_api_get(3) man page for details on available API levels.

This function corresponds to seccomp_api_get.

Examples

set_api(1)?;
assert_eq!(get_api(), 1);