nc 0.9.8

Access system calls directly
Documentation
1
2
3
4
5
6
/// Limit capability rights
pub unsafe fn cap_rights_limit(fd: i32, rights: &cap_rights_t) -> Result<(), Errno> {
    let fd = fd as usize;
    let rights_ptr = core::ptr::from_ref(rights) as usize;
    unsafe { syscall2(SYS_CAP_RIGHTS_LIMIT, fd, rights_ptr).map(drop) }
}