Lines Matching refs:fp
654 FILE *fp; in ifc_remove_host_routes() local
657 fp = fopen("/proc/net/route", "r"); in ifc_remove_host_routes()
658 if (fp == NULL) in ifc_remove_host_routes()
661 if (fscanf(fp, "%*[^\n]\n") < 0) { in ifc_remove_host_routes()
662 fclose(fp); in ifc_remove_host_routes()
667 int nread = fscanf(fp, "%63s%X%X%X%d%d%d%X%d%d%d\n", in ifc_remove_host_routes()
688 fclose(fp); in ifc_remove_host_routes()
707 FILE *fp; in ifc_get_default_route() local
709 fp = fopen("/proc/net/route", "r"); in ifc_get_default_route()
710 if (fp == NULL) in ifc_get_default_route()
713 if (fscanf(fp, "%*[^\n]\n") < 0) { in ifc_get_default_route()
714 fclose(fp); in ifc_get_default_route()
720 int nread = fscanf(fp, "%63s%X%X%X%d%d%d%X%d%d%d\n", in ifc_get_default_route()
733 fclose(fp); in ifc_get_default_route()