Lines Matching defs:handle
19 void* handle = dlopen(name, mode);
21 if(!handle)
24 if(dlclose(handle))
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);
101 if(!handle)
104 handle = dlopen(SO_FOR_DLOPEN, RTLD_LOCAL);
105 if(!handle)
108 if(dlclose(handle))
112 handle = dlopen(SO_FOR_DLOPEN, RTLD_NOLOAD);
113 if(!handle)
116 if(dlclose(handle))
120 if(dlclose(handle))
124 handle = dlopen(SO_FOR_DLOPEN, RTLD_NOLOAD);
125 if(handle) {
127 dlclose(handle);
136 void* handle = dlopen(DLOPEN_WEAK, RTLD_LAZY | RTLD_GLOBAL);
137 if (!handle)
139 func_ptr fn = (func_ptr)dlsym(handle, "test_number");
145 dlclose(handle);
150 void *handle = dlopen(SO_CLOSE_RECURSIVE_OPEN_SO, RTLD_LAZY | RTLD_LOCAL);
151 if (!handle)
154 /* close handle normally, if libc doesn't support close .so file recursivly
157 dlclose(handle);
212 void* handle;
219 handle = dlopen(DLCLOSE_EXIT_DEAD_LOCK, RTLD_GLOBAL);
220 if (!handle) {
241 void* handle = dlopen(DLCLOSE_WITH_TLS, RTLD_GLOBAL);
242 if (!handle) {
245 functype func = (functype)dlsym(handle, "foo_ctor");
247 dlclose(handle);