1 //! Tests for [`rustix::fs`]. 2 3 #![cfg(feature = "fs")] 4 #![cfg(not(windows))] 5 #![cfg_attr(target_os = "wasi", feature(wasi_ext))] 6 #![cfg_attr(io_lifetimes_use_std, feature(io_safety))] 7 #![cfg_attr(core_c_str, feature(core_c_str))] 8 9 mod cwd; 10 mod dir; 11 mod fcntl; 12 mod file; 13 #[cfg(not(target_os = "wasi"))] 14 mod flock; 15 mod futimens; 16 mod invalid_offset; 17 mod long_paths; 18 #[cfg(not(any( 19 target_os = "dragonfly", 20 target_os = "freebsd", 21 target_os = "haiku", 22 target_os = "illumos", 23 target_os = "ios", 24 target_os = "macos", 25 target_os = "netbsd", 26 target_os = "openbsd", 27 target_os = "redox", 28 target_os = "solaris", 29 target_os = "wasi", 30 )))] 31 mod makedev; 32 mod mkdirat; 33 mod mknodat; 34 #[cfg(any(target_os = "android", target_os = "linux"))] 35 mod openat; 36 #[cfg(any(target_os = "android", target_os = "linux"))] 37 mod openat2; 38 mod readdir; 39 mod renameat; 40 #[cfg(not(any( 41 target_os = "haiku", 42 target_os = "illumos", 43 target_os = "redox", 44 target_os = "solaris", 45 target_os = "wasi", 46 )))] 47 mod statfs; 48 #[cfg(any(target_os = "android", target_os = "linux"))] 49 mod statx; 50 mod utimensat; 51 mod y2038; 52