Lines Matching refs:servname
389 getaddrinfo(const char *hostname, const char *servname, in getaddrinfo() argument
424 if (hostname == NULL && servname == NULL) in getaddrinfo()
508 error = get_portmatch(pai, servname); in getaddrinfo()
533 error = explore_null(pai, servname, in getaddrinfo()
543 error = explore_numeric_scope(pai, hostname, servname, in getaddrinfo()
573 error = explore_fqdn(pai, hostname, servname, &afai_unspec); in getaddrinfo()
598 if (get_portmatch(pai, servname) != 0) in getaddrinfo()
1191 explore_null(const struct addrinfo *pai, const char *servname, in explore_null() argument
1222 GET_PORT(ai, servname); in explore_null()
1225 GET_PORT(ai, servname); in explore_null()
1242 const char *servname, struct addrinfo **res, const char *canonname) in explore_numeric() argument
1300 GET_PORT(ai, servname); in explore_numeric()
1333 const char *servname, struct addrinfo **res) in explore_numeric_scope() argument
1336 return explore_numeric(pai, hostname, servname, res, hostname); in explore_numeric_scope()
1349 return explore_numeric(pai, hostname, servname, res, hostname); in explore_numeric_scope()
1353 return explore_numeric(pai, hostname, servname, res, hostname); in explore_numeric_scope()
1366 error = explore_numeric(pai, addr, servname, res, hostname); in explore_numeric_scope()
1474 get_portmatch(const struct addrinfo *ai, const char *servname) in get_portmatch() argument
1479 return get_port((struct addrinfo *)ai, servname, 1); in get_portmatch()
1483 get_port(struct addrinfo *ai, const char *servname, int matchonly) in get_port() argument
1490 if (servname == NULL) in get_port()
1530 error = str2number(servname, &port); in get_port()
1559 if ((sp = getservbyname(servname, proto)) == NULL) in get_port()
1912 const char *servname, struct addrinfo **res) in explore_fqdn() argument
1939 if (get_portmatch(pai, servname) != 0) in explore_fqdn()
1959 GET_PORT(cur, servname); in explore_fqdn()