Home
last modified time | relevance | path

Searched refs:hist_fp (Results 1 – 2 of 2) sorted by relevance

/external/iproute2/misc/
Dnstat.c562 FILE *hist_fp = NULL; in main() local
664 if ((hist_fp = fdopen(fd, "r+")) == NULL) { in main()
668 if (flock(fileno(hist_fp), LOCK_EX)) { in main()
672 if (fstat(fileno(hist_fp), &stb) != 0) { in main()
691 if (ftruncate(fileno(hist_fp), 0) < 0) in main()
696 load_good_table(hist_fp); in main()
744 if (ftruncate(fileno(hist_fp), 0) < 0) in main()
746 rewind(hist_fp); in main()
749 dump_kern_db(hist_fp, 1); in main()
750 fclose(hist_fp); in main()
Difstat.c822 FILE *hist_fp = NULL; in main() local
950 if ((hist_fp = fdopen(fd, "r+")) == NULL) { in main()
954 if (flock(fileno(hist_fp), LOCK_EX)) { in main()
958 if (fstat(fileno(hist_fp), &stb) != 0) { in main()
977 if (ftruncate(fileno(hist_fp), 0)) in main()
982 load_raw_table(hist_fp); in main()
1028 if (ftruncate(fileno(hist_fp), 0)) in main()
1030 rewind(hist_fp); in main()
1033 dump_raw_db(hist_fp, 1); in main()
1034 fclose(hist_fp); in main()