Lines Matching refs:item
256 datum item; in dbm_fetch() local
262 item = makdatum(db->dbm_pagbuf, i+1); in dbm_fetch()
263 if (item.dptr != NULL) in dbm_fetch()
264 return (item); in dbm_fetch()
267 item.dptr = NULL; in dbm_fetch()
268 item.dsize = 0; in dbm_fetch()
269 return (item); in dbm_fetch()
308 datum item, item1; in dbm_store() local
353 item = makdatum(db->dbm_pagbuf, i); in dbm_store()
354 if (item.dptr == NULL) in dbm_store()
356 item_hash = dcalchash(item); in dbm_store()
369 if (!additem(ovfbuf, item, item1) || in dbm_store()
428 datum item, bitem; in dbm_firsthash() local
435 item = makdatum(db->dbm_pagbuf, i); in dbm_firsthash()
436 if (item.dptr == NULL) in dbm_firsthash()
438 if (cmpdatum(bitem, item) < 0) { in dbm_firsthash()
440 bitem = item; in dbm_firsthash()
450 return (item); /* null item */ in dbm_firsthash()
498 datum item; in dbm_slow_nextkey() local
523 item = makdatum(db->dbm_pagbuf, db->dbm_keyptr); in dbm_slow_nextkey()
524 if (item.dptr != NULL) { in dbm_slow_nextkey()
526 return (item); in dbm_slow_nextkey()
535 item.dptr = NULL; in dbm_slow_nextkey()
536 item.dsize = 0; in dbm_slow_nextkey()
537 return (item); in dbm_slow_nextkey()
545 datum item, bitem; in dbm_do_nextkey() local
557 item.dptr = NULL; in dbm_do_nextkey()
558 item.dsize = 0; in dbm_do_nextkey()
559 return (item); in dbm_do_nextkey()
624 item.dptr = NULL; in dbm_do_nextkey()
625 item.dsize = 0; in dbm_do_nextkey()
628 if (i > 0) item.dsize = sp[i] - sp[i + 1]; in dbm_do_nextkey()
629 else item.dsize = PBLKSIZ - sp[i + 1]; in dbm_do_nextkey()
630 item.dptr = db->dbm_pagbuf+sp[i + 1]; in dbm_do_nextkey()
636 if (item.dptr == NULL) in dbm_do_nextkey()
642 if (n != item.dsize) { in dbm_do_nextkey()
643 if ((n - item.dsize) <= 0) in dbm_do_nextkey()
648 p2 = item.dptr; in dbm_do_nextkey()
667 bitem = item; in dbm_do_nextkey()
675 if (n != item.dsize) { in dbm_do_nextkey()
676 if ((n - item.dsize) < 0) { in dbm_do_nextkey()
677 bitem = item; in dbm_do_nextkey()
683 p2 = item.dptr; in dbm_do_nextkey()
687 bitem = item; in dbm_do_nextkey()
711 return (item); /* null */ in dbm_do_nextkey()
849 datum item; in makdatum() local
853 item.dptr = NULL; in makdatum()
854 item.dsize = 0; in makdatum()
855 return (item); in makdatum()
860 item.dptr = buf + sp[n + 1]; in makdatum()
861 item.dsize = t - sp[n + 1]; in makdatum()
862 return (item); in makdatum()
890 finddatum(char *buf, datum item) in finddatum() argument
899 if (n != item.dsize) in finddatum()
901 if (n == 0 || memcmp(&buf[sp[i+1]], item.dptr, n) == 0) in finddatum()
941 dcalchash(datum item) in dcalchash() argument
951 for (cp = item.dptr, s = item.dsize; --s >= 0; ) { in dcalchash()
997 additem(char *buf, datum item, datum item1) in additem() argument
1007 i1 -= item.dsize + item1.dsize; in additem()
1012 (void) memmove(&buf[i1 + item1.dsize], item.dptr, item.dsize); in additem()