Lines Matching refs:hostf
2008 _sethtent(FILE **hostf)
2011 if (!*hostf)
2012 *hostf = fopen(_PATH_HOSTS, "re");
2014 rewind(*hostf);
2018 _endhtent(FILE **hostf)
2021 if (*hostf) {
2022 (void) fclose(*hostf);
2023 *hostf = NULL;
2028 _gethtent(FILE **hostf, const char *name, const struct addrinfo *pai)
2041 if (!*hostf && !(*hostf = fopen(_PATH_HOSTS, "re")))
2044 if (!(p = fgets(hostbuf, sizeof hostbuf, *hostf)))
2101 FILE *hostf = NULL;
2110 _sethtent(&hostf);
2111 while ((p = _gethtent(&hostf, name, pai)) != NULL) {
2116 _endhtent(&hostf);