Function file_guard::os::unix::raw_file_lock

source ·
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.