Lines Matching refs:cur

326 	struct addrinfo *cur;  local
333 cur = &sentinel;
479 error = explore_null(pai, servname, &cur->ai_next);
482 &cur->ai_next);
487 while (cur && cur->ai_next)
488 cur = cur->ai_next;
572 if ((error = explore_copy(pai, afai, &cur->ai_next)) != 0) {
577 while (cur && cur->ai_next)
578 cur = cur->ai_next;
615 struct addrinfo *cur; local
675 for (cur = result; cur; cur = cur->ai_next) {
676 GET_PORT(cur, servname); /*%< XXX: redundant lookups... */
697 struct addrinfo sentinel, *cur; local
702 cur = &sentinel;
708 cur->ai_next = copy_ai(src);
709 if (!cur->ai_next) {
714 cur->ai_next->ai_socktype = pai->ai_socktype;
715 cur->ai_next->ai_protocol = pai->ai_protocol;
716 cur = cur->ai_next;
739 struct addrinfo *cur; local
745 cur = &sentinel;
752 GET_AI(cur->ai_next, afd, afd->a_addrany);
756 GET_PORT(cur->ai_next, servname);
758 GET_AI(cur->ai_next, afd, afd->a_loopback);
762 GET_PORT(cur->ai_next, servname);
764 cur = cur->ai_next;
786 struct addrinfo *cur; local
793 cur = &sentinel;
805 GET_AI(cur->ai_next, afd, pton);
806 GET_PORT(cur->ai_next, servname);
807 while (cur->ai_next)
808 cur = cur->ai_next;
818 GET_AI(cur->ai_next, afd, pton);
819 GET_PORT(cur->ai_next, servname);
820 while (cur->ai_next)
821 cur = cur->ai_next;
852 struct addrinfo *cur;
883 for (cur = *res; cur; cur = cur->ai_next) {
884 if (cur->ai_family != AF_INET6)
886 sin6 = (struct sockaddr_in6 *)(void *)cur->ai_addr;
1163 struct addrinfo sentinel, *cur; local
1177 cur = &sentinel;
1193 GET_AI(cur->ai_next, afd, ap);
1202 GET_CANONNAME(cur->ai_next, hp->h_name);
1204 while (cur->ai_next) /*%< no need to loop, actually. */
1205 cur = cur->ai_next;
1209 if (cur->ai_next)
1210 freeaddrinfo(cur->ai_next);
1211 cur->ai_next = NULL;