Home | History | Annotate | Download | only in BsdSocketLib

Lines Matching refs:servname

257 	"hostname nor servname provided, or not known",	/* EAI_NONAME     */

258 "servname not supported for ai_socktype", /* EAI_SERVICE */
354 getaddrinfo(const char *hostname, const char *servname,
367 /* servname is allowed to be NULL */
385 if (hostname == NULL && servname == NULL)
427 * check for special cases. (1) numeric servname is disallowed if
428 * socktype/protocol are left unspecified. (2) servname is disallowed
445 error = get_portmatch(pai, servname, &svd);
477 error = explore_null(pai, servname, &cur->ai_next,
480 error = explore_numeric_scope(pai, hostname, servname,
529 error = explore_fqdn(pai, hostname, servname, &cur->ai_next,
571 const char *servname, struct addrinfo **res, struct servent_data *svd)
579 /* servname may be NULL */
585 * if the servname does not match socktype/protocol, ignore it.
587 if (get_portmatch(pai, servname, svd) != 0)
604 GET_PORT(cur, servname, svd);
626 explore_null(const struct addrinfo *pai, const char *servname,
636 /* servname may be NULL */
655 * if the servname does not match socktype/protocol, ignore it.
657 if (get_portmatch(pai, servname, svd) != 0)
669 GET_PORT(cur->ai_next, servname, svd);
675 GET_PORT(cur->ai_next, servname, svd);
693 const char *servname, struct addrinfo **res, const char *canonname,
704 /* servname may be NULL */
712 * if the servname does not match socktype/protocol, ignore it.
714 if (get_portmatch(pai, servname, svd) != 0)
728 GET_PORT(cur->ai_next, servname, svd);
749 GET_PORT(cur->ai_next, servname, svd);
781 const char *servname, struct addrinfo **res, struct servent_data *svd)
784 return explore_numeric(pai, hostname, servname, res, hostname, svd);
794 /* servname may be NULL */
798 * if the servname does not match socktype/protocol, ignore it.
800 if (get_portmatch(pai, servname, svd) != 0)
808 return explore_numeric(pai, hostname, servname, res, hostname,
813 return explore_numeric(pai, hostname, servname, res, hostname,
827 error = explore_numeric(pai, addr, servname, res, hostname, svd);
893 get_portmatch(const struct addrinfo *ai, const char *servname,
898 /* servname may be NULL */
900 return get_port(ai, servname, 1, svd);
904 get_port(const struct addrinfo *ai, const char *servname, int matchonly,
913 /* servname may be NULL */
915 if (servname == NULL)
946 port = str2number(servname);
970 // sp = getservbyname_r(servname, proto, &sv, svd);
971 sp = getservbyname ( servname, proto );