Lines Matching defs:hostf
2279 _sethtent(FILE **hostf)
2282 if (!*hostf)
2283 *hostf = fopen(_PATH_HOSTS, "re");
2285 rewind(*hostf);
2289 _endhtent(FILE **hostf)
2292 if (*hostf) {
2293 (void) fclose(*hostf);
2294 *hostf = NULL;
2299 _gethtent(FILE **hostf, const char *name, const struct addrinfo *pai)
2311 if (!*hostf && !(*hostf = fopen(_PATH_HOSTS, "re")))
2314 if (!(p = fgets(hostbuf, (int)sizeof hostbuf, *hostf)))
2373 FILE *hostf = NULL;
2381 _sethtent(&hostf);
2382 while ((p = _gethtent(&hostf, name, pai)) != NULL) {
2387 _endhtent(&hostf);