Searched refs:hist_fp (Results 1 – 2 of 2) sorted by relevance
/external/iproute2/misc/ |
D | nstat.c | 450 FILE *hist_fp = NULL; in main() local 545 if ((hist_fp = fdopen(fd, "r+")) == NULL) { in main() 549 if (flock(fileno(hist_fp), LOCK_EX)) { in main() 553 if (fstat(fileno(hist_fp), &stb) != 0) { in main() 571 ftruncate(fileno(hist_fp), 0); in main() 575 load_good_table(hist_fp); in main() 615 ftruncate(fileno(hist_fp), 0); in main() 616 rewind(hist_fp); in main() 617 dump_kern_db(hist_fp, 1); in main() 618 fflush(hist_fp); in main()
|
D | ifstat.c | 592 FILE *hist_fp = NULL; in main() local 695 if ((hist_fp = fdopen(fd, "r+")) == NULL) { in main() 699 if (flock(fileno(hist_fp), LOCK_EX)) { in main() 703 if (fstat(fileno(hist_fp), &stb) != 0) { in main() 721 ftruncate(fileno(hist_fp), 0); in main() 725 load_raw_table(hist_fp); in main() 763 ftruncate(fileno(hist_fp), 0); in main() 764 rewind(hist_fp); in main() 765 dump_raw_db(hist_fp, 1); in main() 766 fflush(hist_fp); in main()
|