R-CLOSE-FUNCTION (op-code 2)

This routine closes an open file. It also removes currently held locks on the file. R-CLOSE-FUNCTION has only one parameter, file_handle, the file handle of the file to close. The file handle is a handle returned by the R-OPEN-FUNCTION. For some file systems, it is possible that R-CLOSE-FUNCTION will write additional records that had been previously buffered by the system. For this reason, it is possible that a disk full condition can occur.