Lines Matching refs:map
120 read_from_dit(char *map, char *domain, datum *key, datum *value) in read_from_dit() argument
145 if (TRUE == singleReadFromDIT(map, domain, key, value, &res)) in read_from_dit()
196 write_to_dit(char *map, char *domain, datum key, datum value, in write_to_dit() argument
222 res = singleWriteToDIT(map, domain, &key, &value, replace); in write_to_dit()
275 get_ttl_value(map_ctrl *map, TTL_TYPE type) in get_ttl_value() argument
282 table_map = mappingFromMap(map->map_name, map->domain, &res); in get_ttl_value()
287 "(error %d)", map->map_name, map->domain, res); in get_ttl_value()
542 add_special_entries(DBM *db, map_ctrl *map, bool_t *secure_flag) in add_special_entries() argument
552 addpair(db, yp_domain_name, map->domain); in add_special_entries()
559 table_map = mappingFromMap(map->map_name, map->domain, &res); in add_special_entries()
592 update_map_from_dit(map_ctrl *map, bool_t log_flag) { in update_map_from_dit() argument
626 if (!map || !map->map_name || !map->domain) { in update_map_from_dit()
636 if ((0 == strcmp(map->map_name, NETGROUP_BYHOST)) || in update_map_from_dit()
637 0 == (strcmp(map->map_name, NETGROUP_BYUSER))) { in update_map_from_dit()
638 return (update_netgroup_byxxx(map)); in update_map_from_dit()
642 if ((t = mappingFromMap(map->map_name, map->domain, &statP)) == 0) { in update_map_from_dit()
646 myself, map->map_name, map->domain); in update_map_from_dit()
651 if (SUCCESS != alloc_temp_names(map->map_path, in update_map_from_dit()
655 myself, map->map_path); in update_map_from_dit()
685 if (0 == strcasecmp(map->domain, ypDomains.domainLabels[i])) { in update_map_from_dit()
691 if (!(objname = getFullMapName(map->map_name, map->domain))) { in update_map_from_dit()
709 if (strncmp(map->map_name, xlate_to_lcase_maps[m], in update_map_from_dit()
729 myself, t->dbId, map->map_name); in update_map_from_dit()
746 map->map_name, in update_map_from_dit()
774 t->dbId, map->map_name, in update_map_from_dit()
796 map->domain); in update_map_from_dit()
806 t->dbId, map->map_name, in update_map_from_dit()
820 t->dbId, map->map_name, in update_map_from_dit()
834 map->map_name, in update_map_from_dit()
867 map->map_name, in update_map_from_dit()
905 temp_map.map_name = map->map_name; in update_map_from_dit()
906 temp_map.domain = map->domain; in update_map_from_dit()
922 myself, NIL(key.dptr), map->map_name, in update_map_from_dit()
923 map->domain); in update_map_from_dit()
930 "for %s,%s", myself, map->map_name, map->domain); in update_map_from_dit()
934 add_special_entries(temp_entries_db, map, &secure_flag); in update_map_from_dit()
941 lock_map_ctrl(map); in update_map_from_dit()
944 rename_map(temp_entries, map->map_path, secure_flag); in update_map_from_dit()
945 rename_map(temp_ttl, map->ttl_path, secure_flag); in update_map_from_dit()
952 unlock_map_ctrl(map); in update_map_from_dit()
1187 update_netgroup_byxxx(map_ctrl *map) { in update_netgroup_byxxx() argument
1215 if (0 == strcmp(map->map_name, NETGROUP_BYHOST)) in update_netgroup_byxxx()
1222 (strlen(map->map_path) - strlen(map->map_name)) + in update_netgroup_byxxx()
1225 (strlen(map->map_path) - strlen(map->map_name)) + in update_netgroup_byxxx()
1243 strlcpy(cmdbuf, map->map_path, strlen(map->map_path) - in update_netgroup_byxxx()
1244 strlen(map->map_name) + 1); in update_netgroup_byxxx()
1266 strncat(cmdbuf, map->map_path, strlen(map->map_path) - in update_netgroup_byxxx()
1267 strlen(map->map_name)); in update_netgroup_byxxx()
1270 if (0 == strcmp(map->map_name, NETGROUP_BYHOST)) { in update_netgroup_byxxx()
1277 strncat(cmdbuf, map->map_path, strlen(map->map_path) - in update_netgroup_byxxx()
1278 strlen(map->map_name)); in update_netgroup_byxxx()
1290 if (SUCCESS != alloc_temp_names(map->map_path, in update_netgroup_byxxx()
1294 myself, map->map_path); in update_netgroup_byxxx()
1300 (strlen(map->map_path) - strlen(map->map_name)) + in update_netgroup_byxxx()
1312 strncat(cmdbuf, map->map_path, strlen(map->map_path) - in update_netgroup_byxxx()
1313 strlen(map->map_name)); in update_netgroup_byxxx()
1328 strlcpy(cmdbuf, map->map_path, strlen(map->map_path) - in update_netgroup_byxxx()
1329 strlen(map->map_name) + 1); in update_netgroup_byxxx()
1368 temp_map.domain = map->domain; in update_netgroup_byxxx()
1387 myself, NIL(key.dptr), map->map_name, in update_netgroup_byxxx()
1388 map->domain); in update_netgroup_byxxx()
1400 lock_map_ctrl(map); in update_netgroup_byxxx()
1403 rename_map(temp_entries, map->map_path, FALSE); in update_netgroup_byxxx()
1404 rename_map(temp_ttl, map->ttl_path, FALSE); in update_netgroup_byxxx()
1411 unlock_map_ctrl(map); in update_netgroup_byxxx()