Source code
Revision control
Copy as Markdown
Other Tools
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
#[cfg(target_os = "windows")]
pub(crate) mod windows;
#[cfg(any(target_os = "android", target_os = "linux"))]
pub(crate) mod linux;
#[cfg(target_os = "macos")]
pub(crate) mod macos;
#[cfg(any(target_os = "android", target_os = "linux", target_os = "macos"))]
#[macro_export]
macro_rules! ignore_eintr {
($c:expr) => {
loop {
match $c {
Err(nix::errno::Errno::EINTR) => continue,
res => break res,
}
}
};
}