Function close

Source
pub fn close(fd: u64) -> Result<(), SysError>
Available on neither crate feature native-simulator nor crate feature stub-syscalls.
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.