Lines Matching refs:fprintf

108 	fprintf(fp, "\n# %s %s.%d\n", progname, VERSION, PATCHLEVEL);
109 fprintf(fp, "# %s: dump of bootp server database.\n", filename);
110 fprintf(fp, "# Dump taken %s", ctime(&t));
117 fprintf(fp, "\n");
139 fprintf(fp, "%s:", (hp->hostname ?
142 fprintf(fp, "\\\n\t:bf=%s:", hp->bootfile->string);
145 fprintf(fp, "\\\n\t:bs=");
147 fprintf(fp, "auto:");
149 fprintf(fp, "%lu:", (u_long)hp->bootsize);
153 fprintf(fp, "\\\n\t:cs=");
155 fprintf(fp, ":");
158 fprintf(fp, "\\\n\t:df=%s:", hp->dump_file->string);
161 fprintf(fp, "\\\n\t:dn=%s:", hp->domain_name->string);
164 fprintf(fp, "\\\n\t:ds=");
166 fprintf(fp, ":");
169 fprintf(fp, "\\\n\t:ef=%s:", hp->exten_file->string);
172 fprintf(fp, "\\\n\t:ex=%s:", hp->exec_file->string);
175 fprintf(fp, "\\\n\t:gw=");
177 fprintf(fp, ":");
181 fprintf(fp, "\\\n\t:hd=%s:", hp->homedir->string);
187 fprintf(fp, "\\\n\t:hn:");
191 fprintf(fp, "\\\n\t:ht=%u:", (unsigned) hp->htype);
193 fprintf(fp, "ha=\"%s\":",
198 fprintf(fp, "\\\n\t:im=");
200 fprintf(fp, ":");
204 fprintf(fp, "\\\n\t:ip=%s:", inet_ntoa(hp->iaddr));
207 fprintf(fp, "\\\n\t:lg=");
209 fprintf(fp, ":");
212 fprintf(fp, "\\\n\t:lp=");
214 fprintf(fp, ":");
217 fprintf(fp, "\\\n\t:ms=%lu:", (u_long)hp->msg_size);
220 fprintf(fp, "\\\n\t:mw=%lu:", (u_long)hp->min_wait);
223 fprintf(fp, "\\\n\t:ns=");
225 fprintf(fp, ":");
228 fprintf(fp, "\\\n\t:nt=");
230 fprintf(fp, ":");
233 fprintf(fp, "\\\n\t:ra=%s:", inet_ntoa(hp->reply_addr));
236 fprintf(fp, "\\\n\t:rl=");
238 fprintf(fp, ":");
241 fprintf(fp, "\\\n\t:rp=%s:", hp->root_path->string);
244 fprintf(fp, "\\\n\t:sa=%s:", inet_ntoa(hp->bootserver));
247 fprintf(fp, "\\\n\t:sm=%s:", inet_ntoa(hp->subnet_mask));
250 fprintf(fp, "\\\n\t:sw=%s:", inet_ntoa(hp->subnet_mask));
253 fprintf(fp, "\\\n\t:td=%s:", hp->tftpdir->string);
259 fprintf(fp, "\\\n\t:to=%ld:", (long)hp->time_offset);
262 fprintf(fp, "\\\n\t:ts=");
264 fprintf(fp, ":");
267 fprintf(fp, "\\\n\t:vm=");
269 fprintf(fp, "rfc1048:");
271 fprintf(fp, "cmu:");
273 fprintf(fp, "%d.%d.%d.%d:",
281 fprintf(fp, "\\\n\t:yd=%s:",
285 fprintf(fp, "\\\n\t:ys=");
287 fprintf(fp, ":");
319 fprintf(fp, " #junk in generic! :");
322 fprintf(fp, "\\\n\t:T%d=", tag);
324 fprintf(fp, "%02X", *bp);
328 fprintf(fp, ".");
330 fprintf(fp, ":");
358 fprintf(fp, "%s", inet_ntoa(*addrptr++));
361 fprintf(fp, ", ");