Lines Matching refs:fp

46 	FILE *fp;  in dumptab()  local
91 if ((fp = fopen(filename, "w")) == NULL) { in dumptab()
97 fprintf(fp, "\n# %s %s.%d\n", progname, VERSION, PATCHLEVEL); in dumptab()
98 fprintf(fp, "# %s: dump of bootp server database.\n", filename); in dumptab()
99 fprintf(fp, "# Dump taken %s", ctime(&t)); in dumptab()
100 fwrite(legend, 1, sizeof(legend) - 1, fp); in dumptab()
105 dump_host(fp, hp); in dumptab()
106 fprintf(fp, "\n"); in dumptab()
109 fclose(fp); in dumptab()
122 dump_host(FILE *fp, struct host *hp) in dump_host() argument
126 fprintf(fp, "%s:", (hp->hostname ? in dump_host()
129 fprintf(fp, "\\\n\t:bf=%s:", hp->bootfile->string); in dump_host()
132 fprintf(fp, "\\\n\t:bs="); in dump_host()
134 fprintf(fp, "auto:"); in dump_host()
136 fprintf(fp, "%lu:", (u_long)hp->bootsize); in dump_host()
140 fprintf(fp, "\\\n\t:cs="); in dump_host()
141 list_ipaddresses(fp, hp->cookie_server); in dump_host()
142 fprintf(fp, ":"); in dump_host()
145 fprintf(fp, "\\\n\t:df=%s:", hp->dump_file->string); in dump_host()
148 fprintf(fp, "\\\n\t:dn=%s:", hp->domain_name->string); in dump_host()
151 fprintf(fp, "\\\n\t:ds="); in dump_host()
152 list_ipaddresses(fp, hp->domain_server); in dump_host()
153 fprintf(fp, ":"); in dump_host()
156 fprintf(fp, "\\\n\t:ef=%s:", hp->exten_file->string); in dump_host()
159 fprintf(fp, "\\\n\t:ex=%s:", hp->exec_file->string); in dump_host()
162 fprintf(fp, "\\\n\t:gw="); in dump_host()
163 list_ipaddresses(fp, hp->gateway); in dump_host()
164 fprintf(fp, ":"); in dump_host()
168 fprintf(fp, "\\\n\t:hd=%s:", hp->homedir->string); in dump_host()
174 fprintf(fp, "\\\n\t:hn:"); in dump_host()
178 fprintf(fp, "\\\n\t:ht=%u:", (unsigned) hp->htype); in dump_host()
180 fprintf(fp, "ha=\"%s\":", in dump_host()
185 fprintf(fp, "\\\n\t:im="); in dump_host()
186 list_ipaddresses(fp, hp->impress_server); in dump_host()
187 fprintf(fp, ":"); in dump_host()
191 fprintf(fp, "\\\n\t:ip=%s:", inet_ntoa(hp->iaddr)); in dump_host()
194 fprintf(fp, "\\\n\t:lg="); in dump_host()
195 list_ipaddresses(fp, hp->log_server); in dump_host()
196 fprintf(fp, ":"); in dump_host()
199 fprintf(fp, "\\\n\t:lp="); in dump_host()
200 list_ipaddresses(fp, hp->lpr_server); in dump_host()
201 fprintf(fp, ":"); in dump_host()
204 fprintf(fp, "\\\n\t:ms=%lu:", (u_long)hp->msg_size); in dump_host()
207 fprintf(fp, "\\\n\t:mw=%lu:", (u_long)hp->min_wait); in dump_host()
210 fprintf(fp, "\\\n\t:ns="); in dump_host()
211 list_ipaddresses(fp, hp->name_server); in dump_host()
212 fprintf(fp, ":"); in dump_host()
215 fprintf(fp, "\\\n\t:nt="); in dump_host()
216 list_ipaddresses(fp, hp->ntp_server); in dump_host()
217 fprintf(fp, ":"); in dump_host()
220 fprintf(fp, "\\\n\t:ra=%s:", inet_ntoa(hp->reply_addr)); in dump_host()
223 fprintf(fp, "\\\n\t:rl="); in dump_host()
224 list_ipaddresses(fp, hp->rlp_server); in dump_host()
225 fprintf(fp, ":"); in dump_host()
228 fprintf(fp, "\\\n\t:rp=%s:", hp->root_path->string); in dump_host()
231 fprintf(fp, "\\\n\t:sa=%s:", inet_ntoa(hp->bootserver)); in dump_host()
234 fprintf(fp, "\\\n\t:sm=%s:", inet_ntoa(hp->subnet_mask)); in dump_host()
237 fprintf(fp, "\\\n\t:sw=%s:", inet_ntoa(hp->subnet_mask)); in dump_host()
240 fprintf(fp, "\\\n\t:td=%s:", hp->tftpdir->string); in dump_host()
246 fprintf(fp, "\\\n\t:to=%ld:", (long)hp->time_offset); in dump_host()
249 fprintf(fp, "\\\n\t:ts="); in dump_host()
250 list_ipaddresses(fp, hp->time_server); in dump_host()
251 fprintf(fp, ":"); in dump_host()
254 fprintf(fp, "\\\n\t:vm="); in dump_host()
256 fprintf(fp, "rfc1048:"); in dump_host()
258 fprintf(fp, "cmu:"); in dump_host()
260 fprintf(fp, "%d.%d.%d.%d:", in dump_host()
268 fprintf(fp, "\\\n\t:yd=%s:", in dump_host()
272 fprintf(fp, "\\\n\t:ys="); in dump_host()
273 list_ipaddresses(fp, hp->nis_server); in dump_host()
274 fprintf(fp, ":"); in dump_host()
282 dump_generic(fp, hp->generic); in dump_host()
289 dump_generic(FILE *fp, struct shared_bindata *generic) in dump_generic() argument
304 fprintf(fp, " #junk in generic! :"); in dump_generic()
307 fprintf(fp, "\\\n\t:T%d=", tag); in dump_generic()
309 fprintf(fp, "%02X", *bp); in dump_generic()
313 fprintf(fp, "."); in dump_generic()
315 fprintf(fp, ":"); in dump_generic()
332 list_ipaddresses(FILE *fp, struct in_addr_list *ipptr) in list_ipaddresses() argument
341 fprintf(fp, "%s", inet_ntoa(*addrptr++)); in list_ipaddresses()
344 fprintf(fp, ", "); in list_ipaddresses()