Lines Matching full:where
59 * th inverse of 2**(N-1), where N is the number of bits in a
155 entryp found = head->where; in pop()
178 newentry->where = tabloc; in push()
216 answer[i] = current->where; in stats()
500 * 'where'. Return NULL in both if no next entry is found.
503 db_table::first_entry(entryp * where) in first_entry() argument
507 *where = NULL; in first_entry()
514 *where = i; in first_entry()
519 *where = NULL; in first_entry()
545 /* Return entry at location 'where', NULL if location is invalid. */
547 db_table::get_entry(entryp where) in get_entry() argument
550 if (where < table_size && tab != NULL && tab[where] != NULL) in get_entry()
551 return (tab[where]); in get_entry()
557 db_table::setEntryExp(entryp where, entry_obj *obj, int initialLoad) { in setEntryExp() argument
620 * result in mapping.expire[where] in setEntryExp()
630 mapping.expire[where] = now.tv_sec + lo; in setEntryExp()
633 mapping.expire[where] = now.tv_sec + in setEntryExp()
637 mapping.expire[where] < in setEntryExp()
639 mapping.enumExpire = mapping.expire[where]; in setEntryExp()
641 mapping.expire[where] = now.tv_sec + ttl; in setEntryExp()
648 * or add to end of table) and return the the position of where the record
661 entryp where = freelist.pop(); in add_entry() local
662 if (where == NULL) { /* empty freelist */ in add_entry()
665 where = ++last_used; in add_entry()
669 setEntryExp(where, obj, initialLoad); in add_entry()
672 enumTouch(where); in add_entry()
673 tab[where] = new_entry(obj); in add_entry()
674 return (where); in add_entry()
688 db_table::replace_entry(entryp where, entry_object * obj) in replace_entry() argument
691 if (where < DB_TABLE_START || where >= table_size || in replace_entry()
692 tab == NULL || tab[where] == NULL) in replace_entry()
695 setEntryExp(where, obj, 0); in replace_entry()
698 enumTouch(where); in replace_entry()
699 free_entry(tab[where]); in replace_entry()
700 tab[where] = obj; in replace_entry()
711 db_table::delete_entry(entryp where) in delete_entry() argument
716 if (where < DB_TABLE_START || where >= table_size || in delete_entry()
717 tab == NULL || tab[where] == NULL) in delete_entry()
720 mapping.expire[where] = 0; in delete_entry()
723 enumTouch(where); in delete_entry()
724 free_entry(tab[where]); in delete_entry()
725 tab[where] = NULL; /* very important to set it to null */ in delete_entry()
727 if (where == last_used) { /* simple case, deleting from end */ in delete_entry()
731 return (freelist.push(where)); in delete_entry()
935 * The indended use is for enumeration of an LDAP container, where we
946 * where the caller supplies a count of the number of DB entries (derived