Lines Matching defs:map

1638 	ns_mapping_t		*map, *rmap;
2341 * Add reverse map first.
2356 rmap->map = (char **)calloc(2,
2358 if (rmap->map) {
2359 (rmap->map)[0] =
2361 if ((rmap->map)[0])
2388 "for schema map "
2401 "schema map "
2429 if (rmap->map) {
2430 if ((rmap->map)[0])
2431 free((rmap->map)[0]);
2432 free(rmap->map);
2444 * This dummy map needs not be removed, if
2445 * the next real map add operation fails.
2452 map = (ns_mapping_t *)calloc(1,
2454 if (map) {
2455 map->service = strdup(sid);
2456 if (map->service) {
2457 map->orig = strdup(
2459 if (map->orig) {
2460 map->map = (char **)calloc(2,
2462 if (map->map) {
2463 (map->map)[0] =
2465 if ((map->map)[0])
2473 map->type = NS_ATTR_MAP;
2475 * add to reverse map,
2480 NS_HASH_RAMAP, map);
2483 * ignore "map already existed" error,
2486 * for map.
2498 "for schema map "
2511 if (map->service)
2512 free(map->service);
2513 if (map->orig)
2514 free(map->orig);
2515 if (map->map) {
2516 if ((map->map)[0])
2517 free((map->map)[0]);
2518 free(map->map);
2520 free(map);
2521 map = NULL;
2531 if (map) {
2532 if (map->service)
2533 free(map->service);
2534 if (map->orig)
2535 free(map->orig);
2536 if (map->map) {
2537 if ((map->map)[0])
2538 free((map->map)[0]);
2539 free(map->map);
2541 free(map);
2547 * add the real schema map
2551 map = (ns_mapping_t *)calloc(1, sizeof (ns_mapping_t));
2552 if (map) {
2553 map->service = sid;
2554 map->orig = origA;
2555 map->map = mapA;
2558 map->type = NS_ATTR_MAP;
2560 NS_HASH_AMAP, map);
2562 map->type = NS_OBJ_MAP;
2564 NS_HASH_OMAP, map);
2576 "for schema map "
2589 "schema map "
2612 if (map)
2613 free(map);
3220 for (cpp = mptr->map; cpp && *cpp; cpp++) {
3223 if (cpp != mptr->map)
3251 for (cpp = mptr->map; cpp && *cpp; cpp++) {
3254 if (cpp != mptr->map)