expose vfs in emscripten and impl read syscall, feature flag

This commit is contained in:
Mackenzie Clark
2019-03-12 10:48:33 -07:00
parent b9c3a49f3c
commit cc3f04efd7
12 changed files with 104 additions and 8 deletions

View File

@ -78,6 +78,7 @@ use libc::SO_NOSIGPIPE;
const SO_NOSIGPIPE: c_int = 0;
/// open
#[cfg(not(feature = "vfs"))]
pub fn ___syscall5(ctx: &mut Ctx, which: c_int, mut varargs: VarArgs) -> c_int {
debug!("emscripten::___syscall5 (open) {}", which);
let pathname: u32 = varargs.get(ctx);