1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
mod close_thread;
mod fd_advise;
mod fd_allocate;
mod fd_close;
mod fd_dup;
mod fd_open;
mod fd_renumber;
mod fd_seek;
mod fd_set_flags;
mod fd_set_rights;
mod fd_set_size;
mod fd_set_times;
mod fd_write;
mod init_module;
mod path_set_times;
mod process_exit;
mod set_thread;
mod snapshot;
mod tty_set;
mod update_memory;

use crate::journal::JournalEffector;
use crate::syscalls::anyhow_err_to_runtime_err;
use crate::syscalls::JournalSyscallPlayer;
use crate::RewindState;
use crate::WasiRuntimeError;
use crate::WasiThreadId;
use std::borrow::Cow;
use std::ops::Range;
use std::time::SystemTime;
use wasmer::RuntimeError;
use wasmer_journal::JournalEntry;
use wasmer_journal::SnapshotTrigger;
use wasmer_types::Memory32;
use wasmer_types::Memory64;
use wasmer_wasix_types::wasi::Advice;
use wasmer_wasix_types::wasi::ExitCode;
use wasmer_wasix_types::wasi::Fd;
use wasmer_wasix_types::wasi::Fdflags;
use wasmer_wasix_types::wasi::Filesize;
use wasmer_wasix_types::wasi::Tty;
use wasmer_wasix_types::wasi::Whence;
use wasmer_wasix_types::wasi::{Fstflags, LookupFlags, Timestamp};
use wasmer_wasix_types::wasi::{Oflags, Rights};
use wasmer_wasix_types::wasix::ThreadStartType;
use wasmer_wasix_types::wasix::WasiMemoryLayout;