Lines Matching refs:fprintf
103 fprintf(fp, "\n# %s %s.%d\n", progname, VERSION, PATCHLEVEL);
104 fprintf(fp, "# %s: dump of bootp server database.\n", filename);
105 fprintf(fp, "# Dump taken %s", ctime(&t));
112 fprintf(fp, "\n");
133 fprintf(fp, "%s:", (hp->hostname ?
136 fprintf(fp, "\\\n\t:bf=%s:", hp->bootfile->string);
139 fprintf(fp, "\\\n\t:bs=");
141 fprintf(fp, "auto:");
143 fprintf(fp, "%d:", hp->bootsize);
147 fprintf(fp, "\\\n\t:cs=");
149 fprintf(fp, ":");
152 fprintf(fp, "\\\n\t:df=%s:", hp->dump_file->string);
155 fprintf(fp, "\\\n\t:dn=%s:", hp->domain_name->string);
158 fprintf(fp, "\\\n\t:ds=");
160 fprintf(fp, ":");
163 fprintf(fp, "\\\n\t:ef=%s:", hp->exten_file->string);
166 fprintf(fp, "\\\n\t:ex=%s:", hp->exec_file->string);
169 fprintf(fp, "\\\n\t:gw=");
171 fprintf(fp, ":");
175 fprintf(fp, "\\\n\t:hd=%s:", hp->homedir->string);
181 fprintf(fp, "\\\n\t:hn:");
185 fprintf(fp, "\\\n\t:ht=%u:", (unsigned) hp->htype);
187 fprintf(fp, "ha=\"%s\":",
192 fprintf(fp, "\\\n\t:im=");
194 fprintf(fp, ":");
198 fprintf(fp, "\\\n\t:ip=%s:", inet_ntoa(hp->iaddr));
201 fprintf(fp, "\\\n\t:lg=");
203 fprintf(fp, ":");
206 fprintf(fp, "\\\n\t:lp=");
208 fprintf(fp, ":");
211 fprintf(fp, "\\\n\t:ms=%d:", hp->msg_size);
214 fprintf(fp, "\\\n\t:mw=%d:", hp->min_wait);
217 fprintf(fp, "\\\n\t:ns=");
219 fprintf(fp, ":");
222 fprintf(fp, "\\\n\t:nt=");
224 fprintf(fp, ":");
227 fprintf(fp, "\\\n\t:ra=%s:", inet_ntoa(hp->reply_addr));
230 fprintf(fp, "\\\n\t:rl=");
232 fprintf(fp, ":");
235 fprintf(fp, "\\\n\t:rp=%s:", hp->root_path->string);
238 fprintf(fp, "\\\n\t:sa=%s:", inet_ntoa(hp->bootserver));
241 fprintf(fp, "\\\n\t:sm=%s:", inet_ntoa(hp->subnet_mask));
244 fprintf(fp, "\\\n\t:sw=%s:", inet_ntoa(hp->subnet_mask));
247 fprintf(fp, "\\\n\t:td=%s:", hp->tftpdir->string);
253 fprintf(fp, "\\\n\t:to=%ld:", (long)hp->time_offset);
256 fprintf(fp, "\\\n\t:ts=");
258 fprintf(fp, ":");
261 fprintf(fp, "\\\n\t:vm=");
263 fprintf(fp, "rfc1048:");
265 fprintf(fp, "cmu:");
267 fprintf(fp, "%d.%d.%d.%d:",
275 fprintf(fp, "\\\n\t:yd=%s:",
279 fprintf(fp, "\\\n\t:ys=");
281 fprintf(fp, ":");
312 fprintf(fp, " #junk in generic! :");
315 fprintf(fp, "\\\n\t:T%d=", tag);
317 fprintf(fp, "%02X", *bp);
321 fprintf(fp, ".");
323 fprintf(fp, ":");
350 fprintf(fp, "%s", inet_ntoa(*addrptr++));
353 fprintf(fp, ", ");