Skip to content

Commit

Permalink
Move FdTable to a common location and split off unix behavior. Prepar…
Browse files Browse the repository at this point in the history
…ation for Windows FS support
  • Loading branch information
CraftSpider committed Nov 21, 2024
1 parent 3018386 commit 2a20dba
Show file tree
Hide file tree
Showing 8 changed files with 560 additions and 514 deletions.
411 changes: 411 additions & 0 deletions src/shims/files.rs

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion src/shims/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

mod alloc;
mod backtrace;
mod files;
#[cfg(unix)]
mod native_lib;
mod unix;
Expand All @@ -18,7 +19,8 @@ pub mod panic;
pub mod time;
pub mod tls;

pub use self::unix::{DirTable, EpollInterestTable, FdTable};
pub use self::files::FdTable;
pub use self::unix::{DirTable, EpollInterestTable};

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

0 comments on commit 2a20dba

Please sign in to comment.