Lines Matching refs:hf
52 static void sethostent_r(FILE** hf) { in sethostent_r() argument
53 if (!*hf) in sethostent_r()
54 *hf = fopen(_PATH_HOSTS, "re"); in sethostent_r()
56 rewind(*hf); in sethostent_r()
59 static void endhostent_r(FILE** hf) { in endhostent_r() argument
60 if (*hf) { in endhostent_r()
61 (void) fclose(*hf); in endhostent_r()
62 *hf = NULL; in endhostent_r()
75 FILE* hf = NULL; in _hf_gethtbyname2() local
76 sethostent_r(&hf); in _hf_gethtbyname2()
77 if (hf == NULL) { in _hf_gethtbyname2()
99 hp = netbsd_gethostent_r(hf, info->hp, info->buf, info->buflen, &he); in _hf_gethtbyname2()
133 endhostent_r(&hf); in _hf_gethtbyname2()
183 FILE* hf = NULL; in _hf_gethtbyaddr() local
184 sethostent_r(&hf); in _hf_gethtbyaddr()
185 if (hf == NULL) { in _hf_gethtbyaddr()
194 while ((hp = netbsd_gethostent_r(hf, info->hp, info->buf, info->buflen, &he)) != NULL) in _hf_gethtbyaddr()
196 endhostent_r(&hf); in _hf_gethtbyaddr()