1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#[cfg(windows)]
mod windows;
#[cfg(windows)]
pub use self::windows::{get_region, lock, page_size, set_protection, unlock};
#[cfg(unix)]
mod unix;
#[cfg(unix)]
pub use self::unix::{lock, page_size, set_protection, unlock};
#[cfg(any(target_os = "macos", target_os = "ios"))]
mod macos;
#[cfg(any(target_os = "macos", target_os = "ios"))]
pub use self::macos::get_region;
#[cfg(any(target_os = "linux", target_os = "android"))]
mod linux;
#[cfg(any(target_os = "linux", target_os = "android"))]
pub use self::linux::get_region;
#[cfg(target_os = "freebsd")]
mod freebsd;
#[cfg(target_os = "freebsd")]
pub use self::freebsd::get_region;