Home
last modified time | relevance | path

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

/freebsd-12-stable/lib/libc/db/recno/
Drec_seq.c83 if (F_ISSET(&t->bt_cursor, CURS_INIT)) { in __rec_seq()
84 nrec = t->bt_cursor.rcursor + 1; in __rec_seq()
92 if (F_ISSET(&t->bt_cursor, CURS_INIT)) { in __rec_seq()
93 if ((nrec = t->bt_cursor.rcursor - 1) == 0) in __rec_seq()
120 F_SET(&t->bt_cursor, CURS_INIT); in __rec_seq()
121 t->bt_cursor.rcursor = nrec; in __rec_seq()
Drec_delete.c88 if (!F_ISSET(&t->bt_cursor, CURS_INIT)) in __rec_delete()
92 status = rec_rdelete(t, t->bt_cursor.rcursor - 1); in __rec_delete()
94 --t->bt_cursor.rcursor; in __rec_delete()
Drec_put.c105 if (!F_ISSET(&t->bt_cursor, CURS_INIT)) in __rec_put()
107 nrec = t->bt_cursor.rcursor; in __rec_put()
170 t->bt_cursor.rcursor = nrec; in __rec_put()
Drec_close.c141 scursor = t->bt_cursor.rcursor; in __rec_sync()
174 t->bt_cursor.rcursor = scursor; in __rec_sync()
/freebsd-12-stable/lib/libc/db/btree/
Dbt_seq.c99 if (F_ISSET(&t->bt_cursor, CURS_INIT)) { in __bt_seq()
245 c = &t->bt_cursor; in __bt_seqadv()
432 if (t->bt_cursor.key.data != NULL) { in __bt_setcur()
433 free(t->bt_cursor.key.data); in __bt_setcur()
434 t->bt_cursor.key.size = 0; in __bt_setcur()
435 t->bt_cursor.key.data = NULL; in __bt_setcur()
437 F_CLR(&t->bt_cursor, CURS_ACQUIRE | CURS_AFTER | CURS_BEFORE); in __bt_setcur()
440 t->bt_cursor.pg.pgno = pgno; in __bt_setcur()
441 t->bt_cursor.pg.index = idx; in __bt_setcur()
442 F_SET(&t->bt_cursor, CURS_INIT); in __bt_setcur()
Dbt_put.c103 if (F_ISSET(&t->bt_cursor, CURS_INIT) && in __bt_put()
104 !F_ISSET(&t->bt_cursor, in __bt_put()
153 if ((h = mpool_get(t->bt_mp, t->bt_cursor.pg.pgno, 0)) == NULL) in __bt_put()
155 idx = t->bt_cursor.pg.index; in __bt_put()
220 if (F_ISSET(&t->bt_cursor, CURS_INIT) && in __bt_put()
221 !F_ISSET(&t->bt_cursor, CURS_ACQUIRE) && in __bt_put()
222 t->bt_cursor.pg.pgno == h->pgno && t->bt_cursor.pg.index >= idx) in __bt_put()
223 ++t->bt_cursor.pg.index; in __bt_put()
Dbt_delete.c93 c = &t->bt_cursor; in __bt_delete()
105 if (__bt_stkacq(t, &h, &t->bt_cursor)) in __bt_delete()
473 if (F_ISSET(&t->bt_cursor, CURS_INIT) && in __bt_dleaf()
474 !F_ISSET(&t->bt_cursor, CURS_ACQUIRE) && in __bt_dleaf()
475 t->bt_cursor.pg.pgno == h->pgno && t->bt_cursor.pg.index == idx && in __bt_dleaf()
503 if (F_ISSET(&t->bt_cursor, CURS_INIT) && in __bt_dleaf()
504 !F_ISSET(&t->bt_cursor, CURS_ACQUIRE) && in __bt_dleaf()
505 t->bt_cursor.pg.pgno == h->pgno && t->bt_cursor.pg.index > idx) in __bt_dleaf()
506 --t->bt_cursor.pg.index; in __bt_dleaf()
536 c = &t->bt_cursor; in __bt_curdel()
Dbt_close.c88 if (t->bt_cursor.key.data != NULL) { in __bt_close()
89 free(t->bt_cursor.key.data); in __bt_close()
90 t->bt_cursor.key.size = 0; in __bt_close()
91 t->bt_cursor.key.data = NULL; in __bt_close()
Dbtree.h311 CURSOR bt_cursor; /* cursor */ member
Dbt_split.c691 c = &t->bt_cursor; in bt_psplit()