Home | History | Annotate | Download | only in misc

Lines Matching defs:fp

117 static void load_good_table(FILE *fp)
123 while (fgets(buf, sizeof(buf), fp) != NULL) {
171 static void load_ugly_table(FILE *fp)
177 while (fgets(buf, sizeof(buf), fp) != NULL) {
213 if (fgets(buf, sizeof(buf), fp) == NULL)
248 FILE *fp = fdopen(net_snmp_open(), "r");
249 if (fp) {
250 load_ugly_table(fp);
251 fclose(fp);
257 FILE *fp = fdopen(net_snmp6_open(), "r");
258 if (fp) {
259 load_good_table(fp);
260 fclose(fp);
266 FILE *fp = fdopen(net_netstat_open(), "r");
267 if (fp) {
268 load_ugly_table(fp);
269 fclose(fp);
274 static void dump_kern_db(FILE *fp, int to_hist)
276 json_writer_t *jw = json_output ? jsonw_new(fp) : NULL;
285 fprintf(fp, "#%s\n", info_source);
307 fprintf(fp, "%-32s%-16llu%6.1f\n", n->id, val, n->rate);
316 static void dump_incr_db(FILE *fp)
318 json_writer_t *jw = json_output ? jsonw_new(fp) : NULL;
327 fprintf(fp, "#%s\n", info_source);
352 fprintf(fp, "%-32s%-16llu%6.1f%s\n", n->id, val,
457 FILE *fp = fdopen(clnt, "w");
458 if (fp) {
461 dump_kern_db(fp, 0);