Lines Matching refs:servname
117 * servname - pointer to null-terminated strings that represents
143 * AI_NUMERICSERV - If set, then a non-null servname string supplied shall
179 * EAI_NONAME - host/servname not known
180 * EAI_SERVICE - servname not supported for ai_socktype
193 _getaddrinfo(const char *hostname, const char *servname,
224 /* if nodename nor servname provided */
225 if (hostname == NULL && servname == NULL) {
304 if (servname != NULL) {
350 if (!str_isnumber(servname)) {
353 port = htons(atoi(servname));
354 } else if (str_isnumber(servname)) {
355 port = htons(atoi(servname));
392 sp = getservbyname_r(servname, proto, &result,
547 getaddrinfo(const char *hostname, const char *servname,
550 return (_getaddrinfo(hostname, servname, hints, res, GAIV_DEFAULT));
554 __xnet_getaddrinfo(const char *hostname, const char *servname,
557 return (_getaddrinfo(hostname, servname, hints, res, GAIV_XPG6));