Home
last modified time | relevance | path

Searched refs:hostf (Results 1 – 5 of 5) sorted by relevance

/bionic/libc/dns/resolv/
Dres_state.c77 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()
/bionic/libc/dns/include/
Dresolv_static.h25 FILE* hostf; member
/bionic/libc/dns/net/
Dgetaddrinfo.c2030 _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()
[all …]
Dsethostent.c69 if (rs) sethostent_r(&rs->hostf); in sethostent()
76 if (rs) endhostent_r(&rs->hostf); in endhostent()
Dgethnamaddr.c1627 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()