2 * Copyright (C) 1994-1995, Index Data I/S
4 * Sebastian Hammer, Adam Dickmeiss
7 * Revision 1.2 1995-09-07 13:58:43 adam
8 * New parameter: result-set file descriptor (RSFD) to support multiple
9 * positions within the same result-set.
10 * Boolean operators: and, or, not implemented.
12 * Revision 1.1 1995/09/06 10:35:44 adam
13 * Null set implemented.
21 static rset_control *r_create(const struct rset_control *sel, void *parms);
22 static RSFD r_open (rset_control *ct, int wflag);
23 static void r_close (RSFD rfd);
24 static void r_delete (rset_control *ct);
25 static void r_rewind (RSFD rfd);
26 static int r_count (rset_control *ct);
27 static int r_read (RSFD rfd, void *buf);
28 static int r_write (RSFD rfd, const void *buf);
30 static const rset_control control =
44 const rset_control *rset_kind_null = &control;
46 static rset_control *r_create(const struct rset_control *sel, void *parms)
50 logf (LOG_DEBUG, "rsnull_create(%s)", sel->desc);
51 newct = xmalloc(sizeof(*newct));
52 memcpy(newct, sel, sizeof(*sel));
56 static RSFD r_open (rset_control *ct, int wflag)
60 logf (LOG_FATAL, "NULL set type is read-only");
66 static void r_close (RSFD rfd)
70 static void r_delete (rset_control *ct)
75 static void r_rewind (RSFD rfd)
77 logf (LOG_DEBUG, "rsnull_rewind");
80 static int r_count (rset_control *ct)
85 static int r_read (RSFD rfd, void *buf)
90 static int r_write (RSFD rfd, const void *buf)
92 logf (LOG_FATAL, "NULL set type is read-only");