Lines Matching refs:dso
77 static int dlfcn_load(DSO *dso);
78 static int dlfcn_unload(DSO *dso);
79 static void *dlfcn_bind_var(DSO *dso, const char *symname);
80 static DSO_FUNC_TYPE dlfcn_bind_func(DSO *dso, const char *symname);
82 static int dlfcn_unbind(DSO *dso, char *symname, void *symptr);
83 static int dlfcn_init(DSO *dso);
84 static int dlfcn_finish(DSO *dso);
85 static long dlfcn_ctrl(DSO *dso, int cmd, long larg, void *parg);
87 static char *dlfcn_name_converter(DSO *dso, const char *filename);
88 static char *dlfcn_merger(DSO *dso, const char *filespec1,
142 static int dlfcn_load(DSO *dso) in dlfcn_load() argument
146 char *filename = DSO_convert_filename(dso, NULL); in dlfcn_load()
156 if (dso->flags & DSO_FLAG_GLOBAL_SYMBOLS) in dlfcn_load()
166 if(!sk_push(dso->meth_data, (char *)ptr)) in dlfcn_load()
172 dso->loaded_filename = filename; in dlfcn_load()
183 static int dlfcn_unload(DSO *dso) in dlfcn_unload() argument
186 if(dso == NULL) in dlfcn_unload()
191 if(sk_num(dso->meth_data) < 1) in dlfcn_unload()
193 ptr = (void *)sk_pop(dso->meth_data); in dlfcn_unload()
199 sk_push(dso->meth_data, (char *)ptr); in dlfcn_unload()
207 static void *dlfcn_bind_var(DSO *dso, const char *symname) in dlfcn_bind_var() argument
211 if((dso == NULL) || (symname == NULL)) in dlfcn_bind_var()
216 if(sk_num(dso->meth_data) < 1) in dlfcn_bind_var()
221 ptr = (void *)sk_value(dso->meth_data, sk_num(dso->meth_data) - 1); in dlfcn_bind_var()
237 static DSO_FUNC_TYPE dlfcn_bind_func(DSO *dso, const char *symname) in dlfcn_bind_func() argument
242 if((dso == NULL) || (symname == NULL)) in dlfcn_bind_func()
247 if(sk_num(dso->meth_data) < 1) in dlfcn_bind_func()
252 ptr = (void *)sk_value(dso->meth_data, sk_num(dso->meth_data) - 1); in dlfcn_bind_func()
268 static char *dlfcn_merger(DSO *dso, const char *filespec1, in dlfcn_merger() argument
335 static char *dlfcn_name_converter(DSO *dso, const char *filename) in dlfcn_name_converter() argument
347 if ((DSO_flags(dso) & DSO_FLAG_NAME_TRANSLATION_EXT_ONLY) == 0) in dlfcn_name_converter()
359 if ((DSO_flags(dso) & DSO_FLAG_NAME_TRANSLATION_EXT_ONLY) == 0) in dlfcn_name_converter()