Lines Matching refs:cur
206 struct addrinfo *cur;
215 cur = &sentinel;
354 GET_AI(cur->ai_next, afd, afd->a_addrany, port);
356 * GET_CANONNAME(cur->ai_next, "anyaddr");
359 GET_AI(cur->ai_next, afd, afd->a_loopback,
362 * GET_CANONNAME(cur->ai_next, "localhost");
365 cur = cur->ai_next;
452 struct addrinfo *cur;
456 GET_AI(cur, afd, hp->h_addr_list[0], port);
457 GET_CANONNAME(cur, hp->h_name);
459 GET_AI(cur, afd, numaddr, port);
461 *res = cur;
464 if (cur)
465 freeaddrinfo(cur);
481 struct addrinfo *cur;
519 for (cur = *res;
520 cur && cur->ai_next;
521 cur = cur->ai_next)
523 if (!cur)
525 res = &cur->ai_next;
547 struct addrinfo *top, *cur;
554 cur = &sentinel;
617 GET_AI(cur->ai_next, afd, ap, port);
618 if (cur == &sentinel) {
619 top = cur->ai_next;
622 cur = cur->ai_next;