1 //! Simple file-locking apis for each OS.
3 //! This is not meant to be in the standard library, it does nothing with
4 //! green/native threading. This is just a bare-bones enough solution for
5 //! librustdoc, it is not production quality at all.
7 #![allow(non_camel_case_types)]
8 #![allow(nonstandard_style)]
11 if #[cfg(target_os = "linux")] {
14 } else if #[cfg(unix)] {
17 } else if #[cfg(windows)] {
22 use unsupported as imp;