pub fn unlink<T: AsRef<OsStr>>(name: T) -> io::Result<()> {
    unsafe {
        let name = try!(CString::new(name.as_ref().as_bytes()));
        if libc::shm_unlink(name.as_ptr()) == 0 {
            Ok(())
        } else {
            Err(io::Error::last_os_error())
        }
    }
}
/// Removes a shared memory region.
Removes a shared memory region.
Removes a shared memory region .
pub fn unlink<T: AsRef<OsStr>>(name: T) -> io::Result<()> {
    unsafe {
        let name = try!(CString::new(name.as_ref().as_bytes()));
        if libc::shm_unlink(name.as_ptr()) == 0 {
            Ok(())
        } else {
            Err(io::Error::last_os_error())
        }
    }
}
pub fn unlink < T : AsRef < OsStr > > ( name : T ) -> io :: Result < ( ) > { unsafe { let name = try ! ( CString new ( name as_ref ( ) as_bytes ( ) ) ) ; if libc :: shm_unlink ( name . as_ptr ( ) ) == 0 { Ok ( ( ) ) } else { Err ( io :: Error :: last_os_error ( ) ) } } }
Removes a shared memory region.
Removes a shared memory region .
name
T