1// Copyright 2022 The ChromiumOS Authors
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
45cfg_if::cfg_if! {
6if #[cfg(any(target_os = "android", target_os = "linux"))] {
7pub(crate) mod linux;
8mod epoll_internal;
9use linux as platform;
10 } else if #[cfg(any(target_os = "fuchsia",target_os = "windows", target_os = "macos",
11 target_os = "nto"))] {
12pub(crate) mod stub;
13use stub as platform;
14 } else {
15compile_error!("Unsupported platform");
16 }
17}
1819pub use platform::channel;
20pub use platform::channel_signal;
21pub use platform::channel_wait;
22pub use platform::descriptor_analysis;
23pub use platform::read_volatile;
24pub use platform::write_volatile;
25pub use platform::Receiver;
26pub use platform::Sender;
27pub use platform::SystemStream;
28pub use platform::WaitContext;