jags
dlsymdlopen4.3.0
15 / 1147 files match, 10 filtered matches.
- src/terminal/parser.cc
- libltdl/ltdl.h
- libltdl/ltdl.c
- libltdl/loaders/dyld.c
- libltdl/loaders/loadlibrary.c
- libltdl/loaders/shl_load.c
- libltdl/loaders/load_add_on.c
- libltdl/loaders/dld_link.c
- libltdl/loaders/preopen.c
- libltdl/loaders/dlopen.c
src/terminal/parser.cc
3480 | }
3481 |
3482 | /*
3483 | pt2Func load_base = (pt2Func)(lt_dlsym(base, "load"));
3484 | if (load_base == NULL) {
3485 | std::cout << lt_dlerror() << std::endl;
libltdl/ltdl.h
77 | LT_SCOPE lt_dlhandle lt_dlopenext (const char *filename);
78 | LT_SCOPE lt_dlhandle lt_dlopenadvise (const char *filename,
79 | lt_dladvise advise);
80 | LT_SCOPE void * lt_dlsym (lt_dlhandle handle, const char *name);
81 | LT_SCOPE const char *lt_dlerror (void);
82 | LT_SCOPE int lt_dlclose (lt_dlhandle handle);
91 | typedef struct {
92 | const char *name;
93 | void *address;
94 | } lt_dlsymlist;
95 |
96 | typedef int lt_dlpreload_callback_func (lt_dlhandle handle);
97 |
98 | LT_SCOPE int lt_dlpreload (const lt_dlsymlist *preloaded);
99 | LT_SCOPE int lt_dlpreload_default (const lt_dlsymlist *preloaded);
100 | LT_SCOPE int lt_dlpreload_open (const char *originator,
101 | lt_dlpreload_callback_func *func);
102 |
103 | #define lt_preloaded_symbols lt__PROGRAM__LTX_preloaded_symbols
104 | /* Ensure C linkage. */
105 | extern LT_DLSYM_CONST lt_dlsymlist lt__PROGRAM__LTX_preloaded_symbols[];
106 |
107 | #define LTDL_SET_PRELOADED_SYMBOLS() \
libltdl/ltdl.c
176 | static int
177 | loader_init_callback (lt_dlhandle handle)
178 | {
179 | lt_get_vtable *vtable_func = (lt_get_vtable *) lt_dlsym (handle, "get_vtable");
180 | return loader_init (vtable_func, 0);
181 | }
217 | LT_SCOPE const lt_dlvtable * get_vtable (lt_user_data data);
218 | LT_END_C_DECLS
219 | #ifdef HAVE_LIBDLLOADER
220 | extern LT_DLSYM_CONST lt_dlsymlist preloaded_symbols[];
221 | #endif
222 |
2009 | }
2010 |
2011 | void *
2012 | lt_dlsym (lt_dlhandle place, const char *symbol)
2013 | {
2014 | size_t lensym;
libltdl/loaders/dyld.c
34 | /* Use the preprocessor to rename non-static symbols to avoid namespace
35 | collisions when the loader code is statically linked into libltdl.
36 | Use the "<module_name>_LTX_" prefix so that the symbol addresses can
37 | be fetched from the preloaded symbol list by lt_dlsym(): */
38 | #define get_vtable dyld_LTX_get_vtable
39 |
libltdl/loaders/loadlibrary.c
38 | /* Use the preprocessor to rename non-static symbols to avoid namespace
39 | collisions when the loader code is statically linked into libltdl.
40 | Use the "<module_name>_LTX_" prefix so that the symbol addresses can
41 | be fetched from the preloaded symbol list by lt_dlsym(): */
42 | #define get_vtable loadlibrary_LTX_get_vtable
43 |
libltdl/loaders/shl_load.c
34 | /* Use the preprocessor to rename non-static symbols to avoid namespace
35 | collisions when the loader code is statically linked into libltdl.
36 | Use the "<module_name>_LTX_" prefix so that the symbol addresses can
37 | be fetched from the preloaded symbol list by lt_dlsym(): */
38 | #define get_vtable shl_load_LTX_get_vtable
39 |
libltdl/loaders/load_add_on.c
34 | /* Use the preprocessor to rename non-static symbols to avoid namespace
35 | collisions when the loader code is statically linked into libltdl.
36 | Use the "<module_name>_LTX_" prefix so that the symbol addresses can
37 | be fetched from the preloaded symbol list by lt_dlsym(): */
38 | #define get_vtable load_add_on_LTX_get_vtable
39 |
libltdl/loaders/dld_link.c
34 | /* Use the preprocessor to rename non-static symbols to avoid namespace
35 | collisions when the loader code is statically linked into libltdl.
36 | Use the "<module_name>_LTX_" prefix so that the symbol addresses can
37 | be fetched from the preloaded symbol list by lt_dlsym(): */
38 | #define get_vtable dld_link_LTX_get_vtable
39 |
libltdl/loaders/preopen.c
34 | /* Use the preprocessor to rename non-static symbols to avoid namespace
35 | collisions when the loader code is statically linked into libltdl.
36 | Use the "<module_name>_LTX_" prefix so that the symbol addresses can
37 | be fetched from the preloaded symbol list by lt_dlsym(): */
38 | #define get_vtable preopen_LTX_get_vtable
39 |
96 | typedef struct symlist_chain
97 | {
98 | struct symlist_chain *next;
99 | const lt_dlsymlist *symlist;
100 | } symlist_chain;
101 |
102 |
103 | static int add_symlist (const lt_dlsymlist *symlist);
104 | static int free_symlists (void);
105 |
107 | static symlist_chain *preloaded_symlists = 0;
108 |
109 | /* A symbol list preloaded before lt_init() was called. */
110 | static const lt_dlsymlist *default_preloaded_symbols = 0;
111 |
112 |
164 |
165 | for (lists = preloaded_symlists; lists; lists = lists->next)
166 | {
167 | const lt_dlsymlist *symbol;
168 | for (symbol= lists->symlist; symbol->name; ++symbol)
169 | {
174 | In this case we pretend that we never saw the module and
175 | hope that some other loader will be able to load the module
176 | and have access to its symbols */
177 | const lt_dlsymlist *next_symbol = symbol +1;
178 | if (next_symbol->address && next_symbol->name)
179 | {
207 | static void *
208 | vm_sym (lt_user_data loader_data LT__UNUSED, lt_module module, const char *name)
209 | {
210 | lt_dlsymlist *symbol = (lt_dlsymlist*) module;
211 |
212 | if (symbol[1].name && STREQ (symbol[1].name, "@INIT@"))
257 |
258 | /* Add a new symbol list to the global chain. */
259 | static int
260 | add_symlist (const lt_dlsymlist *symlist)
261 | {
262 | symlist_chain *lists;
301 |
302 | /* Save a default symbol list for later. */
303 | int
304 | lt_dlpreload_default (const lt_dlsymlist *preloaded)
305 | {
306 | default_preloaded_symbols = preloaded;
311 | /* Add a symbol list to the global chain, or with a NULL argument,
312 | revert to just the default list. */
313 | int
314 | lt_dlpreload (const lt_dlsymlist *preloaded)
315 | {
316 | int errors = 0;
350 | if ((originator && STREQ (list->symlist->name, originator))
351 | || (!originator && STREQ (list->symlist->name, "@PROGRAM@")))
352 | {
353 | const lt_dlsymlist *symbol;
354 | unsigned int idx = 0;
355 |
libltdl/loaders/dlopen.c
34 | /* Use the preprocessor to rename non-static symbols to avoid namespace
35 | collisions when the loader code is statically linked into libltdl.
36 | Use the "<module_name>_LTX_" prefix so that the symbol addresses can
37 | be fetched from the preloaded symbol list by lt_dlsym(): */
38 | #define get_vtable dlopen_LTX_get_vtable
39 |
263 | static void *
264 | vm_sym (lt_user_data loader_data LT__UNUSED, lt_module module, const char *name)
265 | {
266 | void *address = dlsym (module, name);
267 |
268 | if (!address)