• Home
  • Raw
  • Download

Lines Matching refs:servname

289 getaddrinfo(hostname, servname, hints, res)  in getaddrinfo()  argument
290 const char *hostname, *servname; in getaddrinfo()
327 if (hostname == NULL && servname == NULL)
387 error = get_portmatch(pai, servname);
415 error = explore_null(pai, hostname, servname, &cur->ai_next);
417 error = explore_numeric_scope(pai, hostname, servname, &cur->ai_next);
474 error = explore_fqdn(pai, hostname, servname,
508 explore_fqdn(pai, hostname, servname, res) in explore_fqdn() argument
511 const char *servname;
540 if (get_portmatch(pai, servname) != 0)
639 GET_PORT(cur->ai_next, servname);
652 ap, pai, servname);
682 explore_null(pai, hostname, servname, res) in explore_null() argument
685 const char *servname;
712 if (get_portmatch(pai, servname) != 0)
722 GET_PORT(cur->ai_next, servname);
728 GET_PORT(cur->ai_next, servname);
745 explore_numeric(pai, hostname, servname, res) in explore_numeric() argument
748 const char *servname;
765 if (get_portmatch(pai, servname) != 0)
799 GET_PORT(cur->ai_next, servname);
812 pton, pai, servname);
834 explore_numeric_scope(pai, hostname, servname, res) in explore_numeric_scope() argument
837 const char *servname;
841 return explore_numeric(pai, hostname, servname, res);
853 if (get_portmatch(pai, servname) != 0)
858 return explore_numeric(pai, hostname, servname, res);
862 return explore_numeric(pai, hostname, servname, res);
886 error = explore_numeric(pai, hostname2, servname, res);
905 get_name(addr, afd, res, numaddr, pai, servname) in get_name() argument
911 const char *servname;
927 GET_PORT(cur, servname);
942 GET_PORT(cur, servname);
949 GET_PORT(cur, servname);
1016 get_portmatch(ai, servname) in get_portmatch() argument
1018 const char *servname;
1022 return get_port((struct addrinfo *)ai, servname, 1);
1026 get_port(ai, servname, matchonly) in get_port() argument
1028 const char *servname;
1036 if (servname == NULL)
1062 if (str_isnumber(servname)) {
1065 port = htons(atoi(servname));
1081 if ((sp = getservbyname(servname, proto)) == NULL)