Lines Matching refs:rs
1540 res_static rs = __res_get_static(); /* Use res_static to provide thread-safety. */ in gethostbyname() local
1542 gethostbyname_r(name, &rs->host, rs->hostbuf, sizeof(rs->hostbuf), &result, &h_errno); in gethostbyname()
1550 res_static rs = __res_get_static(); /* Use res_static to provide thread-safety. */ in gethostbyname2() local
1552 gethostbyname2_r(name, af, &rs->host, rs->hostbuf, sizeof(rs->hostbuf), &result, &h_errno); in gethostbyname2()
1586 res_static rs = __res_get_static(); /* Use res_static to provide thread-safety. */ in android_gethostbynamefornetcontext() local
1587 hp = gethostbyname_internal(name, af, res, &rs->host, rs->hostbuf, sizeof(rs->hostbuf), in android_gethostbynamefornetcontext()
1617 res_static rs = __res_get_static(); /* Use res_static to provide thread-safety. */ in android_gethostbyaddrfornetcontext_proxy() local
1618 return android_gethostbyaddrfornetcontext_proxy_internal(addr, len, af, &rs->host, rs->hostbuf, in android_gethostbyaddrfornetcontext_proxy()
1619 sizeof(rs->hostbuf), &h_errno, netcontext); in android_gethostbyaddrfornetcontext_proxy()
1625 res_static rs = __res_get_static(); in gethostent() local
1626 if (!rs->hostf) { in gethostent()
1627 sethostent_r(&rs->hostf); in gethostent()
1628 if (!rs->hostf) { in gethostent()
1633 memset(&rs->host, 0, sizeof(rs->host)); in gethostent()
1634 return netbsd_gethostent_r(rs->hostf, &rs->host, rs->hostbuf, sizeof(rs->hostbuf), &h_errno); in gethostent()