Function wasmer_wasix::syscalls::wasi::fd_close::fd_close

source ·
pub fn fd_close(
    ctx: FunctionEnvMut<'_, WasiEnv>,
    fd: Fd,
) -> Result<Errno, WasiError>
Expand description

§fd_close()

Close an open file descriptor For sockets this will flush the data before the socket is closed Inputs:

  • Fd fd A file descriptor mapping to an open file to close Errors:
  • Errno::Isdir If fd is a directory
  • Errno::Badf If fd is invalid or not open