Lines Matching refs:rmap
1662 ns_mapping_t *map, *rmap;
2373 rmap = (ns_mapping_t *)calloc(1,
2375 if (rmap) {
2376 rmap->service = strdup(sid);
2377 if (rmap->service) {
2378 rmap->orig = strdup(*attr);
2379 if (rmap->orig) {
2380 rmap->map = (char **)calloc(2,
2382 if (rmap->map) {
2383 (rmap->map)[0] =
2385 if ((rmap->map)[0])
2394 rmap->type = NS_ATTR_MAP;
2396 NS_HASH_RAMAP, rmap);
2398 rmap->type = NS_OBJ_MAP;
2400 NS_HASH_ROMAP, rmap);
2448 if (rmap) {
2449 if (rmap->service)
2450 free(rmap->service);
2451 if (rmap->orig)
2452 free(rmap->orig);
2453 if (rmap->map) {
2454 if ((rmap->map)[0])
2455 free((rmap->map)[0]);
2456 free(rmap->map);
2458 free(rmap);