34 #if defined(LIBC_SCCS) && !defined(lint) 35 static char sccsid[] =
"@(#)rec_get.c 8.9 (Berkeley) 8/18/94";
38 #include <sys/types.h> 47 #include "../include/db.h" 143 for (nrec = t->
bt_nrecs; nrec < top;) {
146 if ((ch = getc(t->
bt_rfp)) == EOF || !--len) {
190 for (nrec = t->
bt_nrecs; nrec < top; ++nrec) {
193 if ((ch = getc(t->
bt_rfp)) == EOF || ch == bval) {
196 if (ch == EOF && data.
size == 0)
257 for (nrec = t->
bt_nrecs; nrec < top; ++nrec) {
264 sp < ep && len > 0; *p++ = *sp++, --len);
298 for (nrec = t->
bt_nrecs; nrec < top; ++nrec) {
303 for (data.
data = sp; sp < ep && *sp != bval; ++sp);
304 data.
size = sp - (u_char *)data.
data;
int __rec_fpipe(BTREE *t, recno_t top)
int mpool_put(MPOOL *mp, void *page, u_int flags)
int __rec_fmap(BTREE *t, recno_t top)
EPG * __rec_search(BTREE *t, recno_t recno, enum SRCHOP op)
int __rec_ret(BTREE *t, EPG *e, recno_t nrec, DBT *key, DBT *data)
static int len(struct ast_channel *chan, const char *cmd, char *data, char *buf, size_t buflen)
int __rec_vmap(BTREE *t, recno_t top)
int __rec_vpipe(BTREE *t, recno_t top)
int __rec_get(DB *dbp, const DBT *key, DBT *data, u_int flags) const
int __rec_iput(BTREE *t, recno_t nrec, const DBT *data, u_int flags)