Lines Matching defs:db_table

23  *	db_table.cc
38 #include "db_table.h"
231 db_table::initMappingStruct(__nisdb_table_mapping_t *m) {
292 db_table::db_table_ldap_init(void) {
313 /* db_table constructor */
314 db_table::db_table() : freelist()
328 * db_table destructor:
333 db_table::~db_table()
335 WRITELOCKV(this, "w db_table::~db_table");
342 db_table::reset()
346 WRITELOCKV(this, "w db_table::reset");
377 WRITEUNLOCKV(this, "wu db_table::reset");
381 db_table::allocateExpire(long oldSize, long newSize) {
399 db_table::allocateEnumArray(long oldSize, long newSize) {
401 const char *myself = "db_table::allocateEnumArray";
428 db_table::grow()
430 WRITELOCKV(this, "w db_table::grow");
438 fprintf(stderr, "db_table GROWING to %d\n", table_size);
443 WRITEUNLOCKV(this, "wu db_table::grow");
444 FATAL("db_table::grow: table size exceeds calloc limit",
454 WRITEUNLOCKV(this, "wu db_table::grow");
455 FATAL("db_table::grow: cannot allocate space", DB_MEMORY_LIMIT);
472 WRITEUNLOCKV(this, "wu db_table::grow expire");
474 "db_table::grow: cannot allocate space for expire", stat);
491 WRITEUNLOCKV(this, "wu db_table::grow enumArray");
493 "db_table::grow: cannot allocate space for enumArray", stat);
497 WRITEUNLOCKV(this, "wu db_table::grow");
505 db_table::first_entry(entryp * where)
530 db_table::next_entry(entryp prev, entryp* newentry)
549 db_table::get_entry(entryp where)
559 db_table::setEntryExp(entryp where, entry_obj *obj, int initialLoad) {
561 const char *myself = "db_table::setEntryExp";
655 db_table::add_entry(entry_object *obj, int initialLoad) {
690 db_table::replace_entry(entryp where, entry_object * obj)
713 db_table::delete_entry(entryp where)
745 db_table::stats(bool_t include_freelist)
749 READLOCK(this, NULL, "r db_table::stats");
761 READUNLOCK(this, answer, "ru db_table::stats");
766 db_table::configure(char *tablePath) {
769 const char *myself = "db_table::configure";
773 WRITELOCK(this, FALSE, "db_table::configure w");
806 "db_table::configure wu objName");
807 FATAL3("db_table::configure objName",
837 "db_table::configure wu expire");
838 FATAL3("db_table::configure expire",
881 WRITEUNLOCK(this, FALSE, "db_table::configure wu");
888 db_table::cacheValid(entryp loc) {
894 READLOCK(this, FALSE, "db_table::cacheValid r");
903 READUNLOCK(this, ret, "db_table::cacheValid ru");
913 db_table::dupEntry(entry_object *obj, entryp loc) {
953 db_table::setEnumMode(long enumNum) {
980 db_table::clearEnumMode(void) {
996 db_table::endEnumMode(long *numEa) {
1031 db_table::enumTouch(entryp loc) {
1055 db_table::enumSetup(entryp loc, long index) {
1069 db_table::touchEntry(entryp loc) {
1079 /* Does the actual writing to/from file specific for db_table structure. */
1087 return (xdr_db_table(x, (db_table*) dp));
1094 /* Transfers db_table structure pointed to by dp to/from file. */
1095 int transfer(db_table* dp)
1105 db_table::dump(char *file)
1108 READLOCK(this, -1, "r db_table::dump");
1116 READUNLOCK(this, ret, "ru db_table::dump");
1120 db_table::db_table(char *file) : freelist()
1139 bool_t db_table::entry_exists_p(entryp i) {
1141 READLOCK(this, FALSE, "r db_table::entry_exists_p");
1144 READUNLOCK(this, ret, "ru db_table::entry_exists_p");