Searched refs:servf (Results 1 – 1 of 1) sorted by relevance
15 FILE *servf; member66 sd->servf = NULL; in getservent()69 if (!sd->servf && !(sd->servf = fopen(SERV_FILE_PATH, "r"))) { in getservent()76 if (!fgets(sd->buf, BUFFER_SIZE - 1, sd->servf)) { in getservent()89 if (sd->servf != NULL) in endservent()90 fclose(sd->servf); in endservent()103 sd->servf = NULL; in setservent()105 if (!sd->servf) in setservent()106 sd->servf = fopen(SERV_FILE_PATH, "r"); in setservent()108 rewind(sd->servf); in setservent()