Home
last modified time | relevance | path

Searched refs:bt_cursor (Results 1 – 10 of 10) sorted by relevance

/mirbsd/src/lib/libc/db/recno/
Drec_seq.c76 if (F_ISSET(&t->bt_cursor, CURS_INIT)) { in __rec_seq()
77 nrec = t->bt_cursor.rcursor + 1; in __rec_seq()
85 if (F_ISSET(&t->bt_cursor, CURS_INIT)) { in __rec_seq()
86 if ((nrec = t->bt_cursor.rcursor - 1) == 0) in __rec_seq()
113 F_SET(&t->bt_cursor, CURS_INIT); in __rec_seq()
114 t->bt_cursor.rcursor = nrec; in __rec_seq()
Drec_delete.c82 if (!F_ISSET(&t->bt_cursor, CURS_INIT)) in __rec_delete()
86 status = rec_rdelete(t, t->bt_cursor.rcursor - 1); in __rec_delete()
88 --t->bt_cursor.rcursor; in __rec_delete()
Drec_put.c102 if (!F_ISSET(&t->bt_cursor, CURS_INIT)) in __rec_put()
104 nrec = t->bt_cursor.rcursor; in __rec_put()
164 t->bt_cursor.rcursor = nrec; in __rec_put()
Drec_close.c133 scursor = t->bt_cursor.rcursor; in __rec_sync()
165 t->bt_cursor.rcursor = scursor; in __rec_sync()
/mirbsd/src/lib/libc/db/btree/
Dbt_seq.c97 if (F_ISSET(&t->bt_cursor, CURS_INIT)) { in __bt_seq()
243 c = &t->bt_cursor; in __bt_seqadv()
430 if (t->bt_cursor.key.data != NULL) { in __bt_setcur()
431 free(t->bt_cursor.key.data); in __bt_setcur()
432 t->bt_cursor.key.size = 0; in __bt_setcur()
433 t->bt_cursor.key.data = NULL; in __bt_setcur()
435 F_CLR(&t->bt_cursor, CURS_ACQUIRE | CURS_AFTER | CURS_BEFORE); in __bt_setcur()
438 t->bt_cursor.pg.pgno = pgno; in __bt_setcur()
439 t->bt_cursor.pg.index = idx; in __bt_setcur()
440 F_SET(&t->bt_cursor, CURS_INIT); in __bt_setcur()
Dbt_put.c100 if (F_ISSET(&t->bt_cursor, CURS_INIT) && in __bt_put()
101 !F_ISSET(&t->bt_cursor, in __bt_put()
150 if ((h = mpool_get(t->bt_mp, t->bt_cursor.pg.pgno, 0)) == NULL) in __bt_put()
152 idx = t->bt_cursor.pg.index; in __bt_put()
217 if (F_ISSET(&t->bt_cursor, CURS_INIT) && in __bt_put()
218 !F_ISSET(&t->bt_cursor, CURS_ACQUIRE) && in __bt_put()
219 t->bt_cursor.pg.pgno == h->pgno && t->bt_cursor.pg.index >= idx) in __bt_put()
220 ++t->bt_cursor.pg.index; in __bt_put()
Dbt_delete.c91 c = &t->bt_cursor; in __bt_delete()
103 if (__bt_stkacq(t, &h, &t->bt_cursor)) in __bt_delete()
471 if (F_ISSET(&t->bt_cursor, CURS_INIT) && in __bt_dleaf()
472 !F_ISSET(&t->bt_cursor, CURS_ACQUIRE) && in __bt_dleaf()
473 t->bt_cursor.pg.pgno == h->pgno && t->bt_cursor.pg.index == idx && in __bt_dleaf()
501 if (F_ISSET(&t->bt_cursor, CURS_INIT) && in __bt_dleaf()
502 !F_ISSET(&t->bt_cursor, CURS_ACQUIRE) && in __bt_dleaf()
503 t->bt_cursor.pg.pgno == h->pgno && t->bt_cursor.pg.index > idx) in __bt_dleaf()
504 --t->bt_cursor.pg.index; in __bt_dleaf()
534 c = &t->bt_cursor; in __bt_curdel()
Dbt_close.c80 if (t->bt_cursor.key.data != NULL) { in __bt_close()
81 free(t->bt_cursor.key.data); in __bt_close()
82 t->bt_cursor.key.size = 0; in __bt_close()
83 t->bt_cursor.key.data = NULL; in __bt_close()
Dbtree.h313 CURSOR bt_cursor; /* cursor */ member
Dbt_split.c681 c = &t->bt_cursor; in bt_psplit()