Searched refs:hostf (Results 1 – 3 of 3) sorted by relevance
65 if (rs->hostf) { /* should not happen in theory, but just be safe */ in res_static_done()66 fclose(rs->hostf); in res_static_done()67 rs->hostf = NULL; in res_static_done()
24 FILE* hostf; member
1477 static void _sethtent(FILE** hostf) { in _sethtent() argument1478 if (!*hostf) in _sethtent()1479 *hostf = fopen(_PATH_HOSTS, "re"); in _sethtent()1481 rewind(*hostf); in _sethtent()1484 static void _endhtent(FILE** hostf) { in _endhtent() argument1485 if (*hostf) { in _endhtent()1486 (void) fclose(*hostf); in _endhtent()1487 *hostf = NULL; in _endhtent()1491 static struct addrinfo* _gethtent(FILE** hostf, const char* name, const struct addrinfo* pai) { in _gethtent() argument1502 if (!*hostf && !(*hostf = fopen(_PATH_HOSTS, "re"))) return (NULL); in _gethtent()[all …]