Lines Matching defs:servname
103 * servname - pointer to null-terminated strings that represents
129 * AI_NUMERICSERV - If set, then a non-null servname string supplied shall
165 * EAI_NONAME - host/servname not known
166 * EAI_SERVICE - servname not supported for ai_socktype
179 _getaddrinfo(const char *hostname, const char *servname,
210 /* if nodename nor servname provided */
211 if (hostname == NULL && servname == NULL) {
290 if (servname != NULL) {
336 if (!str_isnumber(servname)) {
339 port = htons(atoi(servname));
340 } else if (str_isnumber(servname)) {
341 port = htons(atoi(servname));
378 sp = getservbyname_r(servname, proto, &result,
541 getaddrinfo(const char *hostname, const char *servname,
544 return (_getaddrinfo(hostname, servname, hints, res, GAIV_DEFAULT));
548 __xnet_getaddrinfo(const char *hostname, const char *servname,
551 return (_getaddrinfo(hostname, servname, hints, res, GAIV_XPG6));