[][src]Function wasi::fd_fdstat_get

pub unsafe fn fd_fdstat_get(fd: Fd) -> Result<Fdstat>

Get the attributes of a file descriptor. Note: This returns similar flags to fsync(fd, F_GETFL) in POSIX, as well as additional fields.

Return

  • stat - The buffer where the file descriptor's attributes are stored.