Add Rust impl of wasmtime_ssp_fd_prestat_dir_name

This commit is contained in:
Jakub Konka
2019-05-02 12:57:20 +02:00
committed by Dan Gohman
parent 2549abd671
commit 3e94af81df
4 changed files with 30 additions and 37 deletions

View File

@@ -404,7 +404,11 @@ syscalls! {
trace!(" | (path,path_len)={:?}", str_for_trace(path, path_len));
let e = host::wasmtime_ssp_fd_prestat_dir_name(prestats, fd, path, path_len);
let e = host_impls::wasmtime_ssp_fd_prestat_dir_name(
&mut *prestats,
fd,
::std::slice::from_raw_parts_mut(path, path_len),
);
return_encoded_errno(e)
}