Searched refs:hostf (Results 1 – 4 of 4) sorted by relevance
23 FILE* hostf; member
88 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()
2007 _sethtent(FILE **hostf) in _sethtent() argument2010 if (!*hostf) in _sethtent()2011 *hostf = fopen(_PATH_HOSTS, "r" ); in _sethtent()2013 rewind(*hostf); in _sethtent()2017 _endhtent(FILE **hostf) in _endhtent() argument2020 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() argument2040 if (!*hostf && !(*hostf = fopen(_PATH_HOSTS, "r" ))) in _gethtent()[all …]
701 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()