Home
last modified time | relevance | path

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

/freebsd/lib/libc/db/recno/
H A 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()
H A 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()
H A Drec_put.c99 if (!F_ISSET(&t->bt_cursor, CURS_INIT)) in __rec_put()
101 nrec = t->bt_cursor.rcursor; in __rec_put()
164 t->bt_cursor.rcursor = nrec; in __rec_put()
H A Drec_close.c135 scursor = t->bt_cursor.rcursor; in __rec_sync()
168 t->bt_cursor.rcursor = scursor; in __rec_sync()
/freebsd/lib/libc/db/btree/
H A Dbt_seq.c93 if (F_ISSET(&t->bt_cursor, CURS_INIT)) { in __bt_seq()
239 c = &t->bt_cursor; in __bt_seqadv()
426 if (t->bt_cursor.key.data != NULL) { in __bt_setcur()
427 free(t->bt_cursor.key.data); in __bt_setcur()
428 t->bt_cursor.key.size = 0; in __bt_setcur()
429 t->bt_cursor.key.data = NULL; in __bt_setcur()
431 F_CLR(&t->bt_cursor, CURS_ACQUIRE | CURS_AFTER | CURS_BEFORE); in __bt_setcur()
434 t->bt_cursor.pg.pgno = pgno; in __bt_setcur()
435 t->bt_cursor.pg.index = idx; in __bt_setcur()
436 F_SET(&t->bt_cursor, CURS_INI in __bt_setcur()
[all...]
H A Dbt_put.c97 if (F_ISSET(&t->bt_cursor, CURS_INIT) && in __bt_put()
98 !F_ISSET(&t->bt_cursor, in __bt_put()
147 if ((h = mpool_get(t->bt_mp, t->bt_cursor.pg.pgno, 0)) == NULL) in __bt_put()
149 idx = t->bt_cursor.pg.index; in __bt_put()
214 if (F_ISSET(&t->bt_cursor, CURS_INIT) && in __bt_put()
215 !F_ISSET(&t->bt_cursor, CURS_ACQUIRE) && in __bt_put()
216 t->bt_cursor.pg.pgno == h->pgno && t->bt_cursor.pg.index >= idx) in __bt_put()
217 ++t->bt_cursor.pg.index; in __bt_put()
H A Dbt_delete.c87 c = &t->bt_cursor; in __bt_delete()
99 if (__bt_stkacq(t, &h, &t->bt_cursor)) in __bt_delete()
467 if (F_ISSET(&t->bt_cursor, CURS_INIT) && in __bt_dleaf()
468 !F_ISSET(&t->bt_cursor, CURS_ACQUIRE) && in __bt_dleaf()
469 t->bt_cursor.pg.pgno == h->pgno && t->bt_cursor.pg.index == idx && in __bt_dleaf()
497 if (F_ISSET(&t->bt_cursor, CURS_INIT) && in __bt_dleaf()
498 !F_ISSET(&t->bt_cursor, CURS_ACQUIRE) && in __bt_dleaf()
499 t->bt_cursor.pg.pgno == h->pgno && t->bt_cursor.pg.index > idx) in __bt_dleaf()
500 --t->bt_cursor.pg.index; in __bt_dleaf()
530 c = &t->bt_cursor; in __bt_curdel()
H A Dbt_close.c82 if (t->bt_cursor.key.data != NULL) { in __bt_close()
83 free(t->bt_cursor.key.data); in __bt_close()
84 t->bt_cursor.key.size = 0; in __bt_close()
85 t->bt_cursor.key.data = NULL; in __bt_close()
H A Dbtree.h308 CURSOR bt_cursor; /* cursor */ member
H A Dbt_split.c685 c = &t->bt_cursor; in bt_psplit()