X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=rset%2Frsisam.c;h=8879bd665af05842ee04752cf23de081fdad45d7;hb=a631c2ef0ed672f05a1dfbd94d82ebbd2826d579;hp=56a432c329cd43b38b9ca7043b8b06f02d4726e1;hpb=a3d4af813384321d72efab01bedafdf7af97dac9;p=idzebra-moved-to-github.git diff --git a/rset/rsisam.c b/rset/rsisam.c index 56a432c..8879bd6 100644 --- a/rset/rsisam.c +++ b/rset/rsisam.c @@ -4,8 +4,8 @@ * Sebastian Hammer, Adam Dickmeiss * * $Log: rsisam.c,v $ - * Revision 1.1 1994-11-04 13:21:29 quinn - * Working. + * Revision 1.2 1994-11-04 14:53:12 quinn + * Work * */ @@ -52,6 +52,11 @@ rset_control *r_create(const struct rset_control *sel, void *parms) static int r_open(rset_control *ct, int wflag) { + if (wflag) + { + log(LOG_FATAL, "ISAM set type is read-only"); + return -1; + } r_rewind(ct); return 0; } @@ -75,12 +80,10 @@ static void r_rewind(rset_control *ct) static int r_count(rset_control *ct) {return 0;} -static int r_read(rset_control *ct, void *buf) -{ - return is_readkey((ISPT) ct->buf, buf); -} +static int r_read() +{return 0;} -static int r_write(rset_control *ct, const void *buf) +static int r_write() { log(LOG_FATAL, "ISAM set type is read-only"); return -1;