From 9c2250dd411a852cdc84cf08b1ac2088c7ae80ed Mon Sep 17 00:00:00 2001 From: Syrus Date: Fri, 5 Jul 2019 03:27:13 -0700 Subject: [PATCH] Improved WASI path_readlink function signature --- lib/wasi/src/syscalls/mod.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/wasi/src/syscalls/mod.rs b/lib/wasi/src/syscalls/mod.rs index 3f2826bb9..452532627 100644 --- a/lib/wasi/src/syscalls/mod.rs +++ b/lib/wasi/src/syscalls/mod.rs @@ -1600,16 +1600,17 @@ pub fn path_open( pub fn path_readlink( ctx: &mut Ctx, - fd: __wasi_fd_t, + dir_fd: __wasi_fd_t, path: WasmPtr, path_len: u32, - buf: WasmPtr, + buf: WasmPtr, buf_len: u32, - bufused: WasmPtr, + buf_used: WasmPtr, ) -> __wasi_errno_t { debug!("wasi::path_readlink"); unimplemented!("wasi::path_readlink") } + pub fn path_remove_directory( ctx: &mut Ctx, fd: __wasi_fd_t,