qt

dlsymdlopen

5.9.1

144 / 178795 files match, 46 filtered matches.

qtbase/src/3rdparty/sqlite/sqlite3.c



35831 |   */
35832 |   void (*(*x)(void*,const char*))(void);
35833 |   UNUSED_PARAMETER(NotUsed);
35834 |   x = (void(*(*)(void*,const char*))(void))dlsym;
35835 |   return (*x)(p, zSym);
35836 | }


qtwebengine/src/3rdparty/chromium/third_party/webrtc/base/macwindowpicker.cc



53 |     return false;
54 |   }
55 | 
56 |   get_window_list_ = dlsym(lib_handle_, kWindowListCopyWindowInfo);
57 |   get_window_list_desc_ =
58 |       dlsym(lib_handle_, kWindowListCreateDescriptionFromArray);
59 |   if (get_window_list_ == NULL || get_window_list_desc_ == NULL) {
60 |     // The CGWindowListCopyWindowInfo and the


qtwebengine/src/3rdparty/chromium/third_party/webrtc/modules/audio_device/linux/alsasymboltable_linux.h



129 |   X(snd_config_delete_compound_members) \
130 |   X(snd_config_get_integer) \
131 |   X(snd_config_get_bool) \
132 |   X(snd_dlsym) \
133 |   X(snd_strerror) \
134 |   X(snd_lib_error) \


qtwebengine/src/3rdparty/chromium/third_party/skia/third_party/lua/src/loadlib.c



138 | 
139 | 
140 | static lua_CFunction ll_sym (lua_State *L, void *lib, const char *sym) {
141 |   lua_CFunction f = (lua_CFunction)dlsym(lib, sym);
142 |   if (f == NULL) lua_pushstring(L, dlerror());
143 |   return f;


qtwebengine/src/3rdparty/chromium/third_party/skia/platform_tools/android/third_party/cpufeatures/cpu-features.c



501 | 
502 |     uint32_t ret = 0;
503 |     getauxval_func_t* func = (getauxval_func_t*)
504 |             dlsym(libc_handle, "getauxval");
505 |     if (!func) {
506 |         D("Could not find getauxval() in C library\n");


qtwebengine/src/3rdparty/chromium/third_party/mesa/src/src/gallium/auxiliary/util/u_dl.c



58 |                          const char *procname)
59 | {
60 | #if defined(PIPE_OS_UNIX)
61 |    return (util_dl_proc) pointer_to_func(dlsym((void *)library, procname));
62 | #elif defined(PIPE_OS_WINDOWS)
63 |    return (util_dl_proc)GetProcAddress((HMODULE)library, procname);


qtwebengine/src/3rdparty/chromium/third_party/mesa/src/src/mesa/main/dlopen.h



63 |  * generated.
64 |  */
65 | static inline GenericFunc
66 | _mesa_dlsym(void *handle, const char *fname)
67 | {
68 |    union {
77 |    fname2[0] = '_';
78 |    strncpy(fname2 + 1, fname, 998);
79 |    fname2[999] = 0;
80 |    u.v = dlsym(handle, fname2);
81 | #elif defined(HAVE_DLOPEN)
82 |    u.v = dlsym(handle, fname);
83 | #elif defined(__MINGW32__)
84 |    u.v = (void *) GetProcAddress(handle, fname);


qtwebengine/src/3rdparty/chromium/third_party/mesa/src/src/mesa/main/texcompress_s3tc.c



120 |       else {
121 |          /* the fetch functions are not per context! Might be problematic... */
122 |          fetch_ext_rgb_dxt1 = (dxtFetchTexelFuncExt)
123 |             _mesa_dlsym(dxtlibhandle, "fetch_2d_texel_rgb_dxt1");
124 |          fetch_ext_rgba_dxt1 = (dxtFetchTexelFuncExt)
125 |             _mesa_dlsym(dxtlibhandle, "fetch_2d_texel_rgba_dxt1");
126 |          fetch_ext_rgba_dxt3 = (dxtFetchTexelFuncExt)
127 |             _mesa_dlsym(dxtlibhandle, "fetch_2d_texel_rgba_dxt3");
128 |          fetch_ext_rgba_dxt5 = (dxtFetchTexelFuncExt)
129 |             _mesa_dlsym(dxtlibhandle, "fetch_2d_texel_rgba_dxt5");
130 |          ext_tx_compress_dxtn = (dxtCompressTexFuncExt)
131 |             _mesa_dlsym(dxtlibhandle, "tx_compress_dxtn");
132 | 
133 |          if (!fetch_ext_rgb_dxt1 ||


qtwebengine/src/3rdparty/chromium/third_party/mesa/src/src/egl/main/egldriver.c



160 |          void *ptr;
161 |       } tmp = { NULL };
162 |       /* direct cast gives a warning when compiled with -pedantic */
163 |       tmp.ptr = dlsym(lib, "_eglMain");
164 |       mainFunc = tmp.func;
165 |       if (!mainFunc)


qtwebengine/src/3rdparty/chromium/third_party/mesa/src/src/egl/drivers/dri2/egl_dri2.c



408 |    }
409 | 
410 |    _eglLog(_EGL_DEBUG, "DRI2: dlopen(%s)", path);
411 |    extensions = dlsym(dri2_dpy->driver, __DRI_DRIVER_EXTENSIONS);
412 |    if (extensions == NULL) {
413 |       _eglLog(_EGL_WARNING,
1508 |    handle = dlopen(libname, RTLD_LAZY | RTLD_GLOBAL);
1509 |    if (handle) {
1510 |       dri2_drv->get_proc_address = (_EGLProc (*)(const char *))
1511 |          dlsym(handle, "_glapi_get_proc_address");
1512 |       if (!dri2_drv->get_proc_address || !libname) {
1513 |          /* no need to keep a reference */


qtwebengine/src/3rdparty/chromium/third_party/mesa/src/src/egl/drivers/glx/egl_glx.c



1071 |    struct GLX_egl_driver *GLX_drv = GLX_egl_driver(drv);
1072 |    void *handle = NULL;
1073 | 
1074 |    GLX_drv->glXGetProcAddress = dlsym(RTLD_DEFAULT, "glXGetProcAddress");
1075 |    if (!GLX_drv->glXGetProcAddress)
1076 |       GLX_drv->glXGetProcAddress = dlsym(RTLD_DEFAULT, "glXGetProcAddressARB");
1077 |    if (!GLX_drv->glXGetProcAddress) {
1078 |       handle = dlopen("libGL.so", RTLD_LAZY | RTLD_LOCAL);
1079 |       if (!handle)
1080 |          goto fail;
1081 | 
1082 |       GLX_drv->glXGetProcAddress = dlsym(handle, "glXGetProcAddress");
1083 |       if (!GLX_drv->glXGetProcAddress)
1084 |          GLX_drv->glXGetProcAddress = dlsym(handle, "glXGetProcAddressARB");
1085 |       if (!GLX_drv->glXGetProcAddress)
1086 |          goto fail;


qtwebengine/src/3rdparty/chromium/third_party/mesa/src/src/gbm/main/backend.c



76 |          return NULL;
77 |       }
78 | 
79 |       init = dlsym(module, entrypoint);
80 |       if (!init)
81 |          return NULL;


qtwebengine/src/3rdparty/chromium/third_party/mesa/src/src/gbm/backends/dri/gbm_dri.c



208 |       return -1;
209 |    }
210 | 
211 |    extensions = dlsym(dri->driver, __DRI_DRIVER_EXTENSIONS);
212 |    if (extensions == NULL) {
213 |       fprintf(stderr, "gbm: driver exports no extensions (%s)", dlerror());


qtwebengine/src/3rdparty/chromium/third_party/mesa/src/src/glx/drisw_glx.c



649 |    if (psc->driver == NULL)
650 |       goto handle_error;
651 | 
652 |    extensions = dlsym(psc->driver, __DRI_DRIVER_EXTENSIONS);
653 |    if (extensions == NULL) {
654 |       ErrorMessageF("driver exports no extensions (%s)\n", dlerror());


qtwebengine/src/3rdparty/chromium/third_party/mesa/src/src/glx/applegl_glx.c



104 | static void *
105 | applegl_get_proc_address(const char *symbol)
106 | {
107 |    return dlsym(apple_cgl_get_dl_handle(), symbol);
108 | }
109 | 


qtwebengine/src/3rdparty/chromium/third_party/mesa/src/src/glx/dri2_glx.c



1055 |       goto handle_error;
1056 |    }
1057 | 
1058 |    extensions = dlsym(psc->driver, __DRI_DRIVER_EXTENSIONS);
1059 |    if (extensions == NULL) {
1060 |       ErrorMessageF("driver exports no extensions (%s)\n", dlerror());


qtwebengine/src/3rdparty/chromium/third_party/mesa/src/src/glx/dri_glx.c



184 | {
185 |    void *handle = driOpenDriver(driverName);
186 |    if (handle)
187 |       return dlsym(handle, "__driConfigOptions");
188 |    else
189 |       return NULL;
867 |    if (psc->driver == NULL)
868 |       goto cleanup;
869 | 
870 |    extensions = dlsym(psc->driver, __DRI_DRIVER_EXTENSIONS);
871 |    if (extensions == NULL) {
872 |       ErrorMessageF("driver exports no extensions (%s)\n", dlerror());


qtwebengine/src/3rdparty/chromium/third_party/mesa/src/src/glx/apple/apple_cgl.c



49 | {
50 |    void *s;
51 | 
52 |    s = dlsym(h, name);
53 | 
54 |    if (NULL == s) {


qtwebengine/src/3rdparty/chromium/third_party/ffmpeg/libavfilter/vf_frei0r.c



79 | static void *load_sym(AVFilterContext *ctx, const char *sym_name)
80 | {
81 |     Frei0rContext *s = ctx->priv;
82 |     void *sym = dlsym(s->dl_handle, sym_name);
83 |     if (!sym)
84 |         av_log(ctx, AV_LOG_ERROR, "Could not find symbol '%s' in loaded module.\n", sym_name);


qtwebengine/src/3rdparty/chromium/third_party/ffmpeg/libavfilter/af_ladspa.c



443 |         return AVERROR(EINVAL);
444 |     }
445 | 
446 |     descriptor_fn = dlsym(s->dl_handle, "ladspa_descriptor");
447 |     if (!descriptor_fn) {
448 |         av_log(ctx, AV_LOG_ERROR, "Could not find ladspa_descriptor: %s\n", dlerror());


qtwebengine/src/3rdparty/chromium/third_party/ffmpeg/libavcodec/omx.c



85 |     void (*host_init)(void);
86 | } OMXContext;
87 | 
88 | static av_cold void *dlsym_prefixed(void *handle, const char *symbol, const char *prefix)
89 | {
90 |     char buf[50];
91 |     snprintf(buf, sizeof(buf), "%s%s", prefix ? prefix : "", symbol);
92 |     return dlsym(handle, buf);
93 | }
94 | 
102 |             av_log(logctx, AV_LOG_WARNING, "%s not found\n", libname);
103 |             return AVERROR_ENCODER_NOT_FOUND;
104 |         }
105 |         s->host_init = dlsym(s->lib2, "bcm_host_init");
106 |         if (!s->host_init) {
107 |             av_log(logctx, AV_LOG_WARNING, "bcm_host_init not found\n");
115 |         av_log(logctx, AV_LOG_WARNING, "%s not found\n", libname);
116 |         return AVERROR_ENCODER_NOT_FOUND;
117 |     }
118 |     s->ptr_Init                = dlsym_prefixed(s->lib, "OMX_Init", prefix);
119 |     s->ptr_Deinit              = dlsym_prefixed(s->lib, "OMX_Deinit", prefix);
120 |     s->ptr_ComponentNameEnum   = dlsym_prefixed(s->lib, "OMX_ComponentNameEnum", prefix);
121 |     s->ptr_GetHandle           = dlsym_prefixed(s->lib, "OMX_GetHandle", prefix);
122 |     s->ptr_FreeHandle          = dlsym_prefixed(s->lib, "OMX_FreeHandle", prefix);
123 |     s->ptr_GetComponentsOfRole = dlsym_prefixed(s->lib, "OMX_GetComponentsOfRole", prefix);
124 |     s->ptr_GetRolesOfComponent = dlsym_prefixed(s->lib, "OMX_GetRolesOfComponent", prefix);
125 |     if (!s->ptr_Init || !s->ptr_Deinit || !s->ptr_ComponentNameEnum ||
126 |         !s->ptr_GetHandle || !s->ptr_FreeHandle ||


qtwebengine/src/3rdparty/chromium/third_party/ffmpeg/libavcodec/nvenc.c



66 | 
67 | #define LOAD_SYMBOL(fun, lib, symbol)        \
68 |     do {                                     \
69 |         if (!((fun) = dlsym(lib, symbol))) { \
70 |             av_log(avctx, AV_LOG_ERROR,      \
71 |                    "Cannot load %s\n",       \


qtwebengine/src/3rdparty/chromium/third_party/crashpad/crashpad/compat/mac/mach-o/getsect.cc



53 |   if (!dl_handle) {
54 |     return nullptr;
55 |   }
56 |   return dlsym(dl_handle, symbol);
57 | }
58 | 


qtwebengine/src/3rdparty/chromium/third_party/crashpad/crashpad/snapshot/crashpad_info_client_options_test.cc



167 |   template <typename T>
168 |   T LookUpSymbol(const char* symbol_name) {
169 | #if defined(OS_POSIX)
170 |     return reinterpret_cast<T>(dlsym(dl_handle_, symbol_name));
171 | #elif defined(OS_WIN)
172 |     return reinterpret_cast<T>(GetProcAddress(dl_handle_, symbol_name));


qtwebengine/src/3rdparty/chromium/third_party/crashpad/crashpad/snapshot/mac/mach_o_image_reader_test.cc



496 |   ASSERT_TRUE(process_reader.Initialize(mach_task_self()));
497 | 
498 |   const MachHeader* mh_execute_header =
499 |       reinterpret_cast<MachHeader*>(dlsym(RTLD_MAIN_ONLY, MH_EXECUTE_SYM));
500 |   ASSERT_NE(nullptr, mh_execute_header);
501 |   mach_vm_address_t mh_execute_header_address =


qtwebengine/src/3rdparty/chromium/third_party/crashpad/crashpad/util/mach/exception_types.cc



64 | 
65 |   ProcGetWakemonParamsType proc_get_wakemon_params =
66 |       reinterpret_cast<ProcGetWakemonParamsType>(
67 |           dlsym(dl_handle, "proc_get_wakemon_params"));
68 |   return proc_get_wakemon_params;
69 | }


qtwebengine/src/3rdparty/chromium/third_party/icu/source/common/putilimp.h



583 |  * Extract a symbol from a library (function)
584 |  * @internal (ICU 4.8)
585 |  */
586 | U_INTERNAL UVoidFunction* U_EXPORT2 uprv_dlsym_func( void *lib, const char *symbolName, UErrorCode *status);
587 | 
588 | /**


qtwebengine/src/3rdparty/chromium/third_party/grpc/src/core/lib/support/env_linux.c



60 |    * to least secure) */
61 |   const char *names[] = {"secure_getenv", "__secure_getenv", "getenv"};
62 |   for (size_t i = 0; getenv_func == NULL && i < GPR_ARRAY_SIZE(names); i++) {
63 |     getenv_func = (getenv_type)dlsym(RTLD_DEFAULT, names[i]);
64 |     if (getenv_func != NULL && strstr(names[i], "secure") == NULL) {
65 |       gpr_log(GPR_DEBUG,


qtwebengine/src/3rdparty/chromium/third_party/sqlite/src/src/os_unix.c



6085 |   */
6086 |   void (*(*x)(void*,const char*))(void);
6087 |   UNUSED_PARAMETER(NotUsed);
6088 |   x = (void(*(*)(void*,const char*))(void))dlsym;
6089 |   return (*x)(p, zSym);
6090 | }


qtwebengine/src/3rdparty/chromium/third_party/sqlite/sqlite-src-3100200/src/os_unix.c



6036 |   */
6037 |   void (*(*x)(void*,const char*))(void);
6038 |   UNUSED_PARAMETER(NotUsed);
6039 |   x = (void(*(*)(void*,const char*))(void))dlsym;
6040 |   return (*x)(p, zSym);
6041 | }


qtwebengine/src/3rdparty/chromium/third_party/sqlite/amalgamation/sqlite3.c



33161 |   */
33162 |   void (*(*x)(void*,const char*))(void);
33163 |   UNUSED_PARAMETER(NotUsed);
33164 |   x = (void(*(*)(void*,const char*))(void))dlsym;
33165 |   return (*x)(p, zSym);
33166 | }


qtwebengine/src/3rdparty/chromium/third_party/afl/src/afl-fuzz.c



1380 |   dh = dlopen(fn, RTLD_NOW);
1381 |   if (!dh) FATAL("%s", dlerror());
1382 | 
1383 |   post_handler = dlsym(dh, "afl_postprocess");
1384 |   if (!post_handler) FATAL("Symbol 'afl_postprocess' not found.");
1385 | 


qtwebengine/src/3rdparty/chromium/third_party/hwcplus/src/hardware.c



97 | 
98 |     /* Get the address of the struct hal_module_info. */
99 |     const char *sym = HAL_MODULE_INFO_SYM_AS_STR;
100 |     hmi = (struct hw_module_t *)dlsym(handle, sym);
101 |     if (hmi == NULL) {
102 |         ALOGE("load: couldn't find symbol %s", sym);


qtwebengine/src/3rdparty/chromium/content/zygote/zygote_main_linux.cc



187 | 
188 | static void InitLibcLocaltimeFunctions() {
189 |   g_libc_localtime = reinterpret_cast<LocaltimeFunction>(
190 |       dlsym(RTLD_NEXT, "localtime"));
191 |   g_libc_localtime64 = reinterpret_cast<LocaltimeFunction>(
192 |       dlsym(RTLD_NEXT, "localtime64"));
193 |   g_libc_localtime_r = reinterpret_cast<LocaltimeRFunction>(
194 |       dlsym(RTLD_NEXT, "localtime_r"));
195 |   g_libc_localtime64_r = reinterpret_cast<LocaltimeRFunction>(
196 |       dlsym(RTLD_NEXT, "localtime64_r"));
197 | 
198 |   if (!g_libc_localtime || !g_libc_localtime_r) {
201 |     // Nvidia's libGL.so overrides dlsym for an unknown reason and replaces
202 |     // it with a version which doesn't work. In this case we'll get a NULL
203 |     // result. There's not a lot we can do at this point, so we just bodge it!
204 |     LOG(ERROR) << "Your system is broken: dlsym doesn't work! This has been "
205 |                   "reported to be caused by Nvidia's libGL. You should expect"
206 |                   " time related functions to misbehave. "


qtwebengine/src/3rdparty/chromium/ui/ozone/platform/cast/surface_factory_cast.cc



120 |     return;
121 | 
122 |   EGLGetDisplayFn get_display =
123 |       reinterpret_cast<EGLGetDisplayFn>(dlsym(egl_lib_handle, "eglGetDisplay"));
124 |   EGLTerminateFn terminate =
125 |       reinterpret_cast<EGLTerminateFn>(dlsym(egl_lib_handle, "eglTerminate"));
126 |   DCHECK(get_display);
127 |   DCHECK(terminate);


qtwebengine/src/3rdparty/chromium/base/sys_info_android.cc



31 |   }
32 |   SystemPropertyGetFunction* real_system_property_get =
33 |       reinterpret_cast<SystemPropertyGetFunction*>(
34 |           dlsym(handle, "__system_property_get"));
35 |   if (!real_system_property_get) {
36 |     LOG(FATAL) << "Cannot resolve __system_property_get(): " << dlerror();


qtwebengine/src/3rdparty/chromium/base/native_library_posix.cc



57 | // static
58 | void* GetFunctionPointerFromNativeLibrary(NativeLibrary library,
59 |                                           StringPiece name) {
60 |   return dlsym(library, name.data());
61 | }
62 | 


qtwebengine/src/3rdparty/chromium/base/allocator/allocator_shim_default_dispatch_to_linker_wrapped_symbols.cc



63 |   using MallocUsableSizeFunction = decltype(malloc_usable_size)*;
64 |   static MallocUsableSizeFunction usable_size_function = nullptr;
65 |   if (!usable_size_function) {
66 |     void* function_ptr = dlsym(RTLD_DEFAULT, "malloc_usable_size");
67 |     if (function_ptr) {
68 |       usable_size_function = reinterpret_cast<MallocUsableSizeFunction>(


qtwebengine/src/3rdparty/chromium/v8/src/third_party/vtune/jitprofiling.cc



387 | #if ITT_PLATFORM==ITT_PLATFORM_WIN
388 |     FUNC_NotifyEvent = (TPNotify)GetProcAddress(m_libHandle, "NotifyEvent");
389 | #else  /* ITT_PLATFORM==ITT_PLATFORM_WIN */
390 |     FUNC_NotifyEvent = reinterpret_cast<TPNotify>(reinterpret_cast<intptr_t>(dlsym(m_libHandle, "NotifyEvent")));
391 | #endif /* ITT_PLATFORM==ITT_PLATFORM_WIN */
392 |     if (!FUNC_NotifyEvent)
398 | #if ITT_PLATFORM==ITT_PLATFORM_WIN
399 |     FUNC_Initialize = (TPInitialize)GetProcAddress(m_libHandle, "Initialize");
400 | #else  /* ITT_PLATFORM==ITT_PLATFORM_WIN */
401 |     FUNC_Initialize = reinterpret_cast<TPInitialize>(reinterpret_cast<intptr_t>(dlsym(m_libHandle, "Initialize")));
402 | #endif /* ITT_PLATFORM==ITT_PLATFORM_WIN */
403 |     if (!FUNC_Initialize)


qtwebengine/src/3rdparty/chromium/v8/src/base/platform/platform-posix.cc



554 |   // for it at runtime.
555 |   int (*dynamic_pthread_setname_np)(const char*);
556 |   *reinterpret_cast<void**>(&dynamic_pthread_setname_np) =
557 |     dlsym(RTLD_DEFAULT, "pthread_setname_np");
558 |   if (dynamic_pthread_setname_np == NULL)
559 |     return;


qtwebengine/src/3rdparty/chromium/media/gpu/tegra_v4l2_device.cc



60 | #define TEGRAV4L2_DLSYM_OR_RETURN_ON_ERROR(name)          \
61 |   do {                                                    \
62 |     TegraV4L2_##name = reinterpret_cast<TegraV4L2##name>( \
63 |         dlsym(RTLD_DEFAULT, "TegraV4L2_" #name));         \
64 |     if (TegraV4L2_##name == NULL) {                       \
65 |       LOG(ERROR) << "Failed to dlsym TegraV4L2_" #name;   \
66 |       return;                                             \
67 |     }                                                     \


qtwebengine/src/3rdparty/chromium/net/socket/udp_socket_posix.cc



105 |       dlopen("/usr/lib/libSystem.dylib", RTLD_LAZY | RTLD_LOCAL | RTLD_NOLOAD);
106 |   if (libsystem_handle) {
107 |     g_guarded_close_np = reinterpret_cast<GuardedCloseNpFunction>(
108 |         dlsym(libsystem_handle, "guarded_close_np"));
109 |     g_change_fdguard_np = reinterpret_cast<ChangeFdguardNpFunction>(
110 |         dlsym(libsystem_handle, "change_fdguard_np"));
111 | 
112 |     // If for any reason only one of the functions is found, set both of them to
449 |       void* dl = dlopen(file.value().c_str(), RTLD_NOW);
450 |       marshmallowSetNetworkForSocket =
451 |           reinterpret_cast<MarshmallowSetNetworkForSocket>(
452 |               dlsym(dl, "android_setsocknetwork"));
453 |     }
454 |     if (!marshmallowSetNetworkForSocket)
474 |       void* dl = dlopen(file.value().c_str(), RTLD_NOW | RTLD_NOLOAD);
475 |       lollipopSetNetworkForSocket =
476 |           reinterpret_cast<LollipopSetNetworkForSocket>(
477 |               dlsym(dl, "setNetworkForSocket"));
478 |     }
479 |     if (!lollipopSetNetworkForSocket)


qtwebengine/src/3rdparty/chromium/net/dns/dns_config_watcher_mac.cc



29 |       return;
30 |     dns_configuration_notify_key =
31 |         reinterpret_cast<dns_configuration_notify_key_t>(
32 |             dlsym(handle_, "dns_configuration_notify_key"));
33 |     dns_configuration_copy =
34 |         reinterpret_cast<dns_configuration_copy_t>(
35 |             dlsym(handle_, "dns_configuration_copy"));
36 |     dns_configuration_free =
37 |         reinterpret_cast<dns_configuration_free_t>(
38 |             dlsym(handle_, "dns_configuration_free"));
39 |   }
40 | 


qtwebengine/src/3rdparty/chromium/net/cert/cert_verify_proc_nss.cc



758 | CertVerifyProcNSS::CertVerifyProcNSS()
759 |     : cache_ocsp_response_from_side_channel_(
760 |           reinterpret_cast<CacheOCSPResponseFromSideChannelFunction>(
761 |               dlsym(RTLD_DEFAULT, "CERT_CacheOCSPResponseFromSideChannel")))
762 | {
763 | }


qtwebengine/src/3rdparty/chromium/tools/generate_library_loader/generate_library_loader.py



119 | #if defined(%(unique_prefix)s_DLOPEN)
120 |   %(function_name)s =
121 |       reinterpret_cast<decltype(this->%(function_name)s)>(
122 |           dlsym(library_, "%(function_name)s"));
123 | #endif
124 | #if defined(%(unique_prefix)s_DT_NEEDED)


qtwebengine/src/3rdparty/chromium/tools/generate_stubs/generate_stubs.py



8 | path mechanism, stub files need to be generated for the wanted functions.  In
9 | windows, this is done via "def" files and the delay load mechanism.  On a posix
10 | system, a set of stub functions need to be generated that dispatch to functions
11 | found via dlsym.
12 | 
13 | This script takes a set of files, where each file is a list of C-style
237 | #   params: The parameters to the function.
238 | STUB_POINTER_INITIALIZER = """  %(name)s_ptr =
239 |     reinterpret_cast<%(return_type)s (*)(%(parameters)s)>(
240 |       dlsym(module, "%(name)s"));
241 |     VLOG_IF(1, !%(name)s_ptr) << "Couldn't load %(name)s, dlerror() says:\\n"
242 |         << dlerror();
791 |     """Write the function pointer declarations needed by the stubs.
792 | 
793 |     We need function pointers to hold the actual location of the function
794 |     implementation returned by dlsym.  This function outputs a pointer
795 |     definition for each signature in the module.
796 | 
835 |     "Module" is replaced with the module name, first letter capitalized.
836 | 
837 |     The InitializeModule function takes a handle that is retrieved from dlopen
838 |     and attempts to assign each function pointer above via dlsym.
839 | 
840 |     The IsModuleInitialized returns true if none of the required functions