clean up mmap and file pointer uses in recno interface
SCCS-vsn: lib/libc/db/recno/rec_seq.c 5.8
-static char sccsid[] = "@(#)rec_seq.c 5.7 (Berkeley) %G%";
+static char sccsid[] = "@(#)rec_seq.c 5.8 (Berkeley) %G%";
#endif /* not lint */
#include <sys/types.h>
#endif /* not lint */
#include <sys/types.h>
}
/* FALLTHROUGH */
case R_LAST:
}
/* FALLTHROUGH */
case R_LAST:
- if (!ISSET(t, BTF_RINMEM) &&
+ if (!ISSET(t, BTF_EOF | BTF_RINMEM) &&
t->bt_irec(t, MAX_REC_NUMBER) == RET_ERROR)
return (RET_ERROR);
nrec = t->bt_nrecs;
t->bt_irec(t, MAX_REC_NUMBER) == RET_ERROR)
return (RET_ERROR);
nrec = t->bt_nrecs;
}
if (t->bt_nrecs == 0 || nrec > t->bt_nrecs) {
}
if (t->bt_nrecs == 0 || nrec > t->bt_nrecs) {
- if (!ISSET(t, BTF_RINMEM) &&
+ if (!ISSET(t, BTF_EOF | BTF_RINMEM) &&
(status = t->bt_irec(t, nrec)) != RET_SUCCESS)
return (status);
if (t->bt_nrecs == 0 || nrec > t->bt_nrecs)
(status = t->bt_irec(t, nrec)) != RET_SUCCESS)
return (status);
if (t->bt_nrecs == 0 || nrec > t->bt_nrecs)