Lines Matching refs:servname

407     const char *hostname, const char *servname,  in android_getaddrinfo_proxy()  argument
420 (servname != NULL && in android_getaddrinfo_proxy()
421 strcspn(servname, " \n\r\t^'\"") != strlen(servname))) { in android_getaddrinfo_proxy()
434 servname == NULL ? "^" : servname, in android_getaddrinfo_proxy()
563 getaddrinfo(const char *hostname, const char *servname, in getaddrinfo() argument
566 return android_getaddrinfofornet(hostname, servname, hints, NETID_UNSET, MARK_UNSET, res); in getaddrinfo()
571 android_getaddrinfofornet(const char *hostname, const char *servname, in android_getaddrinfofornet() argument
581 return android_getaddrinfofornetcontext(hostname, servname, hints, &netcontext, res); in android_getaddrinfofornet()
586 android_getaddrinfofornetcontext(const char *hostname, const char *servname, in android_getaddrinfofornetcontext() argument
615 if (hostname == NULL && servname == NULL) in android_getaddrinfofornetcontext()
675 error = get_portmatch(pai, servname); in android_getaddrinfofornetcontext()
707 error = explore_null(pai, servname, &cur->ai_next); in android_getaddrinfofornetcontext()
709 error = explore_numeric_scope(pai, hostname, servname, in android_getaddrinfofornetcontext()
734 hostname, servname, hints, res, netcontext->app_netid); in android_getaddrinfofornetcontext()
767 pai, hostname, servname, &cur->ai_next, netcontext); in android_getaddrinfofornetcontext()
800 const char *servname, struct addrinfo **res, in explore_fqdn() argument
823 if (get_portmatch(pai, servname) != 0) in explore_fqdn()
840 GET_PORT(cur, servname); in explore_fqdn()
862 explore_null(const struct addrinfo *pai, const char *servname, in explore_null() argument
893 if (get_portmatch(pai, servname) != 0) in explore_null()
905 GET_PORT(cur->ai_next, servname); in explore_null()
911 GET_PORT(cur->ai_next, servname); in explore_null()
929 const char *servname, struct addrinfo **res, const char *canonname) in explore_numeric() argument
949 if (get_portmatch(pai, servname) != 0) in explore_numeric()
963 GET_PORT(cur->ai_next, servname); in explore_numeric()
984 GET_PORT(cur->ai_next, servname); in explore_numeric()
1016 const char *servname, struct addrinfo **res) in explore_numeric_scope() argument
1019 return explore_numeric(pai, hostname, servname, res, hostname); in explore_numeric_scope()
1035 if (get_portmatch(pai, servname) != 0) in explore_numeric_scope()
1043 return explore_numeric(pai, hostname, servname, res, hostname); in explore_numeric_scope()
1047 return explore_numeric(pai, hostname, servname, res, hostname); in explore_numeric_scope()
1060 error = explore_numeric(pai, addr, servname, res, hostname); in explore_numeric_scope()
1132 get_portmatch(const struct addrinfo *ai, const char *servname) in get_portmatch() argument
1138 return get_port(ai, servname, 1); in get_portmatch()
1142 get_port(const struct addrinfo *ai, const char *servname, int matchonly) in get_port() argument
1152 if (servname == NULL) in get_port()
1182 port = str2number(servname); in get_port()
1205 if ((sp = getservbyname(servname, proto)) == NULL) in get_port()