Enhance wasm loader and update build app document (#147)

This commit is contained in:
wenyongh
2019-11-27 10:52:12 +08:00
committed by GitHub
parent ab157473c3
commit 1c81ad6da5
7 changed files with 276 additions and 129 deletions

View File

@ -846,7 +846,7 @@ __wasi_errno_t wasmtime_ssp_fd_pread(
struct fd_object *fo;
__wasi_errno_t error = fd_object_get(curfds,
&fo, fd, __WASI_RIGHT_FD_READ | __WASI_RIGHT_FD_SEEK, 0);
&fo, fd, __WASI_RIGHT_FD_READ, 0);
if (error != 0)
return error;
@ -918,7 +918,7 @@ __wasi_errno_t wasmtime_ssp_fd_pwrite(
struct fd_object *fo;
__wasi_errno_t error = fd_object_get(curfds,
&fo, fd, __WASI_RIGHT_FD_WRITE | __WASI_RIGHT_FD_SEEK, 0);
&fo, fd, __WASI_RIGHT_FD_WRITE, 0);
if (error != 0)
return error;