Lines Matching refs:nAttrs
317 int nAttrs = 0; in __s_api_cvtEntry() local
378 nAttrs = 1; /* start with 1 for the DN attr */ in __s_api_cvtEntry()
381 nAttrs++; in __s_api_cvtEntry()
388 ep->attr_count = nAttrs; in __s_api_cvtEntry()
461 attr != NULL && j != nAttrs; in __s_api_cvtEntry()
740 ap[nAttrs] = (ns_ldap_attr_t *) in __s_api_cvtEntry()
743 if (ap[nAttrs] == NULL) { in __s_api_cvtEntry()
748 ap[nAttrs]->attrvalue = (char **)calloc( in __s_api_cvtEntry()
750 if (ap[nAttrs]->attrvalue == NULL) { in __s_api_cvtEntry()
756 ap[nAttrs]->attrvalue[0] = in __s_api_cvtEntry()
760 if (ap[nAttrs]->attrvalue[0] == NULL) { in __s_api_cvtEntry()
765 (void) strcpy(ap[nAttrs]->attrvalue[0], in __s_api_cvtEntry()
768 ap[nAttrs]->attrname = strdup("gecos"); in __s_api_cvtEntry()
769 if (ap[nAttrs]->attrname == NULL) { in __s_api_cvtEntry()
775 ap[nAttrs]->value_count = 1; in __s_api_cvtEntry()
776 ep->attr_count = nAttrs + 1; in __s_api_cvtEntry()
786 ap[nAttrs]->attrvalue[0], in __s_api_cvtEntry()
787 strlen(ap[nAttrs]-> in __s_api_cvtEntry()
796 ap[nAttrs]->attrvalue[0] = tmp; in __s_api_cvtEntry()
797 (void) strcat(ap[nAttrs]->attrvalue[0], in __s_api_cvtEntry()
799 (void) strcat(ap[nAttrs]->attrvalue[0], in __s_api_cvtEntry()