Home
last modified time | relevance | path

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

/freebsd-14-stable/lib/libc/db/recno/
HDrec_seq.c81 if (F_ISSET(&t->bt_cursor, CURS_INIT)) { in __rec_seq()
82 nrec = t->bt_cursor.rcursor + 1; in __rec_seq()
90 if (F_ISSET(&t->bt_cursor, CURS_INIT)) { in __rec_seq()
91 if ((nrec = t->bt_cursor.rcursor - 1) == 0) in __rec_seq()
118 F_SET(&t->bt_cursor, CURS_INIT); in __rec_seq()
119 t->bt_cursor.rcursor = nrec; in __rec_seq()
HDrec_delete.c85 if (!F_ISSET(&t->bt_cursor, CURS_INIT)) in __rec_delete()
89 status = rec_rdelete(t, t->bt_cursor.rcursor - 1); in __rec_delete()
91 --t->bt_cursor.rcursor; in __rec_delete()
HDrec_put.c102 if (!F_ISSET(&t->bt_cursor, CURS_INIT)) in __rec_put()
104 nrec = t->bt_cursor.rcursor; in __rec_put()
167 t->bt_cursor.rcursor = nrec; in __rec_put()
HDrec_close.c138 scursor = t->bt_cursor.rcursor; in __rec_sync()
171 t->bt_cursor.rcursor = scursor; in __rec_sync()
/freebsd-14-stable/lib/libc/db/btree/
HDbt_seq.c96 if (F_ISSET(&t->bt_cursor, CURS_INIT)) { in __bt_seq()
242 c = &t->bt_cursor; in __bt_seqadv()
429 if (t->bt_cursor.key.data != NULL) { in __bt_setcur()
430 free(t->bt_cursor.key.data); in __bt_setcur()
431 t->bt_cursor.key.size = 0; in __bt_setcur()
432 t->bt_cursor.key.data = NULL; in __bt_setcur()
434 F_CLR(&t->bt_cursor, CURS_ACQUIRE | CURS_AFTER | CURS_BEFORE); in __bt_setcur()
437 t->bt_cursor.pg.pgno = pgno; in __bt_setcur()
438 t->bt_cursor.pg.index = idx; in __bt_setcur()
439 F_SET(&t->bt_cursor, CURS_INIT); in __bt_setcur()
HDbt_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()
HDbt_delete.c90 c = &t->bt_cursor; in __bt_delete()
102 if (__bt_stkacq(t, &h, &t->bt_cursor)) in __bt_delete()
470 if (F_ISSET(&t->bt_cursor, CURS_INIT) && in __bt_dleaf()
471 !F_ISSET(&t->bt_cursor, CURS_ACQUIRE) && in __bt_dleaf()
472 t->bt_cursor.pg.pgno == h->pgno && t->bt_cursor.pg.index == idx && in __bt_dleaf()
500 if (F_ISSET(&t->bt_cursor, CURS_INIT) && in __bt_dleaf()
501 !F_ISSET(&t->bt_cursor, CURS_ACQUIRE) && in __bt_dleaf()
502 t->bt_cursor.pg.pgno == h->pgno && t->bt_cursor.pg.index > idx) in __bt_dleaf()
503 --t->bt_cursor.pg.index; in __bt_dleaf()
533 c = &t->bt_cursor; in __bt_curdel()
HDbt_close.c85 if (t->bt_cursor.key.data != NULL) { in __bt_close()
86 free(t->bt_cursor.key.data); in __bt_close()
87 t->bt_cursor.key.size = 0; in __bt_close()
88 t->bt_cursor.key.data = NULL; in __bt_close()
HDbtree.h310 CURSOR bt_cursor; /* cursor */ member
HDbt_split.c688 c = &t->bt_cursor; in bt_psplit()