Lines Matching refs:dlopen

19 	void* handle = dlopen(name, mode);
22 t_error("dlopen(name=%s, mode=%d) failed: %s\n", name, mode, dlerror());
50 void* handle1 = dlopen(SO_LOAD_BY_LOCAL, RTLD_LOCAL);
52 t_error("dlopen(name=%s, mode=%d) failed: %s\n", SO_LOAD_BY_LOCAL, RTLD_LOCAL, dlerror());
64 void* handle2 = dlopen(SO_LOAD_BY_GLOBAL, RTLD_GLOBAL);
66 t_error("dlopen(name=%s, mode=%d) failed: %s\n", SO_LOAD_BY_GLOBAL, RTLD_LOCAL, dlerror());
80 void* handle1 = dlopen(SO_FOR_NO_DELETE, RTLD_NODELETE);
83 t_error("dlopen(name=%s, mode=RTLD_NODELETE) failed: %s\n", SO_FOR_NO_DELETE, dlerror());
89 void* handle2 = dlopen(SO_FOR_NO_DELETE, RTLD_NOLOAD);
91 t_error("dlopen(name=%s, mode=RTLD_NOLOAD) failed: %s\n", SO_FOR_NO_DELETE, dlerror());
94 t_error("dlopen %s by RTLD_NODELETE but get different handle when dlopen by RTLD_NOLOAD again.\n", SO_FOR_NO_DELETE);
100 void* handle = dlopen(SO_FOR_DLOPEN, RTLD_LOCAL);
102 t_error("dlopen(name=%s, mode=%d) failed: %s\n", SO_FOR_DLOPEN, RTLD_LOCAL, dlerror());
104 handle = dlopen(SO_FOR_DLOPEN, RTLD_LOCAL);
106 t_error("dlopen(name=%s, mode=%d) failed: %s\n", SO_FOR_DLOPEN, RTLD_LOCAL, dlerror());
112 handle = dlopen(SO_FOR_DLOPEN, RTLD_NOLOAD);
114 t_error("dlopen(name=%s, mode=%d) failed: %s\n", SO_FOR_DLOPEN, RTLD_LOCAL, dlerror());
119 // It need to do one more dlclose because call dlopen by RTLD_NOLOAD add reference counting.
123 // dlopen and dlclose call counts match so the lib should not exist in memory.
124 handle = dlopen(SO_FOR_DLOPEN, RTLD_NOLOAD);
126 t_error("dlopen(name=%s, mode=%d) failed: %s\n", SO_FOR_DLOPEN, RTLD_LOCAL, dlerror());
136 void* handle = dlopen(DLOPEN_WEAK, RTLD_LAZY | RTLD_GLOBAL);
138 t_error("dlopen(name=%s, mode=%d) failed: %s\n", DLOPEN_WEAK, RTLD_LAZY | RTLD_GLOBAL, dlerror());
150 void *handle = dlopen(SO_CLOSE_RECURSIVE_OPEN_SO, RTLD_LAZY | RTLD_LOCAL);
152 t_error("dlopen(name=%s, mode=%d) failed: %s\n", SO_CLOSE_RECURSIVE_OPEN_SO, RTLD_LAZY | RTLD_LOCAL, dlerror());
184 void *global_handler = dlopen(DLOPEN_GLOBAL, RTLD_GLOBAL);
186 t_error("dlopen(name=%s, mode=%d) failed: %s\n", DLOPEN_GLOBAL, RTLD_GLOBAL, dlerror());
194 void *local_handler = dlopen(DLOPEN_LOCAL, RTLD_LOCAL);
196 t_error("dlopen(name=%s, mode=%d) failed: %s\n", DLOPEN_LOCAL, RTLD_LOCAL, dlerror());
219 handle = dlopen(DLCLOSE_EXIT_DEAD_LOCK, RTLD_GLOBAL);
221 t_error("dlclose_exit_test dlopen %s failed: %s", DLCLOSE_EXIT_DEAD_LOCK, dlerror());
241 void* handle = dlopen(DLCLOSE_WITH_TLS, RTLD_GLOBAL);
243 t_error("dlopen(name=%s, mode=%d) failed: %s\n", DLCLOSE_WITH_TLS, RTLD_GLOBAL, dlerror());
262 h = dlopen(buf, RTLD_LAZY|RTLD_LOCAL);
264 t_error("dlopen %s failed: %s\n", buf, dlerror());
277 g = dlopen(0, RTLD_LAZY|RTLD_LOCAL);
279 t_error("dlopen 0 failed: %s\n", dlerror());
288 h = dlopen(buf, RTLD_LAZY|RTLD_GLOBAL);