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 fdA file descriptor mapping to an open file to close Errors:Errno::IsdirIffdis a directoryErrno::BadfIffdis invalid or not open