Lines Matching defs:service
186 /* Resolve service name into port number given in host byte order.
189 static unsigned short lookup_service(const char *service, int flags)
198 if (service) {
213 if (getservbyname_r(service, proto, &se, (void *)tmpbuf, sizeof(tmpbuf),
218 sep = getservbyname_r(service, proto, &se, (void *)tmpbuf, sizeof(tmpbuf));
220 if (getservbyname_r(service, proto, &se, (void *)tmpbuf) != 0) {
225 sep = getservbyname(service, proto);
230 sep = getservbyname(service, (char *)proto);
232 sep = getservbyname(service, proto);
537 const char *service,
578 if (service) {
582 val = strtoul(service, NULL, 0);
590 port = lookup_service(service, 0);
594 val = strtoul(service, NULL, 0);
673 const char *service,
681 ares_getaddrinfo_int(channel, name, service, hints, callback, arg);