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