Lines Matching defs:table

49 /* Pass through configuration information to the table */
59 if (table != NULL) {
60 return (table->configure(tablePath));
62 /* Defer table config until we have a table instance */
142 return (table);
225 * Convert full object name to the db table path used as
248 selectMapping(db_table *table, nis_object *obj, db_query *qin,
258 * If 'table' is NULL, we try to find a mapping for 'obj'.
262 if (table == 0) {
299 if (table->mapping.objType == NIS_BOGUS_OBJ) {
300 table->mapping.objType = updateMappingObj(table->mapping.tm,
301 &table->mapping.objName,
302 &table->mapping.isMaster);
303 table->mapping.expireType = table->mapping.objType;
307 * Depending on the object type (table->mapping.objType):
309 * table Use table->mapping.tm to query LDAP
312 * directory Use 'qin' and table->mapping.objName
324 switch (table->mapping.objType) {
326 t = table->mapping.tm;
328 doLDAP = table->mapping.isMaster &&
329 table->mapping.toLDAP;
331 doLDAP = table->mapping.fromLDAP;
351 t = table->mapping.tm;
353 doLDAP = table->mapping.isMaster &&
354 table->mapping.toLDAP;
356 doLDAP = table->mapping.fromLDAP;
375 bp2buf(myself, &b, ".%s", table->mapping.objName);
385 /* Look for the corresponding table mapping */
432 * Replace or remove the table entry identified by 'e'. 'tableName' is
433 * the name of the table (which could be a directory) in which the entry
436 * a pointer to the table object; needed for table entries, but not
459 if (table == 0 || e == 0)
485 table->get_entry(dbie->getlocation()), tobj);
515 table->touchEntry(dbie->getlocation());
595 table->mapping.tm, &numAttrs);
651 if (table == 0 || e == 0)
673 table->touchEntry(dbie->getlocation());
740 if (!useLDAPrespository || table == 0)
747 if (table->mapping.isDeferredTable)
750 t = selectMapping(table, 0, qin, FALSE, &asObj, &stat);
827 * by 't') in the directory 'table->mapping.tm'.
838 NIL(table->mapping.tm->objName));
859 * table, so we need a write lock on that as well.
863 WRITELOCKNR(table, stat2,
864 "table w db_mindex::queryLDAP");
876 table->setEnumMode(0);
992 ea = table->endEnumMode(&numEa);
1020 table->mapping.enumExpire = now.tv_sec +
1021 table->mapping.ttl;
1050 WRITEUNLOCK2(table, this,
1052 "table wu db_mindex::queryLDAP",
1060 * directory containing the table to be updated. If we
1092 if (!useLDAPrespository || table == 0)
1096 if (table->mapping.isDeferredTable)
1099 t = selectMapping(table, 0, qin, TRUE, &asObj, &stat);
1154 * corresponding to the entire table.
1167 * other than table entries.
1192 if (dbase == 0 || dbm == 0 || dbm->table == 0) {
1202 * Read-lock the table so that 'tab'
1205 READLOCK(dbm->table, LDAP_OPERATIONS_ERROR,
1206 "r table db_mindex::storeLDAP");
1209 tea = dbm->table->gettab();
1210 ntea = dbm->table->getsize();
1213 * There may be empty slots in the table 'tab'
1220 READUNLOCK(dbm->table, LDAP_NO_MEMORY,
1221 "ru table db_mindex::storeLDAP");
1234 READUNLOCK(dbm->table,
1236 "ru table db_mindex::storeLDAP");
1242 READUNLOCK(dbm->table,
1244 "ru table db_mindex::storeLDAP");
1258 READUNLOCK(dbm->table, stat,
1259 "ru table db_mindex::storeLDAP");
1272 * 'oldObj' is used for table entries if the store operation is
1292 if (!useLDAPrespository || table == 0)
1296 if (table->mapping.isDeferredTable)
1299 t = selectMapping(table, 0, qin, TRUE, &asObj, &stat);
1350 * If we found a mapping for the 'table' in this db_mindex,
1419 t = selectMapping(table, 0, 0, TRUE, &asObj, &stat);
1428 /* Store table entries. If we don't have a mapping, we're done. */
1568 table->get_entry(dbie->getlocation()),
1603 READLOCK(table, LDAP_OPERATIONS_ERROR,
1604 "r table db_mindex::storeLDAP");
1606 tab = table->gettab();
1607 ntab = table->getsize();
1609 READUNLOCK(table, LDAP_OPERATIONS_ERROR,
1610 "ru table db_mindex::storeLDAP");
1619 READUNLOCK(table, LDAP_OPERATIONS_ERROR,
1620 "ru table db_mindex::storeLDAP");
1635 READUNLOCK(table, LDAP_OPERATIONS_ERROR,
1636 "ru table db_mindex::storeLDAP");
1651 * in this table, we now consider our local copy
1656 WRITELOCKNR(table, lstat,
1657 "w table db_mindex::storeLDAP");
1659 table->mapping.enumExpire = now.tv_sec +
1660 table->mapping.ttl;
1662 WRITEUNLOCKNR(table, lstat,
1663 "wu table db_mindex::storeLDAP");
1676 READUNLOCK(table, stat,
1677 "ru table db_mindex::storeLDAP");