nc 0.9.8

Access system calls directly
Documentation
1
2
3
4
5
6
/// Returns a flag indicating whether or not the process is
/// in a capability mode sandbox.
pub unsafe fn cap_getmode(mode: &mut u32) -> Result<(), Errno> {
    let mode_ptr = core::ptr::from_mut(mode) as usize;
    unsafe { syscall1(SYS_CAP_GETMODE, mode_ptr).map(drop) }
}