Lines Matching refs:pvt

48 struct pvt {
82 struct pvt *pvt;
84 if (!(pvt = memget(sizeof *pvt))) {
88 memset(pvt, 0, sizeof *pvt);
90 memput(pvt, sizeof *pvt);
95 pvt->rules = accpvt->map_rules[irs_ho];
96 pvt->rule = pvt->rules;
97 ho->private = pvt;
115 struct pvt *pvt = (struct pvt *)this->private;
118 if (pvt->res && pvt->free_res)
119 (*pvt->free_res)(pvt->res);
120 memput(pvt, sizeof *pvt);
126 struct pvt *pvt = (struct pvt *)this->private;
136 for (rule = pvt->rules; rule; rule = rule->next) {
138 RES_SET_H_ERRNO(pvt->res, NETDB_INTERNAL);
144 pvt->res->res_h_errno != HOST_NOT_FOUND &&
145 pvt->res->res_h_errno != NETDB_INTERNAL) {
147 therrno = pvt->res->res_h_errno;
159 if (pvt->res->res_h_errno != TRY_AGAIN || errno != ECONNREFUSED)
162 if (softerror != 0 && pvt->res->res_h_errno == HOST_NOT_FOUND)
163 RES_SET_H_ERRNO(pvt->res, therrno);
169 struct pvt *pvt = (struct pvt *)this->private;
179 for (rule = pvt->rules; rule; rule = rule->next) {
181 RES_SET_H_ERRNO(pvt->res, NETDB_INTERNAL);
187 pvt->res->res_h_errno != HOST_NOT_FOUND &&
188 pvt->res->res_h_errno != NETDB_INTERNAL) {
190 therrno = pvt->res->res_h_errno;
198 if (pvt->res->res_h_errno != TRY_AGAIN || errno != ECONNREFUSED)
201 if (softerror != 0 && pvt->res->res_h_errno == HOST_NOT_FOUND)
202 RES_SET_H_ERRNO(pvt->res, therrno);
208 struct pvt *pvt = (struct pvt *)this->private;
219 for (rule = pvt->rules; rule; rule = rule->next) {
221 RES_SET_H_ERRNO(pvt->res, NETDB_INTERNAL);
227 pvt->res->res_h_errno != HOST_NOT_FOUND &&
228 pvt->res->res_h_errno != NETDB_INTERNAL) {
230 therrno = pvt->res->res_h_errno;
239 if (pvt->res->res_h_errno != TRY_AGAIN || errno != ECONNREFUSED)
242 if (softerror != 0 && pvt->res->res_h_errno == HOST_NOT_FOUND)
243 RES_SET_H_ERRNO(pvt->res, therrno);
249 struct pvt *pvt = (struct pvt *)this->private;
253 while (pvt->rule) {
254 ho = pvt->rule->inst->ho;
258 if (!(pvt->rule->flags & IRS_CONTINUE))
260 pvt->rule = pvt->rule->next;
261 if (pvt->rule) {
262 ho = pvt->rule->inst->ho;
271 struct pvt *pvt = (struct pvt *)this->private;
274 pvt->rule = pvt->rules;
275 if (pvt->rule) {
276 ho = pvt->rule->inst->ho;
283 struct pvt *pvt = (struct pvt *)this->private;
286 if (pvt->res)
287 res_nclose(pvt->res);
288 for (rule = pvt->rules; rule != NULL; rule = rule->next) {
297 struct pvt *pvt = (struct pvt *)this->private;
299 if (!pvt->res) {
310 return (pvt->res);
316 struct pvt *pvt = (struct pvt *)this->private;
319 if (pvt->res && pvt->free_res) {
320 res_nclose(pvt->res);
321 (*pvt->free_res)(pvt->res);
324 pvt->res = res;
325 pvt->free_res = free_res;
327 for (rule = pvt->rules; rule != NULL; rule = rule->next) {
330 (*ho->res_set)(ho, pvt->res, NULL);
337 struct pvt *pvt = (struct pvt *)this->private;
347 for (rule = pvt->rules; rule; rule = rule->next) {
349 RES_SET_H_ERRNO(pvt->res, NETDB_INTERNAL);
357 pvt->res->res_h_errno != HOST_NOT_FOUND &&
358 pvt->res->res_h_errno != NETDB_INTERNAL) {
360 therrno = pvt->res->res_h_errno;
368 if (pvt->res->res_h_errno != TRY_AGAIN ||
372 if (softerror != 0 && pvt->res->res_h_errno == HOST_NOT_FOUND)
373 RES_SET_H_ERRNO(pvt->res, therrno);
379 struct pvt *pvt = (struct pvt *)this->private;
381 if (!pvt->res && !ho_res_get(this))
384 if (((pvt->res->options & RES_INIT) == 0U) &&
385 (res_ninit(pvt->res) == -1))