Home
last modified time | relevance | path

Searched refs:servf (Results 1 – 1 of 1) sorted by relevance

/third_party/musl/porting/liteos_a/user/src/network/
Dserv.c15 FILE *servf; member
66 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()