/titanic_50/usr/src/lib/libnsl/yp/ |
H A D | yp_all.c | 70 struct dom_binding *pdomb; in __yp_all_cflookup() local 87 if (reason = __yp_dobind_cflookup(domain, &pdomb, hardlookup)) in __yp_all_cflookup() 90 if (pdomb->dom_binding->ypbind_hi_vers < YPVERS) { in __yp_all_cflookup() 91 __yp_rel_binding(pdomb); in __yp_all_cflookup() 94 (void) mutex_lock(&pdomb->server_name_lock); in __yp_all_cflookup() 95 if (!pdomb->dom_binding->ypbind_servername) { in __yp_all_cflookup() 96 (void) mutex_unlock(&pdomb->server_name_lock); in __yp_all_cflookup() 97 __yp_rel_binding(pdomb); in __yp_all_cflookup() 101 (void) strcpy(server_name, pdomb->dom_binding->ypbind_servername); in __yp_all_cflookup() 102 (void) mutex_unlock(&pdomb->server_name_lock); in __yp_all_cflookup() [all …]
|
H A D | yp_bind.c | 234 struct dom_binding *pdomb; in check_binding() local 238 for (pdomb = bound_domains; pdomb != NULL; pdomb = pdomb->dom_pnext) { in check_binding() 240 if (strcmp(domain, pdomb->dom_domain) == 0) { in check_binding() 250 *binding = pdomb; in check_binding() 261 pdomb = load_dom_binding(ypbind_resp, domain, &status); in check_binding() 262 if (pdomb == 0) in check_binding() 264 *binding = pdomb; in check_binding() 288 struct dom_binding *pdomb; in __yp_add_binding_netid() local 323 pdomb = load_dom_binding(&resp, domain, &status); in __yp_add_binding_netid() 326 return (pdomb != 0); in __yp_add_binding_netid() [all …]
|
H A D | yp_master.c | 63 struct dom_binding *pdomb; in yp_master() local 78 if (reason = __yp_dobind(domain, &pdomb)) in yp_master() 81 if (pdomb->dom_binding->ypbind_hi_vers >= YPVERS) { in yp_master() 83 reason = domaster(domain, map, pdomb, _ypserv_timeout, in yp_master() 86 __yp_rel_binding(pdomb); in yp_master() 94 __yp_rel_binding(pdomb); in yp_master() 125 struct dom_binding *pdomb; in __yp_master_rsvdport() local 140 if (reason = __yp_dobind_rsvdport(domain, &pdomb)) in __yp_master_rsvdport() 143 if (pdomb->dom_binding->ypbind_hi_vers >= YPVERS) { in __yp_master_rsvdport() 145 reason = domaster(domain, map, pdomb, _ypserv_timeout, in __yp_master_rsvdport() [all …]
|
H A D | yp_enum.c | 75 struct dom_binding *pdomb; in __yp_first_cflookup() local 90 if (reason = __yp_dobind_cflookup(domain, &pdomb, hardlookup)) in __yp_first_cflookup() 93 if (pdomb->dom_binding->ypbind_hi_vers == YPVERS) { in __yp_first_cflookup() 95 reason = dofirst(domain, map, pdomb, _ypserv_timeout, in __yp_first_cflookup() 98 __yp_rel_binding(pdomb); in __yp_first_cflookup() 109 __yp_rel_binding(pdomb); in __yp_first_cflookup() 134 dofirst(domain, map, pdomb, timeout, key, keylen, val, vallen) in dofirst() argument 137 struct dom_binding *pdomb; 161 switch (clnt_call(pdomb->dom_client, YPPROC_FIRST, 212 CLNT_FREERES(pdomb->dom_client, [all …]
|
H A D | yp_order.c | 63 struct dom_binding *pdomb; in yp_order() local 78 if (reason = __yp_dobind(domain, &pdomb)) in yp_order() 81 if (pdomb->dom_binding->ypbind_hi_vers >= YPVERS) { in yp_order() 83 reason = doorder(domain, map, pdomb, _ypserv_timeout, in yp_order() 86 __yp_rel_binding(pdomb); in yp_order() 94 __yp_rel_binding(pdomb); in yp_order() 106 doorder(char *domain, char *map, struct dom_binding *pdomb, in doorder() argument 122 if (clnt_call(pdomb->dom_client, YPPROC_ORDER, in doorder() 135 CLNT_FREERES(pdomb->dom_client, in doorder()
|
H A D | yp_match.c | 182 struct dom_binding *pdomb; in __yp_match_cflookup() local 222 if (reason = __yp_dobind_cflookup(domain, &pdomb, hardlookup)) in __yp_match_cflookup() 225 if (pdomb->dom_binding->ypbind_hi_vers >= YPVERS) { in __yp_match_cflookup() 227 reason = domatch(domain, map, key, keylen, pdomb, in __yp_match_cflookup() 230 __yp_rel_binding(pdomb); in __yp_match_cflookup() 241 __yp_rel_binding(pdomb); in __yp_match_cflookup() 366 struct dom_binding *pdomb; in __yp_match_rsvdport_cflookup() local 405 if (reason = __yp_dobind_rsvdport_cflookup(domain, &pdomb, in __yp_match_rsvdport_cflookup() 409 if (pdomb->dom_binding->ypbind_hi_vers >= YPVERS) { in __yp_match_rsvdport_cflookup() 412 pdomb, &_ypserv_timeout, val, vallen); in __yp_match_rsvdport_cflookup() [all …]
|
/titanic_50/usr/src/lib/libbc/libc/yp/ |
H A D | yp_bind.c | 174 struct dom_binding *pdomb = NULL; local 180 for (pdomb = bound_domains; pdomb != NULL; pdomb = pdomb->dom_pnext) { 181 if (strcmp(domain, pdomb->dom_domain) == 0) 182 return (pdomb); 185 if ((pdomb = (struct dom_binding *) malloc(sizeof(struct dom_binding))) 192 pdomb->dom_server_addr.sin_family = sa->sin_family; 193 pdomb->dom_server_addr.sin_port = sa->sin_port; 194 pdomb->dom_server_addr.sin_addr.s_addr = sa->sin_addr.s_addr; 195 bzero(pdomb->dom_server_addr.sin_zero, 8); 196 pdomb->dom_server_port = sa->sin_port; [all …]
|
/titanic_50/usr/src/cmd/ypcmd/ |
H A D | ypxfr.c | 590 bind_to_server(host, pdomb, vers, status) in bind_to_server() argument 592 struct dom_binding *pdomb; 596 if (ping_server(host, pdomb, YPVERS, status)) { 611 ping_server(host, pdomb, vers, status) in ping_server() argument 613 struct dom_binding *pdomb; 619 if ((pdomb->dom_client = __yp_clnt_create_rsvdport(host, YPPROG, vers, 641 rpc_stat = clnt_call(pdomb->dom_client, YPBINDPROC_NULL, 647 clnt_destroy(pdomb->dom_client); 649 (void) clnt_perror(pdomb->dom_client,
|