1 | //! Filesystem API constants, translated into `bitflags` constants. |
2 | |
3 | use crate::backend; |
4 | |
5 | pub use crate::io::FdFlags; |
6 | #[cfg (not(target_os = "espidf" ))] |
7 | pub use backend::fs::types::Access; |
8 | pub use backend::fs::types::{Dev, Mode, OFlags}; |
9 | |
10 | #[cfg (not(any(target_os = "espidf" , target_os = "redox" )))] |
11 | pub use backend::fs::types::AtFlags; |
12 | |
13 | #[cfg (apple)] |
14 | pub use backend::fs::types::{CloneFlags, CopyfileFlags}; |
15 | |
16 | #[cfg (linux_kernel)] |
17 | pub use backend::fs::types::*; |
18 | |
19 | pub use crate::timespec::{Nsecs, Secs, Timespec}; |
20 | |