1 2 3 4 5 6
/// Delete a message queue. pub unsafe fn kmq_unlink<P: AsRef<Path>>(path: P) -> Result<(), Errno> { let path = CString::new(path.as_ref()); let path_ptr = path.as_ptr() as usize; syscall1(SYS_KMQ_UNLINK, path_ptr).map(drop) }