Lines Matching refs:where

61  * th inverse of 2**(N-1), where N is the number of bits in a
157 entryp found = head->where;
180 newentry->where = tabloc;
218 answer[i] = current->where;
502 * 'where'. Return NULL in both if no next entry is found.
505 db_table::first_entry(entryp * where)
509 *where = NULL;
516 *where = i;
521 *where = NULL;
547 /* Return entry at location 'where', NULL if location is invalid. */
549 db_table::get_entry(entryp where)
552 if (where < table_size && tab != NULL && tab[where] != NULL)
553 return (tab[where]);
559 db_table::setEntryExp(entryp where, entry_obj *obj, int initialLoad) {
622 * result in mapping.expire[where]
632 mapping.expire[where] = now.tv_sec + lo;
635 mapping.expire[where] = now.tv_sec +
639 mapping.expire[where] <
641 mapping.enumExpire = mapping.expire[where];
643 mapping.expire[where] = now.tv_sec + ttl;
650 * or add to end of table) and return the the position of where the record
663 entryp where = freelist.pop();
664 if (where == NULL) { /* empty freelist */
667 where = ++last_used;
671 setEntryExp(where, obj, initialLoad);
674 enumTouch(where);
675 tab[where] = new_entry(obj);
676 return (where);
690 db_table::replace_entry(entryp where, entry_object * obj)
693 if (where < DB_TABLE_START || where >= table_size ||
694 tab == NULL || tab[where] == NULL)
697 setEntryExp(where, obj, 0);
700 enumTouch(where);
701 free_entry(tab[where]);
702 tab[where] = obj;
713 db_table::delete_entry(entryp where)
718 if (where < DB_TABLE_START || where >= table_size ||
719 tab == NULL || tab[where] == NULL)
722 mapping.expire[where] = 0;
725 enumTouch(where);
726 free_entry(tab[where]);
727 tab[where] = NULL; /* very important to set it to null */
729 if (where == last_used) { /* simple case, deleting from end */
733 return (freelist.push(where));
937 * The indended use is for enumeration of an LDAP container, where we
948 * where the caller supplies a count of the number of DB entries (derived