Lines Matching refs:dll
69 void* dll; in dlopen() local
75 if (!(dll = (void*)shl_load(path, mode, 0L))) in dlopen()
77 return dll; in dlopen()
80 extern int dlclose(void* dll) in dlclose() argument
85 extern void* dlsym(void* dll, const char* name) in dlsym() argument
90 handle = dll == (void*)&all ? (shl_t)0 : (shl_t)dll; in dlsym()
135 void* dll; in dlopen() local
137 if (!(dll = (void*)load((char*)path, mode, getenv("LIBPATH")))) in dlopen()
139 return dll; in dlopen()
142 extern int dlclose(void* dll) in dlclose() argument
279 void* dll; in dlopen() local
282 if (!(dll = (void*)dllload(path))) in dlopen()
284 return dll; in dlopen()
287 extern int dlclose(void* dll) in dlclose() argument
365 Dll_t* dll; in dlopen() local
382 dll = &global; in dlopen()
383 else if (!(dll = newof(0, Dll_t, 1, strlen(path)))) in dlopen()
393 dll->module = NSLinkModule(image, path, (mode & RTLD_LAZY) ? 0 : NSLINKMODULE_OPTION_BINDNOW); in dlopen()
395 if (!dll->module) in dlopen()
397 free(dll); in dlopen()
402 dll->image = NSAddImage(path, 0); in dlopen()
403 if (!dll->image) in dlopen()
405 free(dll); in dlopen()
410 free(dll); in dlopen()
413 strcpy(dll->path, path); in dlopen()
414 dll->magic = DL_MAGIC; in dlopen()
416 return (void*)dll; in dlopen()
421 Dll_t* dll = (Dll_t*)handle; in dlclose() local
423 if (!dll || dll == DL_NEXT || dll->magic != DL_MAGIC) in dlclose()
428 if (dll->module) in dlclose()
429 NSUnLinkModule(dll->module, 0); in dlclose()
430 free(dll); in dlclose()
435 lookup(Dll_t* dll, const char* name) in lookup() argument
440 if (dll == DL_NEXT) in lookup()
446 else if (dll->module) in lookup()
447 address = NSLookupSymbolInModule(dll->module, name); in lookup()
448 else if (dll->image) in lookup()
450 if (!NSIsSymbolNameDefinedInImage(dll->image, name)) in lookup()
452 address = NSLookupSymbolInImage(dll->image, name, 0); in lookup()
467 Dll_t* dll = (Dll_t*)handle; in dlsym() local
471 if (!dll || dll != DL_NEXT && (dll->magic != DL_MAGIC || !dll->image && !dll->module)) in dlsym()
476 if (!(address = lookup(dll, name)) && name[0] != '_' && strlen(name) < (sizeof(buf) - 1)) in dlsym()
480 address = lookup(dll, buf); in dlsym()
484 dlmessage = dll == DL_NEXT ? e_cover : e_undefined; in dlsym()
512 extern int dlclose(void* dll) in dlclose() argument