Searched refs:bt_cursor (Results 1 – 10 of 10) sorted by relevance
| /mirbsd/src/lib/libc/db/recno/ |
| D | rec_seq.c | 76 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()
|
| D | rec_delete.c | 82 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()
|
| D | rec_put.c | 102 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()
|
| D | rec_close.c | 133 scursor = t->bt_cursor.rcursor; in __rec_sync() 165 t->bt_cursor.rcursor = scursor; in __rec_sync()
|
| /mirbsd/src/lib/libc/db/btree/ |
| D | bt_seq.c | 97 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()
|
| D | bt_put.c | 100 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()
|
| D | bt_delete.c | 91 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()
|
| D | bt_close.c | 80 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()
|
| D | btree.h | 313 CURSOR bt_cursor; /* cursor */ member
|
| D | bt_split.c | 681 c = &t->bt_cursor; in bt_psplit()
|