Lines Matching refs:servname
320 getaddrinfo(hostname, servname, hints, res) in getaddrinfo() argument
321 const char *hostname, *servname; in getaddrinfo()
353 if (hostname == NULL && servname == NULL)
439 error = get_portmatch(pai, servname);
469 if (get_portmatch(pai, servname) != 0)
479 error = explore_null(pai, servname, &cur->ai_next);
481 error = explore_numeric_scope(pai, hostname, servname,
517 error = explore_fqdn(pai, hostname, servname, &afai);
569 if (get_portmatch(pai, servname) != 0)
608 explore_fqdn(pai, hostname, servname, res) in explore_fqdn() argument
611 const char *servname;
627 if (get_portmatch(pai, servname) != 0)
676 GET_PORT(cur, servname); /*%< XXX: redundant lookups... */
733 explore_null(pai, servname, res) in explore_null() argument
735 const char *servname;
756 GET_PORT(cur->ai_next, servname);
762 GET_PORT(cur->ai_next, servname);
779 explore_numeric(pai, hostname, servname, res) in explore_numeric() argument
782 const char *servname;
806 GET_PORT(cur->ai_next, servname);
819 GET_PORT(cur->ai_next, servname);
842 explore_numeric_scope(pai, hostname, servname, res) in explore_numeric_scope() argument
845 const char *servname;
849 return explore_numeric(pai, hostname, servname, res);
862 return explore_numeric(pai, hostname, servname, res);
866 return explore_numeric(pai, hostname, servname, res);
879 error = explore_numeric(pai, addr, servname, res);
979 get_portmatch(const struct addrinfo *ai, const char *servname) { in get_portmatch() argument
983 return get_port((const struct addrinfo *)ai, servname, 1); in get_portmatch()
987 get_port(const struct addrinfo *ai, const char *servname, int matchonly) { in get_port() argument
993 if (servname == NULL) in get_port()
1029 if (str_isnumber(servname)) { in get_port()
1032 port = atoi(servname); in get_port()
1049 if ((sp = getservbyname(servname, proto)) == NULL) in get_port()