Lines Matching refs:item
143 datum item; in fetch() local
147 item = makdatum(pagbuf, i); in fetch()
148 if (item.dptr == NULL) { in fetch()
149 return (item); in fetch()
151 if (cmpdatum(key, item) == 0) { in fetch()
152 item = makdatum(pagbuf, i+1); in fetch()
153 if (item.dptr == NULL) in fetch()
155 return (item); in fetch()
164 datum item; in delete() local
170 item = makdatum(pagbuf, i); in delete()
171 if (item.dptr == NULL) in delete()
173 if (cmpdatum(key, item) == 0) { in delete()
188 datum item; in store() local
196 item = makdatum(pagbuf, i); in store()
197 if (item.dptr == NULL) in store()
199 if (cmpdatum(key, item) == 0) { in store()
223 item = makdatum(pagbuf, i); in store()
224 if (item.dptr == NULL) in store()
226 if (calchash(item) & (hmask+1)) { in store()
227 (void) additem(ovfbuf, item); in store()
229 item = makdatum(pagbuf, i); in store()
230 if (item.dptr == NULL) { in store()
234 (void) additem(ovfbuf, item); in store()
264 datum item, bitem; in nextkey() local
276 item = makdatum(pagbuf, i); in nextkey()
277 if (item.dptr == NULL) in nextkey()
279 if (cmpdatum(key, item) <= 0) in nextkey()
281 if (f || cmpdatum(bitem, item) < 0) { in nextkey()
282 bitem = item; in nextkey()
290 return (item); in nextkey()
298 datum item, bitem; in firsthash() local
304 item = makdatum(pagbuf, i); in firsthash()
305 if (item.dptr == NULL) in firsthash()
307 if (cmpdatum(bitem, item) < 0) in firsthash()
308 bitem = item; in firsthash()
314 return (item); in firsthash()
398 datum item; in makdatum() local
407 item.dptr = buf+sp[n+1]; in makdatum()
408 item.dsize = t - sp[n+1]; in makdatum()
409 return (item); in makdatum()
412 item.dptr = NULL; in makdatum()
413 item.dsize = 0; in makdatum()
414 return (item); in makdatum()
486 calchash(datum item) in calchash() argument
494 for (i = 0; i < item.dsize; i++) { in calchash()
495 f = item.dptr[i]; in calchash()
540 additem(char buf[PBLKSIZ], datum item) in additem() argument
550 i1 -= item.dsize; in additem()
555 for (i2 = 0; i2 < item.dsize; i2++) { in additem()
556 buf[i1] = item.dptr[i2]; in additem()