Searched refs:hostf (Results 1 – 4 of 4) sorted by relevance
77 if (rs->hostf) { /* should not happen in theory, but just be safe */ in _res_static_done()78 fclose(rs->hostf); in _res_static_done()79 rs->hostf = NULL; in _res_static_done()
23 FILE* hostf; member
2026 _sethtent(FILE **hostf) in _sethtent() argument2029 if (!*hostf) in _sethtent()2030 *hostf = fopen(_PATH_HOSTS, "re"); in _sethtent()2032 rewind(*hostf); in _sethtent()2036 _endhtent(FILE **hostf) in _endhtent() argument2039 if (*hostf) { in _endhtent()2040 (void) fclose(*hostf); in _endhtent()2041 *hostf = NULL; in _endhtent()2046 _gethtent(FILE **hostf, const char *name, const struct addrinfo *pai) in _gethtent() argument2059 if (!*hostf && !(*hostf = fopen(_PATH_HOSTS, "re"))) in _gethtent()[all …]
1627 if (!rs->hostf) { in gethostent()1628 sethostent_r(&rs->hostf); in gethostent()1629 if (!rs->hostf) { in gethostent()1635 return netbsd_gethostent_r(rs->hostf, &rs->host, rs->hostbuf, sizeof(rs->hostbuf), &h_errno); in gethostent()