fd_lock/sys/
mod.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use cfg_if::cfg_if;

cfg_if! {
    if #[cfg(unix)] {
        mod unix;
        pub use unix::*;
        pub(crate) use rustix::fd::AsFd as AsOpenFile;
    } else if #[cfg(windows)] {
        mod windows;
        pub use windows::*;
        #[doc(no_inline)]
        pub(crate) use std::os::windows::io::AsHandle as AsOpenFile;
    } else {
        mod unsupported;
        pub use unsupported;
    }
}