Lines Matching refs:ptr
210 #define BOUNDS_CHECK(ptr, count) \ argument
212 if (eom - (ptr) < (count)) \
588 char *ptr = hbuf; in android_read_hostent() local
591 if (ptr + size > hbuf_end) { in android_read_hostent()
594 if (fread(ptr, 1, size, proxy) != size) return NULL; in android_read_hostent()
595 hp->h_name = ptr; in android_read_hostent()
596 ptr += size; in android_read_hostent()
609 if (ptr + size > hbuf_end) { in android_read_hostent()
612 if (fread(ptr, 1, size, proxy) != size) return NULL; in android_read_hostent()
614 *aliases++ = ptr; in android_read_hostent()
616 ptr += size; in android_read_hostent()
620 ptr = (char*)ALIGN(ptr); in android_read_hostent()
623 if (ptr + aliases_len > hbuf_end) { in android_read_hostent()
626 hp->h_aliases = (void*)ptr; in android_read_hostent()
627 memcpy(ptr, aliases_ptrs, aliases_len); in android_read_hostent()
628 ptr += aliases_len; in android_read_hostent()
646 if (ptr + size > hbuf_end) { in android_read_hostent()
649 if (fread(ptr, 1, size, proxy) != size) return NULL; in android_read_hostent()
651 *addr_p++ = ptr; in android_read_hostent()
653 ptr += size; in android_read_hostent()
657 ptr = (char*)ALIGN(ptr); in android_read_hostent()
660 if (ptr + addrs_len > hbuf_end) { in android_read_hostent()
663 hp->h_addr_list = (void*)ptr; in android_read_hostent()
664 memcpy(ptr, addr_ptrs, addrs_len); in android_read_hostent()
1316 char *cp, **q, *ptr; in _yp_hostent() local
1407 ptr = info->buf; in _yp_hostent()
1411 HENT_ARRAY(hp->h_addr_list, naddrs, ptr, len); in _yp_hostent()
1412 HENT_ARRAY(hp->h_aliases, anum, ptr, len); in _yp_hostent()
1416 ptr, len); in _yp_hostent()
1419 HENT_SCOPY(hp->h_name, hp->h_name, ptr, len); in _yp_hostent()
1422 HENT_SCOPY(hp->h_aliases[i], aliases[i], ptr, len); in _yp_hostent()