Home
last modified time | relevance | path

Searched refs:bt_cur (Results 1 – 4 of 4) sorted by relevance

/openbsd/lib/libc/db/btree/
H A Dbt_search.c73 t->bt_cur.page = h; in __bt_search()
75 t->bt_cur.index = idx = base + (lim >> 1); in __bt_search()
76 if ((cmp = __bt_cmp(t, key, &t->bt_cur)) == 0) { in __bt_search()
79 return (&t->bt_cur); in __bt_search()
102 return (&t->bt_cur); in __bt_search()
106 return (&t->bt_cur); in __bt_search()
109 t->bt_cur.index = base; in __bt_search()
110 return (&t->bt_cur); in __bt_search()
155 t->bt_cur = e; in __bt_snext()
190 t->bt_cur = e; in __bt_sprev()
H A Dbt_put.c269 t->bt_cur.page = h; in bt_fast()
270 t->bt_cur.index = t->bt_last.index; in bt_fast()
281 if (t->bt_cur.page->nextpg != P_INVALID) in bt_fast()
283 if (t->bt_cur.index != NEXTINDEX(h) - 1) in bt_fast()
285 if ((cmp = __bt_cmp(t, key, &t->bt_cur)) < 0) in bt_fast()
287 t->bt_last.index = cmp ? ++t->bt_cur.index : t->bt_cur.index; in bt_fast()
289 if (t->bt_cur.page->prevpg != P_INVALID) in bt_fast()
291 if (t->bt_cur.index != 0) in bt_fast()
293 if ((cmp = __bt_cmp(t, key, &t->bt_cur)) > 0) in bt_fast()
301 return (&t->bt_cur); in bt_fast()
H A Dbtree.h307 EPG bt_cur; /* current (pinned) page */ member
/openbsd/lib/libc/db/recno/
H A Drec_search.c74 t->bt_cur.page = h; in __rec_search()
75 t->bt_cur.index = recno - total; in __rec_search()
76 return (&t->bt_cur); in __rec_search()