Lines Matching refs:nm
1912 char **nm, **lm; in __s_cvt_group() local
1971 nm = (char **)calloc(i+2, sizeof (char *)); in __s_cvt_group()
1972 if (nm == NULL) { in __s_cvt_group()
1977 nm[j] = strdup(lm[j]); in __s_cvt_group()
1978 if (nm[j] == NULL) { in __s_cvt_group()
1980 free(nm[k]); in __s_cvt_group()
1981 free(nm); in __s_cvt_group()
1986 rc = __s_add_attrlist(e, "memberUid", nm); in __s_cvt_group()
1988 free(nm[j]); in __s_cvt_group()
1990 free(nm); in __s_cvt_group()
1991 nm = NULL; in __s_cvt_group()
2017 char **nm, **lm; in __s_cvt_hosts() local
2061 nm = (char **)calloc(i+2, sizeof (char *)); in __s_cvt_hosts()
2062 if (nm == NULL) { in __s_cvt_hosts()
2066 nm[0] = ptr->h_name; in __s_cvt_hosts()
2068 nm[j+1] = ptr->h_aliases[j]; in __s_cvt_hosts()
2070 rc = __s_add_attrlist(e, "cn", nm); in __s_cvt_hosts()
2074 free(nm); in __s_cvt_hosts()
2079 nm[0] = &(lm[i][1]); in __s_cvt_hosts()
2080 nm[1] = NULL; in __s_cvt_hosts()
2081 rc = __s_add_attrlist(e, "description", nm); in __s_cvt_hosts()
2083 free(nm); in __s_cvt_hosts()
2084 nm = NULL; in __s_cvt_hosts()
2102 nm = (char **)calloc(i+2, sizeof (char *)); in __s_cvt_hosts()
2103 if (nm == NULL) { in __s_cvt_hosts()
2108 nm[j] = strdup(lm[j]); in __s_cvt_hosts()
2109 if (nm[j] == NULL) { in __s_cvt_hosts()
2111 free(nm[k]); in __s_cvt_hosts()
2112 free(nm); in __s_cvt_hosts()
2117 rc = __s_add_attrlist(e, "ipHostNumber", nm); in __s_cvt_hosts()
2119 free(nm[j]); in __s_cvt_hosts()
2121 free(nm); in __s_cvt_hosts()
2122 nm = NULL; in __s_cvt_hosts()
2151 char **nm; in __s_cvt_rpc() local
2185 nm = ptr->r_aliases; in __s_cvt_rpc()
2186 for (i = 0; *nm; i++, nm++) in __s_cvt_rpc()
2188 nm = (char **)calloc(i+2, sizeof (char *)); in __s_cvt_rpc()
2189 if (nm == NULL) { in __s_cvt_rpc()
2193 nm[0] = ptr->r_name; in __s_cvt_rpc()
2195 nm[j+1] = ptr->r_aliases[j]; in __s_cvt_rpc()
2197 rc = __s_add_attrlist(e, "cn", nm); in __s_cvt_rpc()
2198 free(nm); in __s_cvt_rpc()
2199 nm = NULL; in __s_cvt_rpc()
2242 char **nm; in __s_cvt_protocols() local
2275 nm = ptr->p_aliases; in __s_cvt_protocols()
2276 for (i = 0; *nm; i++, nm++) in __s_cvt_protocols()
2278 nm = (char **)calloc(i+2, sizeof (char *)); in __s_cvt_protocols()
2279 if (nm == NULL) { in __s_cvt_protocols()
2283 nm[0] = ptr->p_name; in __s_cvt_protocols()
2285 nm[j+1] = ptr->p_aliases[j]; in __s_cvt_protocols()
2287 rc = __s_add_attrlist(e, "cn", nm); in __s_cvt_protocols()
2288 free(nm); in __s_cvt_protocols()
2289 nm = NULL; in __s_cvt_protocols()
2331 char **nm; in __s_cvt_services() local
2375 nm = ptr->s_aliases; in __s_cvt_services()
2376 for (i = 0; *nm; i++, nm++) in __s_cvt_services()
2378 nm = (char **)calloc(i+2, sizeof (char *)); in __s_cvt_services()
2379 if (nm == NULL) { in __s_cvt_services()
2383 nm[0] = ptr->s_name; in __s_cvt_services()
2385 nm[j+1] = ptr->s_aliases[j]; in __s_cvt_services()
2387 rc = __s_add_attrlist(e, "cn", nm); in __s_cvt_services()
2388 free(nm); in __s_cvt_services()
2389 nm = NULL; in __s_cvt_services()
2434 char **nm; in __s_cvt_networks() local
2473 nm = ptr->n_aliases; in __s_cvt_networks()
2474 for (i = 0; *nm; i++, nm++) in __s_cvt_networks()
2476 nm = (char **)calloc(i+2, sizeof (char *)); in __s_cvt_networks()
2477 if (nm == NULL) { in __s_cvt_networks()
2481 nm[0] = ptr->n_name; in __s_cvt_networks()
2483 nm[j+1] = ptr->n_aliases[j]; in __s_cvt_networks()
2485 rc = __s_add_attrlist(e, "cn", nm); in __s_cvt_networks()
2486 free(nm); in __s_cvt_networks()
2487 nm = NULL; in __s_cvt_networks()
2588 char **nm; in __s_cvt_netgroups() local
2629 nm = ptr->triplet; in __s_cvt_netgroups()
2630 for (i = 0; *nm; i++, nm++) in __s_cvt_netgroups()
2632 nm = (char **)calloc(i+2, sizeof (char *)); in __s_cvt_netgroups()
2633 if (nm == NULL) { in __s_cvt_netgroups()
2638 nm[j] = ptr->triplet[j]; in __s_cvt_netgroups()
2640 rc = __s_add_attrlist(e, "nisNetgroupTriple", nm); in __s_cvt_netgroups()
2641 free(nm); in __s_cvt_netgroups()
2642 nm = NULL; in __s_cvt_netgroups()
2649 nm = ptr->netgroup; in __s_cvt_netgroups()
2650 for (i = 0; *nm; i++, nm++) in __s_cvt_netgroups()
2652 nm = (char **)calloc(i+2, sizeof (char *)); in __s_cvt_netgroups()
2653 if (nm == NULL) { in __s_cvt_netgroups()
2658 nm[j] = ptr->netgroup[j]; in __s_cvt_netgroups()
2660 rc = __s_add_attrlist(e, "memberNisNetgroup", nm); in __s_cvt_netgroups()
2661 free(nm); in __s_cvt_netgroups()
2662 nm = NULL; in __s_cvt_netgroups()
2686 char **nm; in __s_cvt_bootparams() local
2728 nm = ptr->param; in __s_cvt_bootparams()
2729 for (i = 0; *nm; i++, nm++) in __s_cvt_bootparams()
2731 nm = (char **)calloc(i+2, sizeof (char *)); in __s_cvt_bootparams()
2732 if (nm == NULL) { in __s_cvt_bootparams()
2737 nm[j] = ptr->param[j]; in __s_cvt_bootparams()
2739 rc = __s_add_attrlist(e, "bootParameter", nm); in __s_cvt_bootparams()
2740 free(nm); in __s_cvt_bootparams()
2741 nm = NULL; in __s_cvt_bootparams()
3003 char **nm; in __s_cvt_aliases() local
3044 nm = ptr->member; in __s_cvt_aliases()
3045 for (i = 0; *nm; i++, nm++) in __s_cvt_aliases()
3047 nm = (char **)calloc(i+2, sizeof (char *)); in __s_cvt_aliases()
3048 if (nm == NULL) { in __s_cvt_aliases()
3053 nm[j] = ptr->member[j]; in __s_cvt_aliases()
3055 rc = __s_add_attrlist(e, "mgrpRFC822MailMember", nm); in __s_cvt_aliases()
3056 free(nm); in __s_cvt_aliases()
3057 nm = NULL; in __s_cvt_aliases()