Function wasmer_wasix::syscalls::wasix::getcwd::getcwd

source ·
pub fn getcwd<M: MemorySize>(
    ctx: FunctionEnvMut<'_, WasiEnv>,
    path: WasmPtr<u8, M>,
    path_len: WasmPtr<M::Offset, M>,
) -> Errno
Expand description

§getcwd()

Returns the current working directory If the path exceeds the size of the buffer then this function will return ERANGE