pub(crate) fn fd_filestat_get_internal(
    ctx: &mut FunctionEnvMut<'_, WasiEnv>,
    fd: Fd,
) -> Result<Filestat, Errno>
Expand description

§fd_filestat_get()

Get the metadata of an open file

Input:

  • __wasi_fd_t fd The open file descriptor whose metadata will be read

Output:

  • __wasi_filestat_t *buf Where the metadata from fd will be written