Changeset 4b63316 in mainline
- Timestamp:
- 2013-11-01T22:23:55Z (11 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 6749feb
- Parents:
- a1314ce9
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/rtld/module.c
ra1314ce9 r4b63316 93 93 module_t *module_find(const char *name) 94 94 { 95 module_t *m;96 95 const char *p, *soname; 97 96 … … 107 106 108 107 /* Traverse list of all modules. Not extremely fast, but simple */ 109 list_foreach(runtime_env->modules, cur) { 110 DPRINTF("cur = %p\n", cur); 111 m = list_get_instance(cur, module_t, modules_link); 108 list_foreach(runtime_env->modules, modules_link, module_t, m) { 109 DPRINTF("m = %p\n", m); 112 110 if (str_cmp(m->dyn.soname, soname) == 0) { 113 111 return m; /* Found */ … … 245 243 void modules_process_relocs(module_t *start) 246 244 { 247 module_t *m; 248 249 list_foreach(runtime_env->modules, cur) { 250 m = list_get_instance(cur, module_t, modules_link); 251 245 list_foreach(runtime_env->modules, modules_link, module_t, m) { 252 246 /* Skip rtld, since it has already been processed */ 253 247 if (m != &runtime_env->rtld) { … … 261 255 void modules_untag(void) 262 256 { 263 module_t *m; 264 265 list_foreach(runtime_env->modules, cur) { 266 m = list_get_instance(cur, module_t, modules_link); 257 list_foreach(runtime_env->modules, modules_link, module_t, m) { 267 258 m->bfs_tag = false; 268 259 }
Note:
See TracChangeset
for help on using the changeset viewer.