Searched refs:hostfp (Results 1 – 2 of 2) sorted by relevance
1140 FILE *hostfp = NULL; in create_hostsfile() local1200 (hostfp = fdopen(hostfd, "w+")) == NULL) { in create_hostsfile()1215 if (fprintf(hostfp, "%s\t%s\n", ipstr, hostname) < 0) { in create_hostsfile()1226 if (hostfp != NULL) { in create_hostsfile()1230 (void) fclose(hostfp); in create_hostsfile()
2304 FILE *hostfp, *host6fp; in if_configure_hostname() local2326 if ((hostfp = fopen(cfgfile, "r")) != NULL) { in if_configure_hostname()2341 if (hostfp != NULL && in if_configure_hostname()2342 if_config_inst(ifinst, hostfp, AF_INET, ipmp) == -1) { in if_configure_hostname()2355 (void) fclose(hostfp); in if_configure_hostname()2361 (void) fclose(hostfp); in if_configure_hostname()