Lines Matching refs:idx
43 size_t l, idx, ms; in _nss_myhostname_gethostbyname4_r() local
110 idx = ALIGN(l+1); in _nss_myhostname_gethostbyname4_r()
116 r_tuple = (struct gaih_addrtuple*) (buffer + idx); in _nss_myhostname_gethostbyname4_r()
123 idx += ALIGN(sizeof(struct gaih_addrtuple)); in _nss_myhostname_gethostbyname4_r()
128 r_tuple = (struct gaih_addrtuple*) (buffer + idx); in _nss_myhostname_gethostbyname4_r()
135 idx += ALIGN(sizeof(struct gaih_addrtuple)); in _nss_myhostname_gethostbyname4_r()
143 r_tuple = (struct gaih_addrtuple*) (buffer + idx); in _nss_myhostname_gethostbyname4_r()
150 idx += ALIGN(sizeof(struct gaih_addrtuple)); in _nss_myhostname_gethostbyname4_r()
155 assert(idx == ms); in _nss_myhostname_gethostbyname4_r()
189 size_t l_canonical, l_additional, idx, ms, alen; in fill_in_hostent() local
228 idx = ALIGN(l_canonical+1); in fill_in_hostent()
231 r_alias = buffer + idx; in fill_in_hostent()
233 idx += ALIGN(l_additional+1); in fill_in_hostent()
237 r_aliases = buffer + idx; in fill_in_hostent()
241 idx += 2*sizeof(char*); in fill_in_hostent()
244 idx += sizeof(char*); in fill_in_hostent()
248 r_addr = buffer + idx; in fill_in_hostent()
261 idx += c*ALIGN(alen); in fill_in_hostent()
265 idx += ALIGN(alen); in fill_in_hostent()
268 idx += ALIGN(alen); in fill_in_hostent()
272 r_addr_list = buffer + idx; in fill_in_hostent()
280 idx += (c+1) * sizeof(char*); in fill_in_hostent()
285 idx += 2 * sizeof(char*); in fill_in_hostent()
288 idx += sizeof(char*); in fill_in_hostent()
292 assert(idx == ms); in fill_in_hostent()