Lines Matching refs:hf
50 static void sethostent_r(FILE** hf) { in sethostent_r() argument
51 if (!*hf) in sethostent_r()
52 *hf = fopen(_PATH_HOSTS, "re"); in sethostent_r()
54 rewind(*hf); in sethostent_r()
57 static void endhostent_r(FILE** hf) { in endhostent_r() argument
58 if (*hf) { in endhostent_r()
59 (void) fclose(*hf); in endhostent_r()
60 *hf = NULL; in endhostent_r()
73 FILE* hf = NULL; in _hf_gethtbyname2() local
74 sethostent_r(&hf); in _hf_gethtbyname2()
75 if (hf == NULL) { in _hf_gethtbyname2()
97 hp = netbsd_gethostent_r(hf, info->hp, info->buf, info->buflen, &he); in _hf_gethtbyname2()
131 endhostent_r(&hf); in _hf_gethtbyname2()
181 FILE* hf = NULL; in _hf_gethtbyaddr() local
182 sethostent_r(&hf); in _hf_gethtbyaddr()
183 if (hf == NULL) { in _hf_gethtbyaddr()
192 while ((hp = netbsd_gethostent_r(hf, info->hp, info->buf, info->buflen, &he)) != NULL) in _hf_gethtbyaddr()
194 endhostent_r(&hf); in _hf_gethtbyaddr()