Lines Matching refs:ptr
209 #define BOUNDS_CHECK(ptr, count) \ argument
211 if (eom - (ptr) < (count)) \
587 char *ptr = hbuf; in android_read_hostent() local
590 if (ptr + size > hbuf_end) { in android_read_hostent()
593 if (fread(ptr, 1, size, proxy) != size) return NULL; in android_read_hostent()
594 hp->h_name = ptr; in android_read_hostent()
595 ptr += size; in android_read_hostent()
608 if (ptr + size > hbuf_end) { in android_read_hostent()
611 if (fread(ptr, 1, size, proxy) != size) return NULL; in android_read_hostent()
613 *aliases++ = ptr; in android_read_hostent()
615 ptr += size; in android_read_hostent()
619 ptr = (char*)ALIGN(ptr); in android_read_hostent()
622 if (ptr + aliases_len > hbuf_end) { in android_read_hostent()
625 hp->h_aliases = (void*)ptr; in android_read_hostent()
626 memcpy(ptr, aliases_ptrs, aliases_len); in android_read_hostent()
627 ptr += aliases_len; in android_read_hostent()
645 if (ptr + size > hbuf_end) { in android_read_hostent()
648 if (fread(ptr, 1, size, proxy) != size) return NULL; in android_read_hostent()
650 *addr_p++ = ptr; in android_read_hostent()
652 ptr += size; in android_read_hostent()
656 ptr = (char*)ALIGN(ptr); in android_read_hostent()
659 if (ptr + addrs_len > hbuf_end) { in android_read_hostent()
662 hp->h_addr_list = (void*)ptr; in android_read_hostent()
663 memcpy(ptr, addr_ptrs, addrs_len); in android_read_hostent()
1315 char *cp, **q, *ptr; in _yp_hostent() local
1406 ptr = info->buf; in _yp_hostent()
1410 HENT_ARRAY(hp->h_addr_list, naddrs, ptr, len); in _yp_hostent()
1411 HENT_ARRAY(hp->h_aliases, anum, ptr, len); in _yp_hostent()
1415 ptr, len); in _yp_hostent()
1418 HENT_SCOPY(hp->h_name, hp->h_name, ptr, len); in _yp_hostent()
1421 HENT_SCOPY(hp->h_aliases[i], aliases[i], ptr, len); in _yp_hostent()