Lines Matching refs:servname
392 getaddrinfo(const char *hostname, const char *servname, in getaddrinfo() argument
427 if (hostname == NULL && servname == NULL) in getaddrinfo()
511 error = get_portmatch(pai, servname); in getaddrinfo()
536 error = explore_null(pai, servname, in getaddrinfo()
546 error = explore_numeric_scope(pai, hostname, servname, in getaddrinfo()
576 error = explore_fqdn(pai, hostname, servname, &afai_unspec); in getaddrinfo()
601 if (get_portmatch(pai, servname) != 0) in getaddrinfo()
1194 explore_null(const struct addrinfo *pai, const char *servname, in explore_null() argument
1225 GET_PORT(ai, servname); in explore_null()
1228 GET_PORT(ai, servname); in explore_null()
1245 const char *servname, struct addrinfo **res, const char *canonname) in explore_numeric() argument
1303 GET_PORT(ai, servname); in explore_numeric()
1336 const char *servname, struct addrinfo **res) in explore_numeric_scope() argument
1339 return explore_numeric(pai, hostname, servname, res, hostname); in explore_numeric_scope()
1352 return explore_numeric(pai, hostname, servname, res, hostname); in explore_numeric_scope()
1356 return explore_numeric(pai, hostname, servname, res, hostname); in explore_numeric_scope()
1369 error = explore_numeric(pai, addr, servname, res, hostname); in explore_numeric_scope()
1477 get_portmatch(const struct addrinfo *ai, const char *servname) in get_portmatch() argument
1482 return get_port((struct addrinfo *)ai, servname, 1); in get_portmatch()
1486 get_port(struct addrinfo *ai, const char *servname, int matchonly) in get_port() argument
1493 if (servname == NULL) in get_port()
1533 error = str2number(servname, &port); in get_port()
1562 if ((sp = getservbyname(servname, proto)) == NULL) in get_port()
1915 const char *servname, struct addrinfo **res) in explore_fqdn() argument
1942 if (get_portmatch(pai, servname) != 0) in explore_fqdn()
1959 GET_PORT(cur, servname); in explore_fqdn()