Lines Matching refs:hostf
2030 _sethtent(FILE **hostf) in _sethtent() argument
2033 if (!*hostf) in _sethtent()
2034 *hostf = fopen(_PATH_HOSTS, "re"); in _sethtent()
2036 rewind(*hostf); in _sethtent()
2040 _endhtent(FILE **hostf) in _endhtent() argument
2043 if (*hostf) { in _endhtent()
2044 (void) fclose(*hostf); in _endhtent()
2045 *hostf = NULL; in _endhtent()
2050 _gethtent(FILE **hostf, const char *name, const struct addrinfo *pai) in _gethtent() argument
2063 if (!*hostf && !(*hostf = fopen(_PATH_HOSTS, "re"))) in _gethtent()
2066 if (!(p = fgets(hostbuf, sizeof hostbuf, *hostf))) in _gethtent()
2123 FILE *hostf = NULL; in _files_getaddrinfo() local
2132 _sethtent(&hostf); in _files_getaddrinfo()
2133 while ((p = _gethtent(&hostf, name, pai)) != NULL) { in _files_getaddrinfo()
2138 _endhtent(&hostf); in _files_getaddrinfo()