Function wasmer_wasix::syscalls::wasi::fd_prestat_get::fd_prestat_get

source ·
pub fn fd_prestat_get<M: MemorySize>(
    ctx: FunctionEnvMut<'_, WasiEnv>,
    fd: Fd,
    buf: WasmPtr<Prestat, M>,
) -> Errno
Expand description

§fd_prestat_get()

Get metadata about a preopened file descriptor Input:

  • Fd fd The preopened file descriptor to query Output:
  • __wasi_prestat *buf Where the metadata will be written