Lines Matching refs:domain

103  * It also protects all of the fields within a domain binding except
105 * A better implementation might try to serialize each domain separately,
106 * but normally we're only dealing with one domain (the default) anyway.
107 * To avoid one thread freeing a domain binding while another is using
140 * domain name field equal to the passed domain name, and removes it if found.
141 * The domain-server binding will not exist after the call to this function.
148 __yp_unbind_nolock(char *domain)
153 if ((domain == NULL) || (strlen(domain) == 0)) {
171 if (strcmp(domain, p->dom_domain) == 0) {
186 yp_unbind(char *domain)
189 __yp_unbind_nolock(domain);
221 * This checks that the socket for a domain which has already been bound
222 * hasn't been closed or changed under us. If it has, unbind the domain
232 check_binding(char *domain, struct dom_binding **binding)
240 if (strcmp(domain, pdomb->dom_domain) == 0) {
260 if ((ypbind_resp = get_cached_domain(domain)) != 0) {
261 pdomb = load_dom_binding(ypbind_resp, domain, &status);
281 __yp_add_binding_netid(char *domain, char *addr, char *netid)
323 pdomb = load_dom_binding(&resp, domain, &status);
346 __yp_add_binding(char *domain, char *addr) {
348 int ret = __yp_add_binding_netid(domain, addr, "udp6");
351 ret = __yp_add_binding_netid(domain, addr, "udp");
358 * This allocates some memory for a domain binding, initialize it, and
367 load_dom_binding(struct ypbind_resp *ypbind_res, char *domain, int *err)
400 pdomb->dom_domain = malloc(strlen(domain) + (unsigned)1);
416 (void) strcpy(pdomb->dom_domain, domain); /* Remember the domain name */
450 * This allocates some memory for a domain binding, initialize it, and
465 load_dom_binding_rsvdport(struct ypbind_binding *dom_binding, char *domain,
506 pdomb->dom_domain = malloc(strlen(domain) + (unsigned)1);
514 (void) strcpy(pdomb->dom_domain, domain); /* Remember the domain name */
523 * Attempts to locate a yellow pages server that serves a passed domain. If
524 * one is found, an entry is created on the static list of domain-server pairs
536 char *domain,
541 struct dom_binding *pdomb; /* Ptr to new domain binding */
548 if ((domain == NULL) ||(strlen(domain) == 0))
559 if (check_binding(domain, binding)) {
586 __yp_unbind_nolock(domain);
590 yp_unbind(domain);
592 if (check_binding(domain, binding)) {
615 ypbd.ypbind_domainname = domain;
641 pdomb = load_dom_binding(ypbind_resp, domain, &status);
673 char *domain,
677 return (__yp_dobind_cflookup(domain, binding, 1));
691 * Attempts to locate a yellow pages server that serves a passed domain. If
692 * one is found, an entry is created on the static list of domain-server pairs
706 char *domain,
710 struct dom_binding *pdomb; /* Ptr to new domain binding */
717 if ((domain == NULL) ||(strlen(domain) == 0))
732 if (check_binding(domain, binding)) {
738 __yp_unbind_nolock(domain);
742 domain, &status);
769 ypbd.ypbind_domainname = domain;
797 domain, &status);
829 char *domain,
833 return (__yp_dobind_rsvdport_cflookup(domain, binding, 1));
841 yp_bind(char *domain)
847 res = __yp_dobind(domain, &binding);
885 * the domain name is non-null, knowing that the null string is going to
889 yp_get_default_domain(char **domain)
891 if ((*domain = __default_domain()) != 0)
904 char *domain;
906 if ((domain = __default_domain()) == 0)
908 *ddn = domain;
911 stat = yp_match(domain, map, &in, 1, &outval, &outvallen);
1108 get_cached_domain(char *domain)
1117 "%s/%s/cache_binding", BINDING, domain);