Lines Matching defs:pvt
50 struct pvt {
84 struct pvt *pvt;
86 if (!(pvt = memget(sizeof *pvt))) {
90 memset(pvt, 0, sizeof *pvt);
92 memput(pvt, sizeof *pvt);
97 pvt->rules = accpvt->map_rules[irs_ho];
98 pvt->rule = pvt->rules;
99 ho->private = pvt;
117 struct pvt *pvt = (struct pvt *)this->private;
120 if (pvt->res && pvt->free_res)
121 (*pvt->free_res)(pvt->res);
122 memput(pvt, sizeof *pvt);
128 struct pvt *pvt = (struct pvt *)this->private;
138 for (rule = pvt->rules; rule; rule = rule->next) {
140 RES_SET_H_ERRNO(pvt->res, NETDB_INTERNAL);
146 pvt->res->res_h_errno != HOST_NOT_FOUND &&
147 pvt->res->res_h_errno != NETDB_INTERNAL) {
149 therrno = pvt->res->res_h_errno;
161 if (pvt->res->res_h_errno != TRY_AGAIN || errno != ECONNREFUSED)
164 if (softerror != 0 && pvt->res->res_h_errno == HOST_NOT_FOUND)
165 RES_SET_H_ERRNO(pvt->res, therrno);
171 struct pvt *pvt = (struct pvt *)this->private;
181 for (rule = pvt->rules; rule; rule = rule->next) {
183 RES_SET_H_ERRNO(pvt->res, NETDB_INTERNAL);
189 pvt->res->res_h_errno != HOST_NOT_FOUND &&
190 pvt->res->res_h_errno != NETDB_INTERNAL) {
192 therrno = pvt->res->res_h_errno;
200 if (pvt->res->res_h_errno != TRY_AGAIN || errno != ECONNREFUSED)
203 if (softerror != 0 && pvt->res->res_h_errno == HOST_NOT_FOUND)
204 RES_SET_H_ERRNO(pvt->res, therrno);
210 struct pvt *pvt = (struct pvt *)this->private;
221 for (rule = pvt->rules; rule; rule = rule->next) {
223 RES_SET_H_ERRNO(pvt->res, NETDB_INTERNAL);
229 pvt->res->res_h_errno != HOST_NOT_FOUND &&
230 pvt->res->res_h_errno != NETDB_INTERNAL) {
232 therrno = pvt->res->res_h_errno;
241 if (pvt->res->res_h_errno != TRY_AGAIN || errno != ECONNREFUSED)
244 if (softerror != 0 && pvt->res->res_h_errno == HOST_NOT_FOUND)
245 RES_SET_H_ERRNO(pvt->res, therrno);
251 struct pvt *pvt = (struct pvt *)this->private;
255 while (pvt->rule) {
256 ho = pvt->rule->inst->ho;
260 if (!(pvt->rule->flags & IRS_CONTINUE))
262 pvt->rule = pvt->rule->next;
263 if (pvt->rule) {
264 ho = pvt->rule->inst->ho;
273 struct pvt *pvt = (struct pvt *)this->private;
276 pvt->rule = pvt->rules;
277 if (pvt->rule) {
278 ho = pvt->rule->inst->ho;
285 struct pvt *pvt = (struct pvt *)this->private;
288 if (pvt->res)
289 res_nclose(pvt->res);
290 for (rule = pvt->rules; rule != NULL; rule = rule->next) {
299 struct pvt *pvt = (struct pvt *)this->private;
301 if (!pvt->res) {
312 return (pvt->res);
318 struct pvt *pvt = (struct pvt *)this->private;
321 if (pvt->res && pvt->free_res) {
322 res_nclose(pvt->res);
323 (*pvt->free_res)(pvt->res);
326 pvt->res = res;
327 pvt->free_res = free_res;
329 for (rule = pvt->rules; rule != NULL; rule = rule->next) {
332 (*ho->res_set)(ho, pvt->res, NULL);
339 struct pvt *pvt = (struct pvt *)this->private;
349 for (rule = pvt->rules; rule; rule = rule->next) {
351 RES_SET_H_ERRNO(pvt->res, NETDB_INTERNAL);
359 pvt->res->res_h_errno != HOST_NOT_FOUND &&
360 pvt->res->res_h_errno != NETDB_INTERNAL) {
362 therrno = pvt->res->res_h_errno;
370 if (pvt->res->res_h_errno != TRY_AGAIN ||
374 if (softerror != 0 && pvt->res->res_h_errno == HOST_NOT_FOUND)
375 RES_SET_H_ERRNO(pvt->res, therrno);
381 struct pvt *pvt = (struct pvt *)this->private;
383 if (!pvt->res && !ho_res_get(this))
386 if (((pvt->res->options & RES_INIT) == 0U) &&
387 (res_ninit(pvt->res) == -1))