Lines Matching refs:fprintf
103 fprintf(fp, "\n# %s %s.%d\n", progname, VERSION, PATCHLEVEL); in dumptab()
104 fprintf(fp, "# %s: dump of bootp server database.\n", filename); in dumptab()
105 fprintf(fp, "# Dump taken %s", ctime(&t)); in dumptab()
112 fprintf(fp, "\n"); in dumptab()
132 fprintf(fp, "%s:", (hp->hostname ? in dump_host()
135 fprintf(fp, "\\\n\t:bf=%s:", hp->bootfile->string); in dump_host()
138 fprintf(fp, "\\\n\t:bs="); in dump_host()
140 fprintf(fp, "auto:"); in dump_host()
142 fprintf(fp, "%d:", hp->bootsize); in dump_host()
146 fprintf(fp, "\\\n\t:cs="); in dump_host()
148 fprintf(fp, ":"); in dump_host()
151 fprintf(fp, "\\\n\t:df=%s:", hp->dump_file->string); in dump_host()
154 fprintf(fp, "\\\n\t:dn=%s:", hp->domain_name->string); in dump_host()
157 fprintf(fp, "\\\n\t:ds="); in dump_host()
159 fprintf(fp, ":"); in dump_host()
162 fprintf(fp, "\\\n\t:ef=%s:", hp->exten_file->string); in dump_host()
165 fprintf(fp, "\\\n\t:ex=%s:", hp->exec_file->string); in dump_host()
168 fprintf(fp, "\\\n\t:gw="); in dump_host()
170 fprintf(fp, ":"); in dump_host()
174 fprintf(fp, "\\\n\t:hd=%s:", hp->homedir->string); in dump_host()
180 fprintf(fp, "\\\n\t:hn:"); in dump_host()
184 fprintf(fp, "\\\n\t:ht=%u:", (unsigned) hp->htype); in dump_host()
186 fprintf(fp, "ha=\"%s\":", in dump_host()
191 fprintf(fp, "\\\n\t:im="); in dump_host()
193 fprintf(fp, ":"); in dump_host()
197 fprintf(fp, "\\\n\t:ip=%s:", inet_ntoa(hp->iaddr)); in dump_host()
200 fprintf(fp, "\\\n\t:lg="); in dump_host()
202 fprintf(fp, ":"); in dump_host()
205 fprintf(fp, "\\\n\t:lp="); in dump_host()
207 fprintf(fp, ":"); in dump_host()
210 fprintf(fp, "\\\n\t:ms=%d:", hp->msg_size); in dump_host()
213 fprintf(fp, "\\\n\t:mw=%d:", hp->min_wait); in dump_host()
216 fprintf(fp, "\\\n\t:ns="); in dump_host()
218 fprintf(fp, ":"); in dump_host()
221 fprintf(fp, "\\\n\t:nt="); in dump_host()
223 fprintf(fp, ":"); in dump_host()
226 fprintf(fp, "\\\n\t:ra=%s:", inet_ntoa(hp->reply_addr)); in dump_host()
229 fprintf(fp, "\\\n\t:rl="); in dump_host()
231 fprintf(fp, ":"); in dump_host()
234 fprintf(fp, "\\\n\t:rp=%s:", hp->root_path->string); in dump_host()
237 fprintf(fp, "\\\n\t:sa=%s:", inet_ntoa(hp->bootserver)); in dump_host()
240 fprintf(fp, "\\\n\t:sm=%s:", inet_ntoa(hp->subnet_mask)); in dump_host()
243 fprintf(fp, "\\\n\t:sw=%s:", inet_ntoa(hp->subnet_mask)); in dump_host()
246 fprintf(fp, "\\\n\t:td=%s:", hp->tftpdir->string); in dump_host()
252 fprintf(fp, "\\\n\t:to=%ld:", (long)hp->time_offset); in dump_host()
255 fprintf(fp, "\\\n\t:ts="); in dump_host()
257 fprintf(fp, ":"); in dump_host()
260 fprintf(fp, "\\\n\t:vm="); in dump_host()
262 fprintf(fp, "rfc1048:"); in dump_host()
264 fprintf(fp, "cmu:"); in dump_host()
266 fprintf(fp, "%d.%d.%d.%d:", in dump_host()
274 fprintf(fp, "\\\n\t:yd=%s:", in dump_host()
278 fprintf(fp, "\\\n\t:ys="); in dump_host()
280 fprintf(fp, ":"); in dump_host()
310 fprintf(fp, " #junk in generic! :"); in dump_generic()
313 fprintf(fp, "\\\n\t:T%d=", tag); in dump_generic()
315 fprintf(fp, "%02X", *bp); in dump_generic()
319 fprintf(fp, "."); in dump_generic()
321 fprintf(fp, ":"); in dump_generic()
347 fprintf(fp, "%s", inet_ntoa(*addrptr++)); in list_ipaddresses()
350 fprintf(fp, ", "); in list_ipaddresses()