Lines Matching refs:servname
27 * numbers for host hostname and service servname. The function is the
29 * RFC2133. hostname and servname are pointers to null-terminated strings
31 * string: a dotted decimal IPv4 address or an IPv6 address. servname is
125 * servname are NULL lwres_getaddrinfo() returns #EAI_NONAME.
172 /*% Get a list of IP addresses and port numbers for host hostname and service servname. */
174 lwres_getaddrinfo(const char *hostname, const char *servname,
185 if (hostname == NULL && servname == NULL)
257 * hostname/servname is '/'.
264 if (servname != NULL &&
265 (family == AF_LOCAL || (family == 0 && *servname == '/')))
266 return (get_local(servname, socktype, res));
279 if (servname != NULL) {
282 port = strtol(servname, &e, 10);
290 sp = getservbyname(servname, proto);