miri/shims/
mod.rs

1#![warn(clippy::arithmetic_side_effects)]
2
3mod alloc;
4mod backtrace;
5mod files;
6#[cfg(unix)]
7mod native_lib;
8mod unix;
9mod wasi;
10mod windows;
11mod x86;
12
13pub mod env;
14pub mod extern_static;
15pub mod foreign_items;
16pub mod io_error;
17pub mod os_str;
18pub mod panic;
19pub mod time;
20pub mod tls;
21
22pub use self::files::FdTable;
23pub use self::unix::{DirTable, EpollInterestTable};
24
25/// What needs to be done after emulating an item (a shim or an intrinsic) is done.
26pub enum EmulateItemResult {
27    /// The caller is expected to jump to the return block.
28    NeedsReturn,
29    /// The caller is expected to jump to the unwind block.
30    NeedsUnwind,
31    /// Jumping to the next block has already been taken care of.
32    AlreadyJumped,
33    /// The item is not supported.
34    NotSupported,
35}