summaryrefslogtreecommitdiffstats
path: root/vendor/rustix/tests/io/main.rs
blob: bdd0448097e7c92c89f54909dd15f244c2c3c979 (plain)
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
30
31
//! Tests for [`rustix::io`].

#![cfg_attr(target_os = "wasi", feature(wasi_ext))]
#![cfg_attr(io_lifetimes_use_std, feature(io_safety))]

#[cfg(not(feature = "rustc-dep-of-std"))]
#[cfg(not(windows))]
#[cfg(not(target_os = "wasi"))]
mod dup2_to_replace_stdio;
#[cfg(not(feature = "rustc-dep-of-std"))] // TODO
#[cfg(not(windows))]
#[cfg(feature = "net")]
#[cfg(not(target_os = "wasi"))]
mod epoll;
mod error;
#[cfg(not(windows))]
#[cfg(not(target_os = "wasi"))]
mod eventfd;
#[cfg(not(windows))]
mod from_into;
#[cfg(not(target_os = "redox"))]
mod ioctl;
mod poll;
#[cfg(all(feature = "procfs", any(target_os = "android", target_os = "linux")))]
mod procfs;
#[cfg(not(windows))]
#[cfg(not(target_os = "redox"))] // redox doesn't have cwd/openat
#[cfg(not(target_os = "wasi"))] // wasi support for S_IRUSR etc. submitted to libc in #2264
mod read_write;
#[cfg(any(target_os = "linux", target_os = "freebsd", target_os = "android"))]
mod seals;