pub unsafe fn raw_file_lock(
    f: &File,
    lock: Option<Lock>,
    off: usize,
    len: usize,
    wait: bool
) -> Result<()>
Expand description

Acquires and releases a file lock.

§Safety

When used to unlock, this does not guarantee that an exclusive lock is already held.