Lines Matching refs:cur
591 struct addrinfo *cur; in android_getaddrinfofornetcontext() local
604 cur = &sentinel; in android_getaddrinfofornetcontext()
707 error = explore_null(pai, servname, &cur->ai_next); in android_getaddrinfofornetcontext()
710 &cur->ai_next); in android_getaddrinfofornetcontext()
715 while (cur->ai_next) in android_getaddrinfofornetcontext()
716 cur = cur->ai_next; in android_getaddrinfofornetcontext()
767 pai, hostname, servname, &cur->ai_next, netcontext); in android_getaddrinfofornetcontext()
769 while (cur && cur->ai_next) in android_getaddrinfofornetcontext()
770 cur = cur->ai_next; in android_getaddrinfofornetcontext()
804 struct addrinfo *cur; in explore_fqdn() local
839 for (cur = result; cur; cur = cur->ai_next) { in explore_fqdn()
840 GET_PORT(cur, servname); in explore_fqdn()
867 struct addrinfo *cur; in explore_null() local
877 cur = &sentinel; in explore_null()
901 GET_AI(cur->ai_next, afd, afd->a_addrany); in explore_null()
905 GET_PORT(cur->ai_next, servname); in explore_null()
907 GET_AI(cur->ai_next, afd, afd->a_loopback); in explore_null()
911 GET_PORT(cur->ai_next, servname); in explore_null()
913 cur = cur->ai_next; in explore_null()
932 struct addrinfo *cur; in explore_numeric() local
944 cur = &sentinel; in explore_numeric()
962 GET_AI(cur->ai_next, afd, pton); in explore_numeric()
963 GET_PORT(cur->ai_next, servname); in explore_numeric()
970 GET_CANONNAME(cur->ai_next, canonname); in explore_numeric()
972 while (cur && cur->ai_next) in explore_numeric()
973 cur = cur->ai_next; in explore_numeric()
983 GET_AI(cur->ai_next, afd, pton); in explore_numeric()
984 GET_PORT(cur->ai_next, servname); in explore_numeric()
991 GET_CANONNAME(cur->ai_next, canonname); in explore_numeric()
993 while (cur->ai_next) in explore_numeric()
994 cur = cur->ai_next; in explore_numeric()
1022 struct addrinfo *cur; in explore_numeric_scope()
1064 for (cur = *res; cur; cur = cur->ai_next) { in explore_numeric_scope()
1065 if (cur->ai_family != AF_INET6) in explore_numeric_scope()
1067 sin6 = (struct sockaddr_in6 *)(void *)cur->ai_addr; in explore_numeric_scope()
1313 struct addrinfo sentinel, *cur; in getanswer() local
1333 cur = &sentinel; in getanswer()
1477 cur->ai_next = get_ai(&ai, afd, (const char *)cp); in getanswer()
1478 if (cur->ai_next == NULL) in getanswer()
1480 while (cur && cur->ai_next) in getanswer()
1481 cur = cur->ai_next; in getanswer()
1847 struct addrinfo *cur; in _rfc6724_sort() local
1851 cur = list_sentinel->ai_next; in _rfc6724_sort()
1852 while (cur) { in _rfc6724_sort()
1854 cur = cur->ai_next; in _rfc6724_sort()
1866 for (i = 0, cur = list_sentinel->ai_next; i < nelem; ++i, cur = cur->ai_next) { in _rfc6724_sort()
1868 assert(cur != NULL); in _rfc6724_sort()
1869 elems[i].ai = cur; in _rfc6724_sort()
1872 has_src_addr = _find_src_addr(cur->ai_addr, &elems[i].src_addr.generic, mark, uid); in _rfc6724_sort()
1900 struct addrinfo sentinel, *cur; in _dns_getaddrinfo() local
1913 cur = &sentinel; in _dns_getaddrinfo()
1998 cur->ai_next = ai; in _dns_getaddrinfo()
1999 while (cur && cur->ai_next) in _dns_getaddrinfo()
2000 cur = cur->ai_next; in _dns_getaddrinfo()
2005 cur->ai_next = ai; in _dns_getaddrinfo()
2121 struct addrinfo sentinel, *cur; in _files_getaddrinfo() local
2130 cur = &sentinel; in _files_getaddrinfo()
2134 cur->ai_next = p; in _files_getaddrinfo()
2135 while (cur && cur->ai_next) in _files_getaddrinfo()
2136 cur = cur->ai_next; in _files_getaddrinfo()