fd-lock 4.0.2

Advisory cross-platform lock on a file using a file descriptor to it.
Documentation
1
2
3
4
5
6
7
8
9
use std::io;
use std::os::raw::c_int;

pub(crate) fn syscall(int: c_int) -> io::Result<()> {
    match int {
        0 => Ok(()),
        _ => Err(io::Error::last_os_error()),
    }
}