Lines Matching refs:hp

69 	mhd_handle_t	*hp
72 assert(hp != NULL);
73 if (hp->hostname != NULL) {
74 Free(hp->hostname);
76 if (hp->clientp != NULL) {
77 auth_destroy(hp->clientp->cl_auth);
78 clnt_destroy(hp->clientp);
80 Free(hp);
93 mhd_handle_t *hp;
113 hp = Zalloc(sizeof (*hp));
114 hp->hostname = Strdup(hostname);
115 hp->clientp = clientp;
116 return (hp);
192 mhd_handle_t *hp = NULL;
249 if ((hp = open_metamhd(NULL, ep)) == NULL)
251 clnt_control(hp->clientp, CLSET_TIMEOUT, (char *)&tk_own_timeout);
254 if (mhd_tkown_1(&args, &mherror, hp->clientp) != RPC_SUCCESS) {
255 (void) mdrpcerror(ep, hp->clientp, hp->hostname,
265 if (hp != NULL)
266 close_metamhd(hp);
322 mhd_handle_t *hp = NULL;
371 if ((hp = open_metamhd(NULL, ep)) == NULL)
373 clnt_control(hp->clientp, CLSET_TIMEOUT, (char *)&rel_own_timeout);
376 if (mhd_relown_1(&args, &mherror, hp->clientp) != RPC_SUCCESS) {
377 (void) mdrpcerror(ep, hp->clientp, hp->hostname,
387 if (hp != NULL)
388 close_metamhd(hp);
444 mhd_handle_t *hp = NULL;
477 if ((hp = open_metamhd(NULL, ep)) == NULL)
479 clnt_control(hp->clientp, CLSET_TIMEOUT, (char *)&tk_own_timeout);
482 if (mhd_status_1(&args, &results, hp->clientp) != RPC_SUCCESS) {
483 (void) mdrpcerror(ep, hp->clientp, hp->hostname,
514 if (hp != NULL)
515 close_metamhd(hp);
654 mhd_handle_t *hp = NULL;
673 if ((hp = open_metamhd(hostname, ep)) == NULL)
675 clnt_control(hp->clientp, CLSET_TIMEOUT, (char *)&tk_own_timeout);
678 if (mhd_list_1(&args, &results, hp->clientp) != RPC_SUCCESS) {
679 (void) mdrpcerror(ep, hp->clientp, hp->hostname,
699 if (hp != NULL)
700 close_metamhd(hp);