nc 0.9.8

Access system calls directly
Documentation
1
2
3
4
5
/// Decrement (lock) a semaphore.
pub unsafe fn sem_wait_nocancel(sem: &mut sem_t) -> Result<(), Errno> {
    let sem_ptr = core::ptr::from_mut(sem) as usize;
    unsafe { syscall1(SYS_SEM_WAIT_NOCANCEL, sem_ptr).map(drop) }
}