Home | History | Annotate | Download | only in net

Lines Matching refs:hostf

2016 _sethtent(FILE **hostf)
2019 if (!*hostf)
2020 *hostf = fopen(_PATH_HOSTS, "r" );
2022 rewind(*hostf);
2026 _endhtent(FILE **hostf)
2029 if (*hostf) {
2030 (void) fclose(*hostf);
2031 *hostf = NULL;
2036 _gethtent(FILE **hostf, const char *name, const struct addrinfo *pai)
2049 if (!*hostf && !(*hostf = fopen(_PATH_HOSTS, "r" )))
2052 if (!(p = fgets(hostbuf, sizeof hostbuf, *hostf)))
2109 FILE *hostf = NULL;
2118 _sethtent(&hostf);
2119 while ((p = _gethtent(&hostf, name, pai)) != NULL) {
2124 _endhtent(&hostf);