Home
last modified time | relevance | path

Searched refs:ns (Results 1 – 12 of 12) sorted by relevance

/bionic/libc/dns/resolv/
Dres_stats.c170 for (int ns = 0; ns < nscount; ns++) { in android_net_res_stats_get_usable_servers() local
171 bool usable = _res_stats_usable_server(params, &stats[ns]); in android_net_res_stats_get_usable_servers()
175 usable_servers[ns] = usable; in android_net_res_stats_get_usable_servers()
180 for (int ns = 0; ns < nscount; ns++) { in android_net_res_stats_get_usable_servers() local
181 usable_servers[ns] = true; in android_net_res_stats_get_usable_servers()
Dres_send.c235 int ns; in res_ourserver_p() local
240 for (ns = 0; ns < statp->nscount; ns++) { in res_ourserver_p()
241 srv = (struct sockaddr_in *)(void *)get_nsaddr(statp, (size_t)ns); in res_ourserver_p()
253 for (ns = 0; ns < statp->nscount; ns++) { in res_ourserver_p()
254 srv6 = (struct sockaddr_in6 *)(void *)get_nsaddr(statp, (size_t)ns); in res_ourserver_p()
363 int gotsomewhere, terrno, try, v_circuit, resplen, ns, n; in res_nsend() local
410 for (ns = 0; ns < statp->nscount; ns++) { in res_nsend()
411 if (statp->nsaddr_list[ns].sin_family && in res_nsend()
412 !sock_eq((struct sockaddr *)(void *)&statp->nsaddr_list[ns], in res_nsend()
413 (struct sockaddr *)(void *)&EXT(statp).ext->nsaddrs[ns])) { in res_nsend()
[all …]
Dres_init.c630 int ns; in res_nclose() local
637 for (ns = 0; ns < statp->_u._ext.nscount; ns++) { in res_nclose()
638 if (statp->_u._ext.nssocks[ns] != -1) { in res_nclose()
639 (void) close(statp->_u._ext.nssocks[ns]); in res_nclose()
640 statp->_u._ext.nssocks[ns] = -1; in res_nclose()
Dres_cache.c2273 _resolv_cache_add_resolver_stats_sample( unsigned netid, int revision_id, int ns, in _resolv_cache_add_resolver_stats_sample() argument
2282 _res_cache_add_stats_sample_locked(&info->nsstats[ns], sample, max_samples); in _resolv_cache_add_resolver_stats_sample()
/bionic/linker/
Dlinker_main.h48 soinfo* soinfo_alloc(android_namespace_t* ns, const char* name,
52 bool find_libraries(android_namespace_t* ns,
Dlinker.cpp156 static bool maybe_accessible_via_namespace_links(android_namespace_t* ns, const char* name) { in maybe_accessible_via_namespace_links() argument
158 for (auto& ns_link : ns->linked_namespaces()) { in maybe_accessible_via_namespace_links()
169 static bool is_greylisted(android_namespace_t* ns, const char* name, const soinfo* needed_by) { in is_greylisted() argument
198 return !maybe_accessible_via_namespace_links(ns, name); in is_greylisted()
279 soinfo* soinfo_alloc(android_namespace_t* ns, const char* name, in soinfo_alloc() argument
287 TRACE("name %s: allocating soinfo for ns=%p", name, ns); in soinfo_alloc()
289 soinfo* si = new (g_soinfo_allocator.alloc()) soinfo(ns, name, file_stat, in soinfo_alloc()
295 ns->add_soinfo(si); in soinfo_alloc()
736 static const ElfW(Sym)* dlsym_handle_lookup(android_namespace_t* ns, in ElfW()
751 if (!ns->is_accessible(current_soinfo)) { in ElfW()
[all …]
Dld.config.format.md80 namespace.ns.links = default
81 namespace.ns.link.default.shared_libs = libc.so:libdl.so:libm.so:libstdc++.so
Dlinker_soinfo.cpp47 soinfo::soinfo(android_namespace_t* ns, const char* realpath, in soinfo() argument
66 this->primary_namespace_ = ns; in soinfo()
469 secondary_namespaces_.for_each([&](android_namespace_t* ns) { in remove_all_links() argument
470 ns->remove_soinfo(this); in remove_all_links()
Dlinker_soinfo.h190 soinfo(android_namespace_t* ns, const char* name, const struct stat* file_stat,
/bionic/linker/tests/
Dlinker_config_test.cpp157 for (auto& ns : ns_configs) { in run_linker_config_smoke_test() local
158 std::string ns_name = ns->name(); in run_linker_config_smoke_test()
160 << "unexpected ns name: " << ns->name(); in run_linker_config_smoke_test()
163 ns_system = ns.get(); in run_linker_config_smoke_test()
/bionic/tests/
Ddlext_test.cpp835 android_namespace_t* ns = in TEST() local
843 ASSERT_DL_NOTNULL(ns); in TEST()
845 ASSERT_TRUE(android_link_namespaces(ns, nullptr, g_core_shared_libs.c_str())) << dlerror(); in TEST()
854 extinfo.library_namespace = ns; in TEST()
882 android_namespace_t* ns = in TEST() local
890 ASSERT_DL_NOTNULL(ns); in TEST()
892 ASSERT_TRUE(android_link_namespaces(ns, nullptr, g_core_shared_libs.c_str())) << dlerror(); in TEST()
902 extinfo.library_namespace = ns; in TEST()
921 android_namespace_t* ns = in TEST() local
929 ASSERT_TRUE(android_link_namespaces(ns, nullptr, g_core_shared_libs.c_str())) << dlerror(); in TEST()
[all …]
/bionic/libc/dns/include/
Dresolv_private.h219 _resolv_cache_add_resolver_stats_sample( unsigned netid, int revision_id, int ns,