Skip to content

Commit

Permalink
WASIX code is now compiling (but doesn’t work)
Browse files Browse the repository at this point in the history
  • Loading branch information
syrusakbary committed Nov 14, 2023
1 parent 23e0bbd commit 850dac7
Show file tree
Hide file tree
Showing 6 changed files with 97 additions and 445 deletions.
5 changes: 4 additions & 1 deletion lib/wasix/src/fs/fd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ use futures::Future;
use serde_derive::{Deserialize, Serialize};
use std::sync::Mutex as StdMutex;
use tokio::sync::{watch, Mutex as AsyncMutex};
use virtual_fs::{Pipe, VirtualFile};
use virtual_fs::{Directory, Pipe, VirtualFile};
use wasmer_wasix_types::wasi::{EpollType, Fd as WasiFd, Fdflags, Filestat, Rights};

use crate::{net::socket::InodeSocket, syscalls::EpollJoinWaker};
Expand Down Expand Up @@ -194,6 +194,9 @@ pub enum Kind {
path: PathBuf,
/// The entries of a directory are lazily filled.
entries: HashMap<String, InodeGuard>,
/// The directory referencing this one
#[cfg_attr(feature = "enable-serde", serde(skip))]
dir: Arc<dyn Directory + Send + Sync + 'static>,
},
/// The same as Dir but without the irrelevant bits
/// The root is immutable after creation; generally the Kind::Root
Expand Down
Loading

0 comments on commit 850dac7

Please sign in to comment.