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
//! File systems.

#![no_std]

#[cfg(any(feature = "std", test))]
extern crate std;

mod error;
#[cfg(feature = "libc")]
mod libc;
#[cfg(feature = "std")]
mod os;
mod system;
mod void;

pub use error::Error;
#[cfg(feature = "libc")]
pub use libc::LibcFileSystem;
#[cfg(feature = "std")]
pub use os::OsFileSystem;
pub use system::FileSystem;
pub use void::VoidFileSystem;

/// A file descriptor.
pub type FileDescriptor = usize;