Lines Matching defs:servname
74 getaddrinfo_async(const char *hostname, const char *servname,
92 if (servname && (as->as.ai.servname = strdup(servname)) == NULL)
138 as->as.ai.servname == NULL) {
186 get_port(as->as.ai.servname, NULL, 1) != 0) {
215 as->as.ai.port_udp = get_port(as->as.ai.servname, "udp",
218 as->as.ai.port_tcp = get_port(as->as.ai.servname, "tcp",
483 * Retrieve the port number for the service name "servname" and
487 get_port(const char *servname, const char *proto, int numonly)
494 if (servname == NULL)
498 port = strtonum(servname, 0, USHRT_MAX, &e);
508 if (getservbyname_r(servname, proto, &se, &sed) != -1)
565 /* servname specified, but not defined for this protocol */