blob: bfe3dc4acb6b581f2d0ee11a9dd8fa374bcb601f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
pub use self::os::*;
#[cfg(target_os = "linux")]
mod os {
pub fn atomic_cloexec() -> bool {
true // TODO: Not on all kernel versions
}
}
#[cfg(any(target_os = "macos", target_os = "ios"))]
mod os {
pub fn atomic_cloexec() -> bool {
false
}
}
|