Lines Matching refs:handle
44 static void *dlsymIntern(void *handle, const char *symbol);
117 void *dlsymIntern(void *handle, const char *symbol)
120 /* If the handle is -1, if is the app global context */
121 if (handle == (void *)-1)
130 /* Now see if the handle is a struch mach_header* or not, use NSLookupSymbol in image
135 if ((((struct mach_header *)handle)->magic == MH_MAGIC) ||
136 (((struct mach_header *)handle)->magic == MH_CIGAM))
138 if (NSIsSymbolNameDefinedInImage((struct mach_header *)handle, symbol))
140 nssym = NSLookupSymbolInImage((struct mach_header *)handle,
149 nssym = NSLookupSymbolInModule(handle, symbol);
165 int dlclose(void *handle)
167 if ((((struct mach_header *)handle)->magic == MH_MAGIC) ||
168 (((struct mach_header *)handle)->magic == MH_CIGAM))
173 if (!NSUnLinkModule(handle, 0))
175 error(0, "unable to unlink module %s", NSNameOfModule(handle));
183 void *dlsym(void *handle, const char *symbol)
193 value = dlsymIntern(handle, undersym);
201 value = dlsymIntern(handle, malloc_sym);