Lines Matching defs:pdomb
66 struct dom_binding *pdomb;
83 if (reason = __yp_dobind_cflookup(domain, &pdomb, hardlookup))
86 if (pdomb->dom_binding->ypbind_hi_vers < YPVERS) {
87 __yp_rel_binding(pdomb);
90 (void) mutex_lock(&pdomb->server_name_lock);
91 if (!pdomb->dom_binding->ypbind_servername) {
92 (void) mutex_unlock(&pdomb->server_name_lock);
93 __yp_rel_binding(pdomb);
97 (void) strlcpy(server_name, pdomb->dom_binding->ypbind_servername,
99 (void) mutex_unlock(&pdomb->server_name_lock);
110 if (netdir_getbyaddr(pdomb->dom_binding->ypbind_nconf,
111 &nhs, pdomb->dom_binding->ypbind_svcaddr) != ND_OK) {
114 __yp_rel_binding(pdomb);
118 (void) mutex_lock(&pdomb->server_name_lock);
119 if (strcmp(pdomb->dom_binding->ypbind_servername,
121 pdomb->dom_binding->ypbind_servername =
125 pdomb->dom_binding->ypbind_servername, MAXHOSTNAMELEN);
126 (void) mutex_unlock(&pdomb->server_name_lock);
129 __yp_rel_binding(pdomb);
191 struct dom_binding *pdomb;
208 if (reason = __yp_dobind_rsvdport(domain, &pdomb))
211 if (pdomb->dom_binding->ypbind_hi_vers < YPVERS) {
216 __yp_rel_binding(pdomb);
217 free_dom_binding(pdomb);
220 (void) mutex_lock(&pdomb->server_name_lock);
221 if (!pdomb->dom_binding->ypbind_servername) {
222 (void) mutex_unlock(&pdomb->server_name_lock);
224 __yp_rel_binding(pdomb);
225 free_dom_binding(pdomb);
229 pdomb->dom_binding->ypbind_servername, MAXHOSTNAMELEN);
230 (void) mutex_unlock(&pdomb->server_name_lock);
241 if (netdir_getbyaddr(pdomb->dom_binding->ypbind_nconf,
242 &nhs, pdomb->dom_binding->ypbind_svcaddr) != ND_OK) {
245 __yp_rel_binding(pdomb);
246 free_dom_binding(pdomb);
250 (void) mutex_lock(&pdomb->server_name_lock);
251 if (strcmp(pdomb->dom_binding->ypbind_servername,
253 pdomb->dom_binding->ypbind_servername =
257 pdomb->dom_binding->ypbind_servername, MAXHOSTNAMELEN);
258 (void) mutex_unlock(&pdomb->server_name_lock);
262 __yp_rel_binding(pdomb);
270 free_dom_binding(pdomb);
287 free_dom_binding(pdomb);