Searched refs:hostf (Results 1 – 1 of 1) sorted by relevance
1463 static void _sethtent(FILE** hostf) { in _sethtent() argument1464 if (!*hostf) in _sethtent()1465 *hostf = fopen(_PATH_HOSTS, "re"); in _sethtent()1467 rewind(*hostf); in _sethtent()1470 static void _endhtent(FILE** hostf) { in _endhtent() argument1471 if (*hostf) { in _endhtent()1472 (void) fclose(*hostf); in _endhtent()1473 *hostf = NULL; in _endhtent()1477 static struct addrinfo* _gethtent(FILE** hostf, const char* name, const struct addrinfo* pai) { in _gethtent() argument1488 if (!*hostf && !(*hostf = fopen(_PATH_HOSTS, "re"))) return (NULL); in _gethtent()[all …]