Searched refs:hostf (Results 1 – 5 of 5) 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()
25 FILE* hostf; member
2030 _sethtent(FILE **hostf) in _sethtent() argument2033 if (!*hostf) in _sethtent()2034 *hostf = fopen(_PATH_HOSTS, "re"); in _sethtent()2036 rewind(*hostf); in _sethtent()2040 _endhtent(FILE **hostf) in _endhtent() argument2043 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() argument2063 if (!*hostf && !(*hostf = fopen(_PATH_HOSTS, "re"))) in _gethtent()[all …]
69 if (rs) sethostent_r(&rs->hostf); in sethostent()76 if (rs) endhostent_r(&rs->hostf); in endhostent()
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()