Lines Matching refs:herrno
143 const struct addrinfo*, int* herrno);
155 static int res_queryN(const char* name, res_target* target, res_state res, int* herrno);
156 static int res_searchN(const char* name, res_target* target, res_state res, int* herrno);
158 int* herrno);
836 *herrno = NO_RECOVERY; \
842 int qtype, const struct addrinfo* pai, int* herrno) { in getanswer() argument
887 *herrno = NO_RECOVERY; in getanswer()
892 *herrno = NO_RECOVERY; in getanswer()
903 *herrno = NO_RECOVERY; in getanswer()
1019 *herrno = NETDB_SUCCESS; in getanswer()
1023 *herrno = NO_RECOVERY; in getanswer()
1607 int herrno; member
1640 .herrno = NO_RECOVERY, in doQuery()
1673 static int res_queryN_parallel(const char* name, res_target* target, res_state res, int* herrno) { in res_queryN_parallel() argument
1694 if (r.herrno == NO_RECOVERY) { in res_queryN_parallel()
1695 *herrno = r.herrno; in res_queryN_parallel()
1704 *herrno = getHerrnoFromRcode(rcode); in res_queryN_parallel()
1711 static int res_queryN_wrapper(const char* name, res_target* target, res_state res, int* herrno) { in res_queryN_wrapper() argument
1714 if (parallel_lookup) return res_queryN_parallel(name, target, res, herrno); in res_queryN_wrapper()
1716 return res_queryN(name, target, res, herrno); in res_queryN_wrapper()
1729 static int res_queryN(const char* name, res_target* target, res_state res, int* herrno) { in res_queryN() argument
1764 *herrno = NO_RECOVERY; in res_queryN()
1793 *herrno = getHerrnoFromRcode(rcode); in res_queryN()
1805 static int res_searchN(const char* name, res_target* target, res_state res, int* herrno) { in res_searchN() argument
1818 *herrno = HOST_NOT_FOUND; /* default, if we never query */ in res_searchN()
1829 ret = res_querydomainN(name, NULL, target, res, herrno); in res_searchN()
1831 saved_herrno = *herrno; in res_searchN()
1850 ret = res_querydomainN(name, domain.c_str(), target, res, herrno); in res_searchN()
1867 *herrno = TRY_AGAIN; in res_searchN()
1871 switch (*herrno) { in res_searchN()
1898 ret = res_querydomainN(name, NULL, target, res, herrno); in res_searchN()
1911 *herrno = saved_herrno; in res_searchN()
1913 *herrno = NO_DATA; in res_searchN()
1915 *herrno = TRY_AGAIN; in res_searchN()
1922 int* herrno) { in res_querydomainN() argument
1933 *herrno = NO_RECOVERY; in res_querydomainN()
1945 *herrno = NO_RECOVERY; in res_querydomainN()
1950 return res_queryN_wrapper(longname, target, res, herrno); in res_querydomainN()