Skip to content

Commit b27f1d6

Browse files
authored
Merge pull request #4045 from CraftSpider/move-fdmap
Move FdTable to a common location and split off Unix behavior
2 parents 23997f4 + 9e87420 commit b27f1d6

File tree

8 files changed

+562
-516
lines changed

8 files changed

+562
-516
lines changed

src/shims/files.rs

Lines changed: 411 additions & 0 deletions
Large diffs are not rendered by default.

src/shims/mod.rs

Lines changed: 3 additions & 1 deletion
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)