Lines Matching defs:where
56 * th inverse of 2**(N-1), where N is the number of bits in a
152 entryp found = head->where;
175 newentry->where = tabloc;
213 answer[i] = current->where;
497 * 'where'. Return NULL in both if no next entry is found.
500 db_table::first_entry(entryp * where)
504 *where = NULL;
511 *where = i;
516 *where = NULL;
542 /* Return entry at location 'where', NULL if location is invalid. */
544 db_table::get_entry(entryp where)
547 if (where < table_size && tab != NULL && tab[where] != NULL)
548 return (tab[where]);
554 db_table::setEntryExp(entryp where, entry_obj *obj, int initialLoad) {
617 * result in mapping.expire[where]
627 mapping.expire[where] = now.tv_sec + lo;
630 mapping.expire[where] = now.tv_sec +
634 mapping.expire[where] <
636 mapping.enumExpire = mapping.expire[where];
638 mapping.expire[where] = now.tv_sec + ttl;
645 * or add to end of table) and return the the position of where the record
658 entryp where = freelist.pop();
659 if (where == NULL) { /* empty freelist */
662 where = ++last_used;
666 setEntryExp(where, obj, initialLoad);
669 enumTouch(where);
670 tab[where] = new_entry(obj);
671 return (where);
685 db_table::replace_entry(entryp where, entry_object * obj)
688 if (where < DB_TABLE_START || where >= table_size ||
689 tab == NULL || tab[where] == NULL)
692 setEntryExp(where, obj, 0);
695 enumTouch(where);
696 free_entry(tab[where]);
697 tab[where] = obj;
708 db_table::delete_entry(entryp where)
713 if (where < DB_TABLE_START || where >= table_size ||
714 tab == NULL || tab[where] == NULL)
717 mapping.expire[where] = 0;
720 enumTouch(where);
721 free_entry(tab[where]);
722 tab[where] = NULL; /* very important to set it to null */
724 if (where == last_used) { /* simple case, deleting from end */
728 return (freelist.push(where));
932 * The indended use is for enumeration of an LDAP container, where we
943 * where the caller supplies a count of the number of DB entries (derived