Close an open OSAL_FILE handle and release the associated OSAL file resource.
stream != NULL, then stream designates a valid OSAL_FILE.stream must not be NULL.OSAL_FILE_STATUS_OK.stream.stream.OSAL_FILE_STATUS_INVALID for invalid arguments.OSAL_FILE_STATUS_BADFOSAL_FILE_STATUS_INTROSAL_FILE_STATUS_IOstream is owned by the caller.stream ends and the handle is no longer valid.stream.osal_file_ops_t::close is the matching release operation for handles acquired by osal_file_ops_t::open.OSAL_FILE handle must not be reused.