Lines Matching refs:file
137 fp_resstat(const res_state statp, FILE *file) { in fp_resstat() argument
140 fprintf(file, ";; res options:"); in fp_resstat()
143 fprintf(file, " %s", p_option(mask)); in fp_resstat()
144 putc('\n', file); in fp_resstat()
151 int pflag, FILE *file) in do_section() argument
168 fprintf(file, ";; memory allocation failure\n"); in do_section()
177 fprintf(file, ";; ns_parserr: %s\n", in do_section()
181 putc('\n', file); in do_section()
185 fprintf(file, ";; %s SECTION:\n", in do_section()
188 fprintf(file, ";;\t%s, type = %s, class = %s\n", in do_section()
198 fprintf(file, in do_section()
209 fputs("; NSID: ", file); in do_section()
211 fputs("; NSID\n", file); in do_section()
213 fputs("; NSID: ", file); in do_section()
215 fprintf(file, "%02x ", in do_section()
217 fputs(" (",file); in do_section()
219 fprintf(file, "%c", in do_section()
222 fputs(")\n", file); in do_section()
226 fprintf(file, "; OPT=%u\n", in do_section()
229 fprintf(file, "; OPT=%u: ", in do_section()
232 fprintf(file, "%02x ", in do_section()
234 fputs(" (",file); in do_section()
236 fprintf(file, "%c", in do_section()
239 fputs(")\n", file); in do_section()
254 fprintf(file, in do_section()
260 fprintf(file, ";; ns_sprintrr: %s\n", in do_section()
264 fputs(buf, file); in do_section()
265 fputc('\n', file); in do_section()
279 res_pquery(const res_state statp, const u_char *msg, int len, FILE *file) { in res_pquery() argument
285 fprintf(file, ";; ns_initparse: %s\n", strerror(errno)); in res_pquery()
300 fprintf(file, in res_pquery()
304 putc(';', file); in res_pquery()
306 fprintf(file, "; flags:"); in res_pquery()
308 fprintf(file, " qr"); in res_pquery()
310 fprintf(file, " aa"); in res_pquery()
312 fprintf(file, " tc"); in res_pquery()
314 fprintf(file, " rd"); in res_pquery()
316 fprintf(file, " ra"); in res_pquery()
318 fprintf(file, " ??"); in res_pquery()
320 fprintf(file, " ad"); in res_pquery()
322 fprintf(file, " cd"); in res_pquery()
325 fprintf(file, "; %s: %d", in res_pquery()
327 fprintf(file, ", %s: %d", in res_pquery()
329 fprintf(file, ", %s: %d", in res_pquery()
331 fprintf(file, ", %s: %d", in res_pquery()
336 putc('\n',file); in res_pquery()
341 do_section(statp, &handle, ns_s_qd, RES_PRF_QUES, file); in res_pquery()
342 do_section(statp, &handle, ns_s_an, RES_PRF_ANS, file); in res_pquery()
343 do_section(statp, &handle, ns_s_ns, RES_PRF_AUTH, file); in res_pquery()
344 do_section(statp, &handle, ns_s_ar, RES_PRF_ADD, file); in res_pquery()
347 putc('\n', file); in res_pquery()
351 p_cdnname(const u_char *cp, const u_char *msg, int len, FILE *file) { in p_cdnname() argument
358 putc('.', file); in p_cdnname()
360 fputs(name, file); in p_cdnname()
365 p_cdname(const u_char *cp, const u_char *msg, FILE *file) { in p_cdname() argument
366 return (p_cdnname(cp, msg, PACKETSZ, file)); in p_cdname()
394 p_fqname(const u_char *cp, const u_char *msg, FILE *file) { in p_fqname() argument
401 fputs(name, file); in p_fqname()