Home
last modified time | relevance | path

Searched refs:ns_dsos (Results 1 – 3 of 3) sorted by relevance

/third_party/musl/porting/linux/user/ldso/
Dnamespace.c123 nst->ns_dsos = dsolist_alloc(); in ns_alloc()
124 if (!nst->ns_dsos) { in ns_alloc()
137 if (ns->ns_dsos) { in ns_free()
138 internal_free(ns->ns_dsos); in ns_free()
139 ns->ns_dsos = NULL; in ns_free()
169 if (!ns->ns_dsos) { in ns_add_dso()
170 ns->ns_dsos = dsolist_alloc(); in ns_add_dso()
172 if (!ns->ns_dsos) { in ns_add_dso()
175 if (ns->ns_dsos->num == ns->ns_dsos->size) { in ns_add_dso()
177 dsolist_realloc(ns->ns_dsos); in ns_add_dso()
[all …]
Dnamespace.h47 dsolist *ns_dsos; /* dso list in this namespace */ member
Ddynlink.c1709 for (size_t i = 0; i < ns->ns_dsos->num; i++){ in search_dso_by_name()
1710 struct dso *p = ns->ns_dsos->dsos[i]; in search_dso_by_name()
1721 for (size_t i = 0; i < ns->ns_dsos->num; i++){ in search_dso_by_fstat()
1722 struct dso *p = ns->ns_dsos->dsos[i]; in search_dso_by_fstat()
3375 ns_add_dso(ns, get_default_ns()->ns_dsos->dsos[0]); /* add main app to this namespace*/ in dlns_create2()
3433 if (!ns||!ns->ns_dsos) return; in dlclose_ns()
3434 for (size_t i=0; i<ns->ns_dsos->num; i++) { in dlclose_ns()
3435 if (p == ns->ns_dsos->dsos[i]) { in dlclose_ns()
3436 for (size_t j=i+1; j<ns->ns_dsos->num; j++) { in dlclose_ns()
3437 ns->ns_dsos->dsos[j-1] = ns->ns_dsos->dsos[j]; in dlclose_ns()
[all …]