pub fn close(fd: Ri) -> Result<(), ErrorStatus>
Closes the file with the resource id fd
fd
see sysclose for underlying syscall
sysclose