blob: e51ace2fd9072f0c88dccacd436b03fabcf20dc0 [file] [log] [blame]
#![warn(clippy::arithmetic_side_effects)]
mod aarch64;
mod alloc;
mod backtrace;
mod files;
mod math;
#[cfg(all(unix, feature = "native-lib"))]
mod native_lib;
mod unix;
mod windows;
mod x86;
pub mod env;
pub mod extern_static;
pub mod foreign_items;
pub mod global_ctor;
pub mod io_error;
pub mod os_str;
pub mod panic;
pub mod sig;
pub mod time;
pub mod tls;
pub mod unwind;
pub use self::files::FdTable;
#[cfg(all(unix, feature = "native-lib"))]
pub use self::native_lib::trace::{init_sv, register_retcode_sv};
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 {
/// The caller is expected to jump to the return block.
NeedsReturn,
/// The caller is expected to jump to the unwind block.
NeedsUnwind,
/// Jumping to the next block has already been taken care of.
AlreadyJumped,
/// The item is not supported.
NotSupported,
}