vtk

dlsymdlopen

9.0.0

14 / 19019 files match, 7 filtered matches.

ThirdParty/mpi4py/vtkmpi4py/src/dynload.h



40 |   #if defined(__cplusplus)
41 |   extern "C" {
42 |   #endif
43 |   extern void *dlopen(const char *, int);
44 |   extern void *dlsym(void *, const char *);
45 |   extern int   dlclose(void *);


ThirdParty/mpi4py/vtkmpi4py/src/lib-mpi/compat/sicortex.h



2 | 
3 | #include "../../dynload.h"
4 | 
5 | static void PyMPI_SCMPI_dlopen_libslurm(void)
6 | {
7 |   (void)dlopen("libslurm.so", RTLD_NOW|RTLD_GLOBAL|RTLD_NOLOAD);
8 |   (void)dlerror();
9 | }
10 | 
11 | static int PyMPI_SCMPI_MPI_Init(int *argc, char ***argv)
12 | {
13 |   PyMPI_SCMPI_dlopen_libslurm();
14 |   return MPI_Init(argc, argv);
15 | }
19 | static int PyMPI_SCMPI_MPI_Init_thread(int *argc, char ***argv,
20 |                                        int required, int *provided)
21 | {
22 |   PyMPI_SCMPI_dlopen_libslurm();
23 |   return MPI_Init_thread(argc, argv, required, provided);
24 | }


ThirdParty/mpi4py/vtkmpi4py/src/lib-mpi/compat/pcmpi.h



42 | 
43 | #include "../../dynload.h"
44 | 
45 | static void PyMPI_PCMPI_dlopen_libmpi(void)
46 | {
47 |   void *handle1 = (void *)0;
51 |   mode |= RTLD_NOLOAD;
52 |   #endif
53 | #if defined(__APPLE__)
54 |   if (!handle1) handle1 = dlopen("libmpi.2.dylib", mode);
55 |   if (!handle1) handle1 = dlopen("libmpi.1.dylib", mode);
56 |   if (!handle1) handle1 = dlopen("libmpi.dylib", mode);
57 |   if (!handle2) handle2 = dlopen("libmpio.2.dylib", mode);
58 |   if (!handle2) handle2 = dlopen("libmpio.1.dylib", mode);
59 |   if (!handle2) handle2 = dlopen("libmpio.dylib", mode);
60 | #else
61 |   if (!handle1) handle1 = dlopen("libmpi.so.2", mode);
62 |   if (!handle1) handle1 = dlopen("libmpi.so.1", mode);
63 |   if (!handle1) handle1 = dlopen("libmpi.so", mode);
64 |   if (!handle2) handle2 = dlopen("libmpio.so.2", mode);
65 |   if (!handle2) handle2 = dlopen("libmpio.so.1", mode);
66 |   if (!handle2) handle2 = dlopen("libmpio.so", mode);
67 | #endif
68 | }
69 | 
70 | static int PyMPI_PCMPI_MPI_Init(int *argc, char ***argv)
71 | {
72 |   PyMPI_PCMPI_dlopen_libmpi();
73 |   return MPI_Init(argc, argv);
74 | }
78 | static int PyMPI_PCMPI_MPI_Init_thread(int *argc, char ***argv,
79 |                                        int required, int *provided)
80 | {
81 |   PyMPI_PCMPI_dlopen_libmpi();
82 |   return MPI_Init_thread(argc, argv, required, provided);
83 | }


ThirdParty/mpi4py/vtkmpi4py/src/lib-mpi/compat/openmpi.h



26 | #include "../../dynload.h"
27 | 
28 | /*
29 | static void * my_dlopen(const char *name, int mode) {
30 |   void *handle;
31 |   static int called = 0;
46 |     #endif
47 |     printf("\n");
48 |   }
49 |   handle = dlopen(name, mode);
50 |   printf("dlopen(\"%s\",0x%X) -> %p\n", name, mode, handle);
51 |   printf("dlerror() -> %s\n\n", dlerror());
52 |   return handle;
54 | #define dlopen my_dlopen
55 | */
56 | 
57 | static void PyMPI_OPENMPI_dlopen_libmpi(void)
58 | {
59 |   void *handle = 0;
65 |   #endif
66 |   #if defined(OMPI_MAJOR_VERSION)
67 |   #if OMPI_MAJOR_VERSION == 3
68 |   if (!handle) handle = dlopen("libmpi.40.dylib", mode);
69 |   #elif OMPI_MAJOR_VERSION == 2
70 |   if (!handle) handle = dlopen("libmpi.20.dylib", mode);
71 |   #elif OMPI_MAJOR_VERSION == 1 && OMPI_MINOR_VERSION >= 10
72 |   if (!handle) handle = dlopen("libmpi.12.dylib", mode);
73 |   #elif OMPI_MAJOR_VERSION == 1 && OMPI_MINOR_VERSION >= 6
74 |   if (!handle) handle = dlopen("libmpi.1.dylib", mode);
75 |   #elif OMPI_MAJOR_VERSION == 1
76 |   if (!handle) handle = dlopen("libmpi.0.dylib", mode);
77 |   #endif
78 |   #endif
79 |   if (!handle) handle = dlopen("libmpi.dylib", mode);
80 | #else
81 |   /* GNU/Linux and others */
84 |   #endif
85 |   #if defined(OMPI_MAJOR_VERSION)
86 |   #if OMPI_MAJOR_VERSION >= 10 /* IBM Spectrum MPI */
87 |   if (!handle) handle = dlopen("libmpi_ibm.so.2", mode);
88 |   if (!handle) handle = dlopen("libmpi_ibm.so.1", mode);
89 |   if (!handle) handle = dlopen("libmpi_ibm.so", mode);
90 |   #elif OMPI_MAJOR_VERSION == 3
91 |   if (!handle) handle = dlopen("libmpi.so.40", mode);
92 |   #elif OMPI_MAJOR_VERSION == 2
93 |   if (!handle) handle = dlopen("libmpi.so.20", mode);
94 |   #elif OMPI_MAJOR_VERSION == 1 && OMPI_MINOR_VERSION >= 10
95 |   if (!handle) handle = dlopen("libmpi.so.12", mode);
96 |   #elif OMPI_MAJOR_VERSION == 1 && OMPI_MINOR_VERSION >= 6
97 |   if (!handle) handle = dlopen("libmpi.so.1", mode);
98 |   #elif OMPI_MAJOR_VERSION == 1
99 |   if (!handle) handle = dlopen("libmpi.so.0", mode);
100 |   #endif
101 |   #endif
102 |   if (!handle) handle = dlopen("libmpi.so", mode);
103 | #endif
104 | }
105 | 
106 | static int PyMPI_OPENMPI_MPI_Init(int *argc, char ***argv)
107 | {
108 |   PyMPI_OPENMPI_dlopen_libmpi();
109 |   return MPI_Init(argc, argv);
110 | }
114 | static int PyMPI_OPENMPI_MPI_Init_thread(int *argc, char ***argv,
115 |                                          int required, int *provided)
116 | {
117 |   PyMPI_OPENMPI_dlopen_libmpi();
118 |   return MPI_Init_thread(argc, argv, required, provided);
119 | }


ThirdParty/glew/vtkglew/src/glew.c



85 | 
86 |   if (h == NULL)
87 |   {
88 |     if ((h = dlopen(NULL, RTLD_LAZY | RTLD_LOCAL)) == NULL) return NULL;
89 |     gpa = dlsym(h, "glXGetProcAddress");
90 |   }
111 |   void* addr;
112 |   if (NULL == image)
113 |   {
114 |     image = dlopen("/System/Library/Frameworks/OpenGL.framework/Versions/Current/OpenGL", RTLD_LAZY);
115 |   }
116 |   if( !image ) return NULL;


ThirdParty/libxml2/vtklibxml2/xmlmodule.c



221 | static void *
222 | xmlModulePlatformOpen(const char *name)
223 | {
224 |     return dlopen(name, RTLD_GLOBAL | RTLD_NOW);
225 | }
226 | 


ThirdParty/sqlite/vtksqlite/sqlite3.c



39082 | #include <dlfcn.h>
39083 | static void *unixDlOpen(sqlite3_vfs *NotUsed, const char *zFilename){
39084 |   UNUSED_PARAMETER(NotUsed);
39085 |   return dlopen(zFilename, RTLD_NOW | RTLD_GLOBAL);
39086 | }
39087 |