Home
last modified time | relevance | path

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

/external/iproute2/misc/
Dnstat.c524 FILE *hist_fp = NULL; in main() local
626 if ((hist_fp = fdopen(fd, "r+")) == NULL) { in main()
630 if (flock(fileno(hist_fp), LOCK_EX)) { in main()
634 if (fstat(fileno(hist_fp), &stb) != 0) { in main()
652 if (ftruncate(fileno(hist_fp), 0) < 0) in main()
657 load_good_table(hist_fp); in main()
697 if (ftruncate(fileno(hist_fp), 0) < 0) in main()
699 rewind(hist_fp); in main()
702 dump_kern_db(hist_fp, 1); in main()
703 fclose(hist_fp); in main()
Difstat.c685 FILE *hist_fp = NULL; in main() local
796 if ((hist_fp = fdopen(fd, "r+")) == NULL) { in main()
800 if (flock(fileno(hist_fp), LOCK_EX)) { in main()
804 if (fstat(fileno(hist_fp), &stb) != 0) { in main()
822 if (ftruncate(fileno(hist_fp), 0)) in main()
827 load_raw_table(hist_fp); in main()
866 if (ftruncate(fileno(hist_fp), 0)) in main()
868 rewind(hist_fp); in main()
871 dump_raw_db(hist_fp, 1); in main()
872 fclose(hist_fp); in main()