Lines Matching refs:ptr
145 char *buf, *ptr; in _hf_gethtbyname2() local
161 if ((ptr = buf = malloc(len = info->buflen)) == NULL) { in _hf_gethtbyname2()
196 HENT_SCOPY(hent.h_name, hp->h_name, ptr, len); in _hf_gethtbyname2()
201 ptr, len); in _hf_gethtbyname2()
203 ptr = (void *)ALIGN(ptr); in _hf_gethtbyname2()
204 if ((size_t)(ptr - buf) >= info->buflen) in _hf_gethtbyname2()
210 HENT_COPY(addr_ptrs[num], hp->h_addr_list[0], hp->h_length, ptr, in _hf_gethtbyname2()
223 ptr = info->buf; in _hf_gethtbyname2()
229 HENT_ARRAY(hp->h_aliases, anum, ptr, len); in _hf_gethtbyname2()
230 HENT_ARRAY(hp->h_addr_list, num, ptr, len); in _hf_gethtbyname2()
233 HENT_COPY(hp->h_addr_list[i], addr_ptrs[i], hp->h_length, ptr, in _hf_gethtbyname2()
237 HENT_SCOPY(hp->h_name, hent.h_name, ptr, len); in _hf_gethtbyname2()
240 HENT_SCOPY(hp->h_aliases[i], aliases[i], ptr, len); in _hf_gethtbyname2()