Skip to content

Commit 2a20dba

Browse files
committed
Move FdTable to a common location and split off unix behavior. Preparation for Windows FS support
1 parent 3018386 commit 2a20dba

File tree

8 files changed

+560
-514
lines changed

8 files changed

+560
-514
lines changed

src/shims/files.rs

+411
Large diffs are not rendered by default.

src/shims/mod.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
mod alloc;
44
mod backtrace;
5+
mod files;
56
#[cfg(unix)]
67
mod native_lib;
78
mod unix;
@@ -18,7 +19,8 @@ pub mod panic;
1819
pub mod time;
1920
pub mod tls;
2021

21-
pub use self::unix::{DirTable, EpollInterestTable, FdTable};
22+
pub use self::files::FdTable;
23+
pub use self::unix::{DirTable, EpollInterestTable};
2224

2325
/// What needs to be done after emulating an item (a shim or an intrinsic) is done.
2426
pub enum EmulateItemResult {

0 commit comments

Comments
 (0)