Lines Matching refs:_handleCookie

906                 if (!_mainBundle->_handleCookie) {
907 _mainBundle->_handleCookie = dlopen(NULL, RTLD_NOLOAD | RTLD_FIRST);
909 printf("main bundle %p getting handle %p\n", _mainBundle, _mainBundle->_handleCookie);
1186 bundle->_handleCookie = NULL;
3202 if (bundle->_handleCookie) _CFBundleDlfcnUnload(bundle);
3209 if (bundle->_handleCookie && _CFExecutableLinkedOnOrAfter(CFSystemVersionLeopard)) _CFBundleDlfcnUnload(bundle);
3220 if (bundle->_handleCookie) _CFBundleDlfcnUnload(bundle);
3320 if (bundle->_handleCookie) return _CFBundleDlfcnGetSymbolByName(bundle, funcName);
3333 if (bundle->_handleCookie) return _CFBundleDlfcnGetSymbolByName(bundle, funcName);
3353 if (bundle->_handleCookie) fp = _CFBundleDlfcnGetSymbolByNameWithSearch(bundle, funcName, true);
3361 if (bundle->_handleCookie) fp = _CFBundleDlfcnGetSymbolByNameWithSearch(bundle, funcName, true);
3398 if (bundle->_handleCookie) dp = _CFBundleDlfcnGetSymbolByName(bundle, symbolName);
3411 if (bundle->_handleCookie) dp = _CFBundleDlfcnGetSymbolByName(bundle, symbolName);
3581 if (!bundle->_isLoaded) printf("ensure bundle %p set loaded fallback, handle %p image %p conn %p\n", bundle, bundle->_handleCookie, bundle->_imageCookie, bundle->_connectionCookie);
4217 printf("dyld unload bundle %p, handle %p module %p image %p\n", bundle, bundle->_handleCookie, bundle->_moduleCookie, bundle->_imageCookie);
4223 bundle->_connectionCookie = bundle->_handleCookie = NULL;
4265 printf("bundle %p handle %p module %p image %p dyld returns symbol %p for %s\n", bundle, bundle->_handleCookie, bundle->_moduleCookie, bundle->_imageCookie, result, buff + 1);
4285 if (!bundle->_handleCookie) {
4286 bundle->_handleCookie = handle;
4288 printf("dlfcn check load bundle %p, dlopen of %s mode 0x%x getting handle %p\n", bundle, buff, mode, bundle->_handleCookie);
4369 if (cookie && cookie == bundle->_handleCookie) {
4370 // during the call to dlopen, arbitrary init routines may have run and caused bundle->_handleCookie to be set, in which case proper reference counting requires that reference to be released with dlclose
4374 dlclose(bundle->_handleCookie);
4376 bundle->_handleCookie = cookie;
4377 if (bundle->_handleCookie) {
4424 if (cookie && cookie == bundle->_handleCookie) {
4425 // during the call to dlopen, arbitrary init routines may have run and caused bundle->_handleCookie to be set, in which case proper reference counting requires that reference to be released with dlclose
4429 dlclose(bundle->_handleCookie);
4431 bundle->_handleCookie = cookie;
4432 if (bundle->_handleCookie) {
4471 printf("dlfcn unload bundle %p, handle %p module %p image %p\n", bundle, bundle->_handleCookie, bundle->_moduleCookie, bundle->_imageCookie);
4473 if (0 != dlclose(bundle->_handleCookie)) {
4476 bundle->_connectionCookie = bundle->_handleCookie = NULL;
4492 result = dlsym(bundle->_handleCookie, buff);
4498 printf("bundle %p handle %p module %p image %p dlsym returns symbol %p for %s\n", bundle, bundle->_handleCookie, bundle->_moduleCookie, bundle->_imageCookie, result, buff);