Lines Matching refs:hf
80 sethostent_r(FILE **hf) in sethostent_r() argument
82 if (!*hf) in sethostent_r()
83 *hf = fopen(_PATH_HOSTS, "re"); in sethostent_r()
85 rewind(*hf); in sethostent_r()
89 endhostent_r(FILE **hf) in endhostent_r() argument
91 if (*hf) { in endhostent_r()
92 (void)fclose(*hf); in endhostent_r()
93 *hf = NULL; in endhostent_r()
144 FILE *hf; in _hf_gethtbyname2() local
150 hf = NULL; in _hf_gethtbyname2()
151 sethostent_r(&hf); in _hf_gethtbyname2()
152 if (hf == NULL) { in _hf_gethtbyname2()
160 endhostent_r(&hf); in _hf_gethtbyname2()
173 hp = netbsd_gethostent_r(hf, info->hp, info->buf, info->buflen, in _hf_gethtbyname2()
212 endhostent_r(&hf); in _hf_gethtbyname2()
245 endhostent_r(&hf); in _hf_gethtbyname2()
258 FILE *hf; in _hf_gethtbyaddr() local
266 hf = NULL; in _hf_gethtbyaddr()
267 sethostent_r(&hf); in _hf_gethtbyaddr()
268 if (hf == NULL) { in _hf_gethtbyaddr()
272 while ((hp = netbsd_gethostent_r(hf, info->hp, info->buf, info->buflen, in _hf_gethtbyaddr()
276 endhostent_r(&hf); in _hf_gethtbyaddr()