Lines Matching refs:servname
405 const char *hostname, const char *servname, in android_getaddrinfo_proxy() argument
418 (servname != NULL && in android_getaddrinfo_proxy()
419 strcspn(servname, " \n\r\t^'\"") != strlen(servname))) { in android_getaddrinfo_proxy()
433 servname == NULL ? "^" : servname, in android_getaddrinfo_proxy()
560 getaddrinfo(const char *hostname, const char *servname, in getaddrinfo() argument
563 return android_getaddrinfofornet(hostname, servname, hints, NETID_UNSET, MARK_UNSET, res); in getaddrinfo()
567 android_getaddrinfofornet(const char *hostname, const char *servname, in android_getaddrinfofornet() argument
577 return android_getaddrinfofornetcontext(hostname, servname, hints, &netcontext, res); in android_getaddrinfofornet()
581 android_getaddrinfofornetcontext(const char *hostname, const char *servname, in android_getaddrinfofornetcontext() argument
610 if (hostname == NULL && servname == NULL) in android_getaddrinfofornetcontext()
670 error = get_portmatch(pai, servname); in android_getaddrinfofornetcontext()
702 error = explore_null(pai, servname, &cur->ai_next); in android_getaddrinfofornetcontext()
704 error = explore_numeric_scope(pai, hostname, servname, in android_getaddrinfofornetcontext()
729 hostname, servname, hints, res, netcontext->app_netid); in android_getaddrinfofornetcontext()
762 pai, hostname, servname, &cur->ai_next, netcontext); in android_getaddrinfofornetcontext()
795 const char *servname, struct addrinfo **res, in explore_fqdn() argument
818 if (get_portmatch(pai, servname) != 0) in explore_fqdn()
835 GET_PORT(cur, servname); in explore_fqdn()
857 explore_null(const struct addrinfo *pai, const char *servname, in explore_null() argument
888 if (get_portmatch(pai, servname) != 0) in explore_null()
900 GET_PORT(cur->ai_next, servname); in explore_null()
906 GET_PORT(cur->ai_next, servname); in explore_null()
924 const char *servname, struct addrinfo **res, const char *canonname) in explore_numeric() argument
944 if (get_portmatch(pai, servname) != 0) in explore_numeric()
958 GET_PORT(cur->ai_next, servname); in explore_numeric()
979 GET_PORT(cur->ai_next, servname); in explore_numeric()
1011 const char *servname, struct addrinfo **res) in explore_numeric_scope() argument
1014 return explore_numeric(pai, hostname, servname, res, hostname); in explore_numeric_scope()
1030 if (get_portmatch(pai, servname) != 0) in explore_numeric_scope()
1038 return explore_numeric(pai, hostname, servname, res, hostname); in explore_numeric_scope()
1042 return explore_numeric(pai, hostname, servname, res, hostname); in explore_numeric_scope()
1055 error = explore_numeric(pai, addr, servname, res, hostname); in explore_numeric_scope()
1127 get_portmatch(const struct addrinfo *ai, const char *servname) in get_portmatch() argument
1133 return get_port(ai, servname, 1); in get_portmatch()
1137 get_port(const struct addrinfo *ai, const char *servname, int matchonly) in get_port() argument
1147 if (servname == NULL) in get_port()
1177 port = str2number(servname); in get_port()
1200 if ((sp = getservbyname(servname, proto)) == NULL) in get_port()