fd-lock
Advisory cross-platform file locks using file descriptors. Adapted from mafintosh/fd-lock.
Note that advisory lock compliance is opt-in, and can freely be ignored by other parties. This means this crate should never be used for security purposes, but solely to coordinate file access.
Examples
Basic usage
use FdLock;
use tempfile;
use *;
use File;
Installation
Safety
This crate uses unsafe
to interface with libc
and winapi
. All invariants
have been carefully checked, and are manually enforced.
Contributing
Want to join us? Check out our "Contributing" guide and take a look at some of these issues:
References
License
MIT OR Apache-2.0