2 * Copyright (C) 1994, Index Data I/S
4 * Sebastian Hammer, Adam Dickmeiss
7 * Revision 1.2 1994-11-04 14:53:12 quinn
12 /* TODO: Memory management */
17 rset_control *r_create(const struct rset_control *sel, void *parms);
18 static int r_open(rset_control *ct, int wflag);
19 static void r_close(rset_control *ct);
20 static void r_delete(rset_control *ct);
21 static void r_rewind(rset_control *ct);
22 static int r_count(rset_control *ct);
26 static const rset_control control =
40 const rset_control *rset_kind_isam = &control;
42 rset_control *r_create(const struct rset_control *sel, void *parms)
45 rset_isam_parms *pt = parms;
47 newct = xmalloc(sizeof(*newct));
48 if (!(newct->buf = (char*) is_position(pt->is, pt->pos)))
53 static int r_open(rset_control *ct, int wflag)
57 log(LOG_FATAL, "ISAM set type is read-only");
64 static void r_close(rset_control *ct)
69 static void r_delete(rset_control *ct)
71 is_pt_free((ISPT) ct->buf);
75 static void r_rewind(rset_control *ct)
77 is_rewind((ISPT) ct->buf);
80 static int r_count(rset_control *ct)
88 log(LOG_FATAL, "ISAM set type is read-only");