Function close

Source
pub fn close(fd: u64) -> Result<(), SysError>
Available on non-crate feature native-simulator only.
Expand description

This syscall manually closes a file descriptor. After calling this, any attempt to read/write the file descriptor pointed to the other end would fail. Note: available after ckb 2nd hardfork.