qt

dlsymdlopen

5.9.1

173 / 178795 files match, 46 filtered matches.

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



35791 | #include <dlfcn.h>
35792 | static void *unixDlOpen(sqlite3_vfs *NotUsed, const char *zFilename){
35793 |   UNUSED_PARAMETER(NotUsed);
35794 |   return dlopen(zFilename, RTLD_NOW | RTLD_GLOBAL);
35795 | }
35796 | 


qtwebengine/src/3rdparty/chromium/third_party/libva/va/va_backend.h



486 |     int max_display_attributes;
487 |     const char *str_vendor;
488 | 
489 |     void *handle;			/* dlopen handle */
490 | 
491 |     /**


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



91 |   }
92 | 
93 | #if defined(WEBRTC_POSIX)
94 |   handle_ = dlopen(dll_path,
95 |                    // RTLD_NOW front-loads symbol resolution so that errors are
96 |                    // caught early instead of causing a process abort later.


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



47 |   // TODO: If this class grows to use more dynamically functions
48 |   // from the CoreGraphics framework, consider using
49 |   // webrtc/base/latebindingsymboltable.h.
50 |   lib_handle_ = dlopen(kCoreGraphicsName, RTLD_NOW);
51 |   if (lib_handle_ == NULL) {
52 |     LOG(LS_ERROR) << "Could not load CoreGraphics";


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



114 |   X(snd_mixer_selem_set_capture_volume_all) \
115 |   X(snd_mixer_selem_get_capture_volume) \
116 |   X(snd_mixer_selem_get_capture_volume_range) \
117 |   X(snd_dlopen) \
118 |   X(snd_dlclose) \
119 |   X(snd_config) \


qtwebengine/src/3rdparty/chromium/third_party/webrtc/modules/audio_device/linux/latebindingsymboltable_linux.cc



33 | 
34 | DllHandle InternalLoadDll(const char dll_name[]) {
35 | #ifdef WEBRTC_LINUX
36 |   DllHandle handle = dlopen(dll_name, RTLD_NOW);
37 | #else
38 | #error Not implemented


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



131 | 
132 | 
133 | static void *ll_load (lua_State *L, const char *path, int seeglb) {
134 |   void *lib = dlopen(path, RTLD_NOW | (seeglb ? RTLD_GLOBAL : RTLD_LOCAL));
135 |   if (lib == NULL) lua_pushstring(L, dlerror());
136 |   return lib;


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



493 |     typedef unsigned long getauxval_func_t(unsigned long);
494 | 
495 |     dlerror();
496 |     void* libc_handle = dlopen("libc.so", RTLD_NOW);
497 |     if (!libc_handle) {
498 |         D("Could not dlopen() C library: %s\n", dlerror());
499 |         return 0;
500 |     }


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



44 | util_dl_open(const char *filename)
45 | {
46 | #if defined(PIPE_OS_UNIX)
47 |    return (struct util_dl_library *)dlopen(filename, RTLD_LAZY | RTLD_GLOBAL);
48 | #elif defined(PIPE_OS_WINDOWS)
49 |    return (struct util_dl_library *)LoadLibraryA(filename);


qtwebengine/src/3rdparty/chromium/third_party/mesa/src/src/gallium/targets/egl-static/egl_st.c



46 | static struct util_dl_library *egl_st_gl_lib;
47 | 
48 | static EGLBoolean
49 | dlopen_gl_lib_cb(const char *dir, size_t len, void *callback_data)
50 | {
51 |    const char *name = (const char *) callback_data;
76 |    struct st_api *(*create_api)(void);
77 |    struct st_api *stapi = NULL;
78 | 
79 |    _eglSearchPathForEach(dlopen_gl_lib_cb, (void *) name);
80 |    if (!egl_st_gl_lib)
81 |       return NULL;


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



43 |  * Note that 'flags' isn't used at this time.
44 |  */
45 | static inline void *
46 | _mesa_dlopen(const char *libname, int flags)
47 | {
48 | #if defined(__blrts)
49 |    return NULL;
50 | #elif defined(HAVE_DLOPEN)
51 |    flags = RTLD_LAZY | RTLD_GLOBAL; /* Overriding flags at this time */
52 |    return dlopen(libname, flags);
53 | #elif defined(__MINGW32__)
54 |    return LoadLibraryA(libname);


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



112 |    ctx->Mesa_DXTn = GL_FALSE;
113 | #if USE_EXTERNAL_DXTN_LIB
114 |    if (!dxtlibhandle) {
115 |       dxtlibhandle = _mesa_dlopen(DXTN_LIBNAME, 0);
116 |       if (!dxtlibhandle) {
117 | 	 _mesa_warning(ctx, "couldn't open " DXTN_LIBNAME ", software DXTn "


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



114 | static void *
115 | open_library(const char *filename)
116 | {
117 |    return dlopen(filename, RTLD_LAZY);
118 | }
119 | 
146 | 
147 |    assert(driverPath);
148 | 
149 |    _eglLog(_EGL_DEBUG, "dlopen(%s)", driverPath);
150 |    lib = open_library(driverPath);
151 | 


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



389 | #if GLX_USE_TLS
390 |       snprintf(path, sizeof path,
391 | 	       "%.*s/tls/%s_dri.so", len, p, dri2_dpy->driver_name);
392 |       dri2_dpy->driver = dlopen(path, RTLD_NOW | RTLD_GLOBAL);
393 | #endif
394 |       if (dri2_dpy->driver == NULL) {
395 | 	 snprintf(path, sizeof path,
396 | 		  "%.*s/%s_dri.so", len, p, dri2_dpy->driver_name);
397 | 	 dri2_dpy->driver = dlopen(path, RTLD_NOW | RTLD_GLOBAL);
398 | 	 if (dri2_dpy->driver == NULL)
399 | 	    _eglLog(_EGL_DEBUG, "failed to open %s: %s\n", path, dlerror());
407 |       return NULL;
408 |    }
409 | 
410 |    _eglLog(_EGL_DEBUG, "DRI2: dlopen(%s)", path);
411 |    extensions = dlsym(dri2_dpy->driver, __DRI_DRIVER_EXTENSIONS);
412 |    if (extensions == NULL) {
1505 |    void *handle;
1506 | 
1507 |    /* RTLD_GLOBAL to make sure glapi symbols are visible to DRI drivers */
1508 |    handle = dlopen(libname, RTLD_LAZY | RTLD_GLOBAL);
1509 |    if (handle) {
1510 |       dri2_drv->get_proc_address = (_EGLProc (*)(const char *))


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



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;


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



69 |       else
70 |          snprintf(path, sizeof path, "%s", name);
71 | 
72 |       module = dlopen(path, RTLD_NOW | RTLD_GLOBAL);
73 |       if (!module) {
74 |          fprintf(stderr,


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



191 | #if GLX_USE_TLS
192 |       snprintf(path, sizeof path,
193 |                "%.*s/tls/%s_dri.so", len, p, dri->base.driver_name);
194 |       dri->driver = dlopen(path, RTLD_NOW | RTLD_GLOBAL);
195 | #endif
196 |       if (dri->driver == NULL) {
197 |          snprintf(path, sizeof path,
198 |                   "%.*s/%s_dri.so", len, p, dri->base.driver_name);
199 |          dri->driver = dlopen(path, RTLD_NOW | RTLD_GLOBAL);
200 |          if (dri->driver == NULL)
201 |             fprintf(stderr, "failed to open %s: %s\n", path, dlerror());


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



133 |    int len;
134 | 
135 |    /* Attempt to make sure libGL symbols will be visible to the driver */
136 |    glhandle = dlopen("libGL.so.1", RTLD_NOW | RTLD_GLOBAL);
137 | 
138 |    libPaths = NULL;
161 |       snprintf(realDriverName, sizeof realDriverName,
162 |                "%.*s/tls/%s_dri.so", len, p, driverName);
163 |       InfoMessageF("OpenDriver: trying %s\n", realDriverName);
164 |       handle = dlopen(realDriverName, RTLD_NOW | RTLD_GLOBAL);
165 | #endif
166 | 
168 |          snprintf(realDriverName, sizeof realDriverName,
169 |                   "%.*s/%s_dri.so", len, p, driverName);
170 |          InfoMessageF("OpenDriver: trying %s\n", realDriverName);
171 |          handle = dlopen(realDriverName, RTLD_NOW | RTLD_GLOBAL);
172 |       }
173 | 
174 |       if (handle != NULL)
175 |          break;
176 |       else
177 |          ErrorMessageF("dlopen %s failed (%s)\n", realDriverName, dlerror());
178 |    }
179 | 


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



74 |    }
75 | 
76 |    (void) dlerror();            /*drain dlerror */
77 |    h = dlopen(opengl_framework_path, RTLD_NOW);
78 | 
79 |    if (NULL == h) {
80 |       fprintf(stderr, "error: unable to dlopen %s : %s\n",
81 |               opengl_framework_path, dlerror());
82 |       abort();


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



353 |     void *ret = NULL;
354 | 
355 |     if (path) {
356 |         ret = dlopen(path, RTLD_LOCAL|RTLD_NOW);
357 |         av_free(path);
358 |     }
412 | 
413 |     if (s->dl_name[0] == '/' || s->dl_name[0] == '.') {
414 |         // argument is a path
415 |         s->dl_handle = dlopen(s->dl_name, RTLD_LOCAL|RTLD_NOW);
416 |     } else {
417 |         // argument is a shared object name


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



97 |                                 const char *libname2)
98 | {
99 |     if (libname2) {
100 |         s->lib2 = dlopen(libname2, RTLD_NOW | RTLD_GLOBAL);
101 |         if (!s->lib2) {
102 |             av_log(logctx, AV_LOG_WARNING, "%s not found\n", libname);
110 |             return AVERROR_ENCODER_NOT_FOUND;
111 |         }
112 |     }
113 |     s->lib = dlopen(libname, RTLD_NOW | RTLD_GLOBAL);
114 |     if (!s->lib) {
115 |         av_log(logctx, AV_LOG_WARNING, "%s not found\n", libname);


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



56 | 
57 | #define LOAD_LIBRARY(l, path)                   \
58 |     do {                                        \
59 |         if (!((l) = dlopen(path, RTLD_LAZY))) { \
60 |             av_log(avctx, AV_LOG_ERROR,         \
61 |                    "Cannot load %s\n",          \


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



42 |   if (!dladdr(reinterpret_cast<void*>(getsectbyname), &info)) {
43 |     return nullptr;
44 |   }
45 |   return dlopen(info.dli_fname, RTLD_LAZY | RTLD_LOCAL | RTLD_NOLOAD);
46 | }
47 | 


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



190 |       FILE_PATH_LITERAL("crashpad_snapshot_test_module") + kDlExtension);
191 | #if defined(OS_MACOSX)
192 |   ScopedDlHandle dl_handle(
193 |       dlopen(module_path.value().c_str(), RTLD_LAZY | RTLD_LOCAL));
194 |   ASSERT_TRUE(dl_handle.valid()) << "dlopen " << module_path.value() << ": "
195 |                                  << dlerror();
196 | #elif defined(OS_WIN)


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



353 | 
354 |       case kCrashModuleInitialization: {
355 |         // Load a module that crashes while executing a module initializer.
356 |         void* dl_handle = dlopen(ModuleWithCrashyInitializer().c_str(),
357 |                                  RTLD_LAZY | RTLD_LOCAL);
358 | 


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



57 |   }
58 | 
59 |   void* dl_handle =
60 |       dlopen(dl_info.dli_fname, RTLD_LAZY | RTLD_LOCAL | RTLD_NOLOAD);
61 |   if (!dl_handle) {
62 |     return nullptr;


qtwebengine/src/3rdparty/chromium/third_party/libxml/src/xmlmodule.c



216 | static void *
217 | xmlModulePlatformOpen(const char *name)
218 | {
219 |     return dlopen(name, RTLD_GLOBAL | RTLD_NOW);
220 | }
221 | 


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



6045 | #include <dlfcn.h>
6046 | static void *unixDlOpen(sqlite3_vfs *NotUsed, const char *zFilename){
6047 |   UNUSED_PARAMETER(NotUsed);
6048 |   return dlopen(zFilename, RTLD_NOW | RTLD_GLOBAL);
6049 | }
6050 | 


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



5996 | #include <dlfcn.h>
5997 | static void *unixDlOpen(sqlite3_vfs *NotUsed, const char *zFilename){
5998 |   UNUSED_PARAMETER(NotUsed);
5999 |   return dlopen(zFilename, RTLD_NOW | RTLD_GLOBAL);
6000 | }
6001 | 


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



33121 | #include <dlfcn.h>
33122 | static void *unixDlOpen(sqlite3_vfs *NotUsed, const char *zFilename){
33123 |   UNUSED_PARAMETER(NotUsed);
33124 |   return dlopen(zFilename, RTLD_NOW | RTLD_GLOBAL);
33125 | }
33126 | 


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



1377 | 
1378 |   ACTF("Loading postprocessor from '%s'...", fn);
1379 | 
1380 |   dh = dlopen(fn, RTLD_NOW);
1381 |   if (!dh) FATAL("%s", dlerror());
1382 | 


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



87 |      * dlopen returns. Since RTLD_GLOBAL is not or'd in with
88 |      * RTLD_NOW the external symbols will not be global
89 |      */
90 |     handle = dlopen(path, RTLD_NOW);
91 |     if (handle == NULL) {
92 |         char const *err_str = dlerror();


qtwebengine/src/3rdparty/chromium/content/common/sandbox_linux/bpf_cros_arm_gpu_policy_linux.cc



165 |   AddArmGpuWhitelist(&permissions);
166 |   InitGpuBrokerProcess(CrosArmGpuBrokerProcessPolicy::Create, permissions);
167 | 
168 |   const int dlopen_flag = RTLD_NOW | RTLD_GLOBAL | RTLD_NODELETE;
169 | 
170 |   // Preload the Mali library.
171 |   dlopen("/usr/lib/libmali.so", dlopen_flag);
172 |   // Preload the Tegra V4L2 (video decode acceleration) library.
173 |   dlopen("/usr/lib/libtegrav4l2.so", dlopen_flag);
174 |   // Resetting errno since platform-specific libraries will fail on other
175 |   // platforms.


qtwebengine/src/3rdparty/chromium/content/common/sandbox_linux/bpf_gpu_policy_linux.cc



317 |         I965DrvVideoPath = "/usr/lib/va/drivers/i965_drv_video.so";
318 |       }
319 | 
320 |       dlopen(I965DrvVideoPath, RTLD_NOW | RTLD_GLOBAL | RTLD_NODELETE);
321 |       if (I965HybridDrvVideoPath)
322 |         dlopen(I965HybridDrvVideoPath, RTLD_NOW | RTLD_GLOBAL | RTLD_NODELETE);
323 |       dlopen("libva.so.1", RTLD_NOW | RTLD_GLOBAL | RTLD_NODELETE);
324 | #if defined(USE_OZONE)
325 |       dlopen("libva-drm.so.1", RTLD_NOW | RTLD_GLOBAL | RTLD_NODELETE);
326 | #elif defined(USE_X11)
327 |       dlopen("libva-x11.so.1", RTLD_NOW | RTLD_GLOBAL | RTLD_NODELETE);
328 | #endif
329 |     }
371 |   } else if (UseV4L2Codec()) {
372 |     AddV4L2GpuWhitelist(&permissions);
373 |     if (UseLibV4L2()) {
374 |       dlopen("/usr/lib/libv4l2.so", RTLD_NOW | RTLD_GLOBAL | RTLD_NODELETE);
375 |       // This is a device-specific encoder plugin.
376 |       dlopen("/usr/lib/libv4l/plugins/libv4l-encplugin.so",
377 |              RTLD_NOW | RTLD_GLOBAL | RTLD_NODELETE);
378 |     }


qtwebengine/src/3rdparty/chromium/ui/ozone/platform/drm/ozone_platform_gbm.cc



60 | class GlApiLoader {
61 |  public:
62 |   GlApiLoader()
63 |       : glapi_lib_(dlopen("libglapi.so.0", RTLD_LAZY | RTLD_GLOBAL)) {}
64 | 
65 |   ~GlApiLoader() {


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



25 | 
26 | SystemPropertyGetFunction* DynamicallyLoadRealSystemPropertyGet() {
27 |   // libc.so should already be open, get a handle to it.
28 |   void* handle = dlopen("libc.so", RTLD_NOLOAD);
29 |   if (!handle) {
30 |     LOG(FATAL) << "Cannot dlopen libc.so: " << dlerror();
31 |   }
32 |   SystemPropertyGetFunction* real_system_property_get =


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



38 |   if (options.prefer_own_symbols)
39 |     flags |= RTLD_DEEPBIND;
40 | #endif
41 |   void* dl = dlopen(library_path.value().c_str(), flags);
42 |   if (!dl && error)
43 |     error->message = dlerror();


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



365 |     if (dllName)
366 |     {
367 |         // Try to load the dll from the PATH...
368 |         m_libHandle = dlopen(dllName, RTLD_LAZY);
369 |     }
370 | #endif /* ITT_PLATFORM==ITT_PLATFORM_WIN */
374 | #if ITT_PLATFORM==ITT_PLATFORM_WIN
375 |         m_libHandle = LoadLibraryA(DEFAULT_DLLNAME);
376 | #else  /* ITT_PLATFORM==ITT_PLATFORM_WIN */
377 |         m_libHandle = dlopen(DEFAULT_DLLNAME, RTLD_LAZY);
378 | #endif /* ITT_PLATFORM==ITT_PLATFORM_WIN */
379 |     }


qtwebengine/src/3rdparty/chromium/components/os_crypt/keyring_util_linux.cc



67 |   if (keyring_loaded)
68 |     return true;
69 | 
70 |   void* handle = dlopen("libgnome-keyring.so.0", RTLD_NOW | RTLD_GLOBAL);
71 |   if (!handle) {
72 |     // We wanted to use GNOME Keyring, but we couldn't load it. Warn, because


qtwebengine/src/3rdparty/chromium/components/os_crypt/libsecret_util_linux.cc



72 |   if (libsecret_loaded_)
73 |     return true;
74 | 
75 |   static void* handle = dlopen("libsecret-1.so.0", RTLD_NOW | RTLD_GLOBAL);
76 |   if (!handle) {
77 |     // We wanted to use libsecret, but we couldn't load it. Warn, because


qtwebengine/src/3rdparty/chromium/crypto/nss_util.cc



278 | ScopedChapsLoadFixup::ScopedChapsLoadFixup() {
279 |   // HACK: libchaps links the system protobuf and there are symbol conflicts
280 |   // with the bundled copy. Load chaps with RTLD_DEEPBIND to workaround.
281 |   chaps_handle_ = dlopen(kChapsPath, RTLD_LOCAL | RTLD_NOW | RTLD_DEEPBIND);
282 | }
283 | 


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



54 | class TegraFunctionSymbolFinder {
55 |  public:
56 |   TegraFunctionSymbolFinder() : initialized_(false) {
57 |     if (!dlopen("/usr/lib/libtegrav4l2.so",
58 |                 RTLD_NOW | RTLD_GLOBAL | RTLD_NODELETE))
59 |       return;


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



102 | 
103 | void InitGuardedFunctions() {
104 |   void* libsystem_handle =
105 |       dlopen("/usr/lib/libSystem.dylib", RTLD_LAZY | RTLD_LOCAL | RTLD_NOLOAD);
106 |   if (libsystem_handle) {
107 |     g_guarded_close_np = reinterpret_cast<GuardedCloseNpFunction>(
446 |     // shouldn't matter.
447 |     if (!marshmallowSetNetworkForSocket) {
448 |       base::FilePath file(base::GetNativeLibraryName("android"));
449 |       void* dl = dlopen(file.value().c_str(), RTLD_NOW);
450 |       marshmallowSetNetworkForSocket =
451 |           reinterpret_cast<MarshmallowSetNetworkForSocket>(
471 |       // http://androidxref.com/6.0.0_r5/xref/bionic/libc/bionic/NetdClient.cpp#37
472 |       // Use RTLD_NOLOAD to assert that the library is already loaded and
473 |       // avoid doing any disk IO.
474 |       void* dl = dlopen(file.value().c_str(), RTLD_NOW | RTLD_NOLOAD);
475 |       lollipopSetNetworkForSocket =
476 |           reinterpret_cast<LollipopSetNetworkForSocket>(


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



23 |       : dns_configuration_notify_key(NULL),
24 |         dns_configuration_copy(NULL),
25 |         dns_configuration_free(NULL) {
26 |     handle_ = dlopen("/usr/lib/libSystem.dylib",
27 |                      RTLD_LAZY | RTLD_NOLOAD);
28 |     if (!handle_)


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



4 | 
5 | """
6 | Creates a library loader (a header and implementation file),
7 | which is a wrapper for dlopen or direct linking with given library.
8 | 
9 | The loader makes it possible to have the same client code for both cases,
10 | and also makes it easier to write code using dlopen (and also provides
11 | a standard way to do so, and limits the ugliness just to generated files).
12 | 
92 |     return false;
93 | 
94 | #if defined(%(unique_prefix)s_DLOPEN)
95 |   library_ = dlopen(library_name.c_str(), RTLD_LAZY);
96 |   if (!library_)
97 |     return false;


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



300 |     for (std::vector<std::string>::const_iterator dso_path = paths.begin();
301 |          !module_opened && dso_path != paths.end();
302 |          ++dso_path) {
303 |       void* handle = dlopen(dso_path->c_str(), RTLD_LAZY);
304 |       if (handle != NULL) {
305 |         module_opened = true;
306 |         opened_libraries[cur_module] = handle;
307 |       } else {
308 |         VLOG(1) << "dlopen(" << dso_path->c_str() << ") failed, "
309 |                 << "dlerror() says:\\n" << dlerror();
310 |       }
501 | 
502 | 
503 | class PosixStubWriter(object):
504 |   """Creates a file of stub functions for a library that is opened via dlopen.
505 | 
506 |   Windows provides a function in their compiler known as delay loading, which
694 |     """Writes a single function that will open + initialize each module.
695 | 
696 |     This intializer will take in an stl map of that lists the correct
697 |     dlopen target for each module.  The map type is
698 |     std::map<enum StubModules, vector<std::string>> which matches one module
699 |     to a list of paths to try in dlopen.
700 | 
701 |     This function is an all-or-nothing function.  If any module fails to load,
834 |     This creates 2 functions IsModuleInitialized and InitializeModule where
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 |