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
Iffd
is a directoryErrno::Badf
Iffd
is invalid or not open