• Home
  • Raw
  • Download

Lines Matching refs:servname

296 getaddrinfo(hostname, servname, hints, res)  in getaddrinfo()  argument
297 const char *hostname, *servname; in getaddrinfo()
334 if (hostname == NULL && servname == NULL)
394 error = get_portmatch(pai, servname);
422 error = explore_null(pai, hostname, servname, &cur->ai_next);
424 error = explore_numeric_scope(pai, hostname, servname, &cur->ai_next);
481 error = explore_fqdn(pai, hostname, servname,
515 explore_fqdn(pai, hostname, servname, res) in explore_fqdn() argument
518 const char *servname;
547 if (get_portmatch(pai, servname) != 0)
646 GET_PORT(cur->ai_next, servname);
659 ap, pai, servname);
689 explore_null(pai, hostname, servname, res) in explore_null() argument
692 const char *servname;
719 if (get_portmatch(pai, servname) != 0)
729 GET_PORT(cur->ai_next, servname);
735 GET_PORT(cur->ai_next, servname);
752 explore_numeric(pai, hostname, servname, res) in explore_numeric() argument
755 const char *servname;
772 if (get_portmatch(pai, servname) != 0)
806 GET_PORT(cur->ai_next, servname);
819 pton, pai, servname);
841 explore_numeric_scope(pai, hostname, servname, res) in explore_numeric_scope() argument
844 const char *servname;
848 return explore_numeric(pai, hostname, servname, res);
860 if (get_portmatch(pai, servname) != 0)
865 return explore_numeric(pai, hostname, servname, res);
869 return explore_numeric(pai, hostname, servname, res);
893 error = explore_numeric(pai, hostname2, servname, res);
912 get_name(addr, afd, res, numaddr, pai, servname) in get_name() argument
918 const char *servname;
934 GET_PORT(cur, servname);
949 GET_PORT(cur, servname);
956 GET_PORT(cur, servname);
1022 get_portmatch(ai, servname) in get_portmatch() argument
1024 const char *servname;
1028 return get_port((struct addrinfo *)ai, servname, 1);
1032 get_port(ai, servname, matchonly) in get_port() argument
1034 const char *servname;
1042 if (servname == NULL)
1068 if (str_isnumber(servname)) {
1071 port = htons(atoi(servname));
1087 if ((sp = getservbyname(servname, proto)) == NULL)