Lines Matching refs:cur_off
119 size_t cur_off = 0; in uv__getaddrinfo_done() local
124 cur_off = align_offset(cur_off, sizeof(void*)); in uv__getaddrinfo_done()
125 cur_off += sizeof(struct addrinfo); in uv__getaddrinfo_done()
128 cur_off = align_offset(cur_off, sizeof(void*)); in uv__getaddrinfo_done()
129 cur_off += addrinfow_ptr->ai_addrlen; in uv__getaddrinfo_done()
137 cur_off += name_len + 1; in uv__getaddrinfo_done()
143 addrinfo_len = cur_off; in uv__getaddrinfo_done()
149 cur_off = 0; in uv__getaddrinfo_done()
153 cur_off += sizeof(struct addrinfo); in uv__getaddrinfo_done()
154 assert(cur_off <= addrinfo_len); in uv__getaddrinfo_done()
167 cur_off = align_offset(cur_off, sizeof(void *)); in uv__getaddrinfo_done()
168 addrinfo_ptr->ai_addr = (struct sockaddr *)(alloc_ptr + cur_off); in uv__getaddrinfo_done()
169 cur_off += addrinfo_ptr->ai_addrlen; in uv__getaddrinfo_done()
170 assert(cur_off <= addrinfo_len); in uv__getaddrinfo_done()
178 ssize_t name_len = addrinfo_len - cur_off; in uv__getaddrinfo_done()
179 addrinfo_ptr->ai_canonname = alloc_ptr + cur_off; in uv__getaddrinfo_done()
185 cur_off += name_len + 1; in uv__getaddrinfo_done()
186 assert(cur_off <= addrinfo_len); in uv__getaddrinfo_done()
193 cur_off = align_offset(cur_off, sizeof(void *)); in uv__getaddrinfo_done()
194 struct addrinfo *next_addrinfo_ptr = (struct addrinfo *)(alloc_ptr + cur_off); in uv__getaddrinfo_done()