Searched refs:hostf (Results 1 – 4 of 4) sorted by relevance
23 FILE* hostf; member
82 if (rs->hostf) { /* should not happen in theory, but just be safe */ in _res_static_done()83 fclose(rs->hostf); in _res_static_done()84 rs->hostf = NULL; in _res_static_done()
1380 _sethtent(FILE **hostf) in _sethtent() argument1383 if (!*hostf) in _sethtent()1384 *hostf = fopen(_PATH_HOSTS, "r" ); in _sethtent()1386 rewind(*hostf); in _sethtent()1390 _endhtent(FILE **hostf) in _endhtent() argument1393 if (*hostf) { in _endhtent()1394 (void) fclose(*hostf); in _endhtent()1395 *hostf = NULL; in _endhtent()1400 _gethtent(FILE **hostf, const char *name, const struct addrinfo *pai) in _gethtent() argument1413 if (!*hostf && !(*hostf = fopen(_PATH_HOSTS, "r" ))) in _gethtent()[all …]
700 if (!rs->hostf) in _sethtent()701 rs->hostf = fopen(_PATH_HOSTS, "r" ); in _sethtent()703 rewind(rs->hostf); in _sethtent()713 if (rs->hostf && !rs->stayopen) { in _endhtent()714 (void) fclose(rs->hostf); in _endhtent()715 rs->hostf = NULL; in _endhtent()727 if (!rs->hostf && !(rs->hostf = fopen(_PATH_HOSTS, "r" ))) { in _gethtent()732 if (!(p = fgets(rs->hostbuf, sizeof rs->hostbuf, rs->hostf))) { in _gethtent()