Lines Matching refs:statp
155 fp_resstat(const res_state statp, FILE *file) { in fp_resstat() argument
160 if (statp->options & mask) in fp_resstat()
167 do_section(const res_state statp, in do_section() argument
180 sflag = (int)(statp->pfcode & pflag); in do_section()
181 if (statp->pfcode && !sflag) in do_section()
198 (statp->pfcode & RES_PRF_HEAD1)) in do_section()
202 if (rrnum == 0 && sflag != 0 && (statp->pfcode & RES_PRF_HEAD1)) in do_section()
297 res_pquery(const res_state statp, const u_char *msg, int len, FILE *file) { in res_pquery() argument
317 if ((!statp->pfcode) || (statp->pfcode & RES_PRF_HEADX) || rcode) in res_pquery()
321 if ((!statp->pfcode) || (statp->pfcode & RES_PRF_HEADX)) in res_pquery()
323 if ((!statp->pfcode) || (statp->pfcode & RES_PRF_HEAD2)) { in res_pquery()
342 if ((!statp->pfcode) || (statp->pfcode & RES_PRF_HEAD1)) { in res_pquery()
352 if ((!statp->pfcode) || (statp->pfcode & in res_pquery()
359 do_section(statp, &handle, ns_s_qd, RES_PRF_QUES, file); in res_pquery()
360 do_section(statp, &handle, ns_s_an, RES_PRF_ANS, file); in res_pquery()
361 do_section(statp, &handle, ns_s_ns, RES_PRF_AUTH, file); in res_pquery()
362 do_section(statp, &handle, ns_s_ar, RES_PRF_ADD, file); in res_pquery()