Lines Matching refs:dll

67 		void*	dll;  in dlopen()  local
73 if (!(dll = (void*)shl_load(path, mode, 0L))) in dlopen()
75 return dll; in dlopen()
78 extern int dlclose(void* dll) in dlclose() argument
83 extern void* dlsym(void* dll, const char* name) in dlsym() argument
88 handle = dll == (void*)&all ? (shl_t)0 : (shl_t)dll; in dlsym()
133 void* dll; in dlopen() local
135 if (!(dll = (void*)load((char*)path, mode, getenv("LIBPATH")))) in dlopen()
137 return dll; in dlopen()
140 extern int dlclose(void* dll) in dlclose() argument
277 void* dll; in dlopen() local
280 if (!(dll = (void*)dllload(path))) in dlopen()
282 return dll; in dlopen()
285 extern int dlclose(void* dll) in dlclose() argument
363 Dll_t* dll; in dlopen() local
380 dll = &global; in dlopen()
381 else if (!(dll = newof(0, Dll_t, 1, strlen(path)))) in dlopen()
391 dll->module = NSLinkModule(image, path, (mode & RTLD_LAZY) ? 0 : NSLINKMODULE_OPTION_BINDNOW); in dlopen()
393 if (!dll->module) in dlopen()
395 free(dll); in dlopen()
400 dll->image = NSAddImage(path, 0); in dlopen()
401 if (!dll->image) in dlopen()
403 free(dll); in dlopen()
408 free(dll); in dlopen()
411 strcpy(dll->path, path); in dlopen()
412 dll->magic = DL_MAGIC; in dlopen()
414 return (void*)dll; in dlopen()
419 Dll_t* dll = (Dll_t*)handle; in dlclose() local
421 if (!dll || dll == DL_NEXT || dll->magic != DL_MAGIC) in dlclose()
426 if (dll->module) in dlclose()
427 NSUnLinkModule(dll->module, 0); in dlclose()
428 free(dll); in dlclose()
433 lookup(Dll_t* dll, const char* name) in lookup() argument
438 if (dll == DL_NEXT) in lookup()
444 else if (dll->module) in lookup()
445 address = NSLookupSymbolInModule(dll->module, name); in lookup()
446 else if (dll->image) in lookup()
448 if (!NSIsSymbolNameDefinedInImage(dll->image, name)) in lookup()
450 address = NSLookupSymbolInImage(dll->image, name, 0); in lookup()
465 Dll_t* dll = (Dll_t*)handle; in dlsym() local
469 if (!dll || dll != DL_NEXT && (dll->magic != DL_MAGIC || !dll->image && !dll->module)) in dlsym()
474 if (!(address = lookup(dll, name)) && name[0] != '_' && strlen(name) < (sizeof(buf) - 1)) in dlsym()
478 address = lookup(dll, buf); in dlsym()
482 dlmessage = dll == DL_NEXT ? e_cover : e_undefined; in dlsym()
510 extern int dlclose(void* dll) in dlclose() argument