Method: Qfs::File#close
- Defined in:
- ext/qfs/file.c
#close ⇒ Object
62 63 64 65 66 67 68 69 70 71 72 73 74 |
# File 'ext/qfs/file.c', line 62
static VALUE qfs_file_close(VALUE self) {
TRACE;
struct qfs_file *file;
struct qfs_client *client;
Data_Get_Struct(self, struct qfs_file, file);
Data_Get_Struct(file->client, struct qfs_client, client);
int err = qfs_close(client->qfs, file->fd);
QFS_CHECK_ERR(err);
file->fd = QFS_NIL_FD;
file->client = Qnil;
TRACE_R;
return Qnil;
}
|