Home
last modified time | relevance | path

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

/bionic/libc/private/
Dresolv_static.h23 FILE* hostf; member
/bionic/libc/netbsd/resolv/
Dres_state.c88 if (rs->hostf) { /* should not happen in theory, but just be safe */ in _res_static_done()
89 fclose(rs->hostf); in _res_static_done()
90 rs->hostf = NULL; in _res_static_done()
/bionic/libc/netbsd/net/
Dgetaddrinfo.c2007 _sethtent(FILE **hostf) in _sethtent() argument
2010 if (!*hostf) in _sethtent()
2011 *hostf = fopen(_PATH_HOSTS, "r" ); in _sethtent()
2013 rewind(*hostf); in _sethtent()
2017 _endhtent(FILE **hostf) in _endhtent() argument
2020 if (*hostf) { in _endhtent()
2021 (void) fclose(*hostf); in _endhtent()
2022 *hostf = NULL; in _endhtent()
2027 _gethtent(FILE **hostf, const char *name, const struct addrinfo *pai) in _gethtent() argument
2040 if (!*hostf && !(*hostf = fopen(_PATH_HOSTS, "r" ))) in _gethtent()
[all …]
/bionic/libc/netbsd/
Dgethnamaddr.c701 if (!rs->hostf) in _sethtent()
702 rs->hostf = fopen(_PATH_HOSTS, "r" ); in _sethtent()
704 rewind(rs->hostf); in _sethtent()
714 if (rs->hostf && !rs->stayopen) { in _endhtent()
715 (void) fclose(rs->hostf); in _endhtent()
716 rs->hostf = NULL; in _endhtent()
728 if (!rs->hostf && !(rs->hostf = fopen(_PATH_HOSTS, "r" ))) { in _gethtent()
733 if (!(p = fgets(rs->hostbuf, sizeof rs->hostbuf, rs->hostf))) { in _gethtent()