2 * Copyright (C) 1994, Index Data I/S
4 * Sebastian Hammer, Adam Dickmeiss
7 * Revision 1.3 1995-09-04 15:20:40 adam
8 * More work on temp sets. is_open member removed.
10 * Revision 1.2 1995/09/04 09:10:56 adam
13 * Revision 1.1 1994/11/04 13:21:30 quinn
23 static struct rset_control *r_create(const struct rset_control *sel,
25 static int r_open(struct rset_control *ct, int wflag);
26 static void r_close(struct rset_control *ct);
27 static void r_delete(struct rset_control *ct);
28 static void r_rewind(struct rset_control *ct);
29 static int r_count(struct rset_control *ct);
33 static const rset_control control =
47 const rset_control *rset_kind_temp = &control;
49 struct rset_temp_private {
60 static struct rset_control *r_create(const struct rset_control *sel,
64 rset_temp_parms *temp_parms = parms;
65 struct rset_temp_private *info;
67 logf (LOG_DEBUG, "ritemp_create(%s)", sel->desc);
68 newct = xmalloc(sizeof(*newct));
69 memcpy(newct, sel, sizeof(*sel));
70 newct->buf = xmalloc (sizeof(struct rset_temp_private));
75 info->key_size = temp_parms->key_size;
76 info->buf_size = 1024;
77 info->buf_mem = xmalloc (info->buf_size);
85 static int r_open(struct rset_control *ct, int wflag)
87 struct rset_temp_private *info = ct->buf;
92 static void r_close(struct rset_control *ct)
95 static void r_delete(struct rset_control *ct)
98 static void r_rewind(struct rset_control *ct)
101 static int r_count(struct rset_control *ct)