Lines Matching refs:ypDomains
73 extern __yp_domain_context_t ypDomains;
134 attrib_num, *table_mapping, &ypDomains);
376 __yp_domain_context_t *ypDomains)
396 if (ypDomains == NULL) {
400 * are always called with a pointer to the global ypDomains
408 numDomains = ypDomains->numDomains;
409 ypDomains->domainLabels =
410 (char **)s_realloc(ypDomains->domainLabels,
412 sizeof (ypDomains->domainLabels[0]));
413 if (ypDomains->domainLabels == NULL) {
415 free_yp_domain_context(ypDomains);
418 ypDomains->domainLabels[numDomains] =
420 if (ypDomains->domainLabels[numDomains] == NULL) {
422 free_yp_domain_context(ypDomains);
425 ypDomains->numDomains = numDomains + 1;
432 ypDomains->domains =
433 (char **)s_realloc(ypDomains->domains,
435 sizeof (ypDomains->domains[0]));
436 if (ypDomains->domains == NULL) {
438 free_yp_domain_context(ypDomains);
445 ypDomains->domains[numDomains] =
447 if (ypDomains->domains[numDomains] == NULL) {
449 free_yp_domain_context(ypDomains);
454 free(ypDomains->domainLabels[numDomains]);
455 ypDomains->domainLabels[numDomains] = NULL;
456 ypDomains->numDomains--;
457 free_yp_domain_context(ypDomains);
461 ypDomains->yppasswddDomainLabels =
463 ypDomains->yppasswddDomainLabels,
464 (ypDomains->numYppasswdd + 1) *
465 sizeof (ypDomains->yppasswddDomainLabels[0]));
466 if (ypDomains->yppasswddDomainLabels == NULL) {
470 ypDomains->yppasswddDomainLabels
471 [ypDomains->numYppasswdd] =
473 if (ypDomains->yppasswddDomainLabels
474 [ypDomains->numYppasswdd] == NULL) {
477 ypDomains->numYppasswdd++;