Lines Matching refs:file

155 fp_resstat(const res_state statp, FILE *file) {  in fp_resstat()  argument
158 fprintf(file, ";; res options:"); in fp_resstat()
161 fprintf(file, " %s", p_option(mask)); in fp_resstat()
162 putc('\n', file); in fp_resstat()
169 int pflag, FILE *file) in do_section() argument
186 fprintf(file, ";; memory allocation failure\n"); in do_section()
195 fprintf(file, ";; ns_parserr: %s\n", in do_section()
199 putc('\n', file); in do_section()
203 fprintf(file, ";; %s SECTION:\n", in do_section()
206 fprintf(file, ";;\t%s, type = %s, class = %s\n", in do_section()
216 fprintf(file, in do_section()
227 fputs("; NSID: ", file); in do_section()
229 fputs("; NSID\n", file); in do_section()
231 fputs("; NSID: ", file); in do_section()
233 fprintf(file, "%02x ", in do_section()
235 fputs(" (",file); in do_section()
237 fprintf(file, "%c", in do_section()
240 fputs(")\n", file); in do_section()
244 fprintf(file, "; OPT=%u\n", in do_section()
247 fprintf(file, "; OPT=%u: ", in do_section()
250 fprintf(file, "%02x ", in do_section()
252 fputs(" (",file); in do_section()
254 fprintf(file, "%c", in do_section()
257 fputs(")\n", file); in do_section()
272 fprintf(file, in do_section()
278 fprintf(file, ";; ns_sprintrr: %s\n", in do_section()
282 fputs(buf, file); in do_section()
283 fputc('\n', file); in do_section()
297 res_pquery(const res_state statp, const u_char *msg, int len, FILE *file) { in res_pquery() argument
303 fprintf(file, ";; ns_initparse: %s\n", strerror(errno)); in res_pquery()
318 fprintf(file, in res_pquery()
322 putc(';', file); in res_pquery()
324 fprintf(file, "; flags:"); in res_pquery()
326 fprintf(file, " qr"); in res_pquery()
328 fprintf(file, " aa"); in res_pquery()
330 fprintf(file, " tc"); in res_pquery()
332 fprintf(file, " rd"); in res_pquery()
334 fprintf(file, " ra"); in res_pquery()
336 fprintf(file, " ??"); in res_pquery()
338 fprintf(file, " ad"); in res_pquery()
340 fprintf(file, " cd"); in res_pquery()
343 fprintf(file, "; %s: %d", in res_pquery()
345 fprintf(file, ", %s: %d", in res_pquery()
347 fprintf(file, ", %s: %d", in res_pquery()
349 fprintf(file, ", %s: %d", in res_pquery()
354 putc('\n',file); 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()
365 putc('\n', file); in res_pquery()
369 p_cdnname(const u_char *cp, const u_char *msg, int len, FILE *file) { in p_cdnname() argument
376 putc('.', file); in p_cdnname()
378 fputs(name, file); in p_cdnname()
383 p_cdname(const u_char *cp, const u_char *msg, FILE *file) { in p_cdname() argument
384 return (p_cdnname(cp, msg, PACKETSZ, file)); in p_cdname()
412 p_fqname(const u_char *cp, const u_char *msg, FILE *file) { in p_fqname() argument
419 fputs(name, file); in p_fqname()