#[no_mangle]
pub unsafe extern "C" fn sys_sem_destroy(sem: *mut sem_t) -> i32
Expand description
Destroy and deallocate a semaphore.
This function can be used to manually deallocate a semaphore via a reference.
Returns 0
on success, -EINVAL
if sem
is null.