Lines Matching defs:hostf
2029 _sethtent(FILE **hostf)
2032 if (!*hostf)
2033 *hostf = fopen(_PATH_HOSTS, "r" );
2035 rewind(*hostf);
2039 _endhtent(FILE **hostf)
2042 if (*hostf) {
2043 (void) fclose(*hostf);
2044 *hostf = NULL;
2049 _gethtent(FILE **hostf, const char *name, const struct addrinfo *pai)
2062 if (!*hostf && !(*hostf = fopen(_PATH_HOSTS, "r" )))
2065 if (!(p = fgets(hostbuf, sizeof hostbuf, *hostf)))
2122 FILE *hostf = NULL;
2131 _sethtent(&hostf);
2132 while ((p = _gethtent(&hostf, name, pai)) != NULL) {
2137 _endhtent(&hostf);