Lines Matching refs:perm_fp
1641 FILE *perm_fp; in save_route() local
1666 if ((perm_fp = fdopen(perm_fd, "r+")) == NULL) { in save_route()
1682 (void) search_rtfile(perm_fp, temp_fp, NULL, SEARCH_MODE_DEL); in save_route()
1687 (void) fclose(perm_fp); in save_route()
1693 if (search_rtfile(perm_fp, NULL, rt, SEARCH_MODE_NULL) > 0) { in save_route()
1699 write_to_rtfile(perm_fp, argc - 1, argv + 1); in save_route()
1710 if (search_rtfile(perm_fp, temp_fp, rt, SEARCH_MODE_DEL) <= 0) { in save_route()
1723 if (search_rtfile(perm_fp, temp_fp, rt, SEARCH_MODE_PRINT) <= in save_route()
1738 (void) fclose(perm_fp); in save_route()
1745 FILE *perm_fp; in show_saved_routes() local
1772 if ((perm_fp = fdopen(perm_fd, "r")) == NULL) { in show_saved_routes()
1776 count += search_rtfile(perm_fp, NULL, NULL, SEARCH_MODE_PRINT); in show_saved_routes()
1777 (void) fseek(perm_fp, 0, SEEK_SET); in show_saved_routes()
1779 count += search_rtfile(perm_fp, NULL, NULL, SEARCH_MODE_PRINT); in show_saved_routes()
1784 (void) fclose(perm_fp); in show_saved_routes()