MCPcopy Create free account
hub / github.com/VirtualGL/virtualgl / _vgl_dlopen

Function _vgl_dlopen

server/faker.cpp:326–345  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

324// in dlfaker, but it seems like there was a good reason.
325
326void *_vgl_dlopen(const char *file, int mode)
327{
328 if(!__dlopen)
329 {
330 faker::GlobalCriticalSection::SafeLock l(globalMutex);
331 if(!__dlopen)
332 {
333 dlerror(); // Clear error state
334 __dlopen = (_dlopenType)dlsym(RTLD_NEXT, "dlopen");
335 char *err = dlerror();
336 if(!__dlopen)
337 {
338 vglout.print("[VGL] ERROR: Could not load function \"dlopen\"\n");
339 if(err) vglout.print("[VGL] %s\n", err);
340 faker::safeExit(1);
341 }
342 }
343 }
344 return __dlopen(file, mode);
345}
346
347
348int _vgl_getAutotestColor(Display *dpy, Drawable d, int right)

Callers 5

dlopenFunction · 0.85
loadGLSymbolFunction · 0.85
loadEGLSymbolFunction · 0.85
loadOCLSymbolFunction · 0.85
loadX11SymbolFunction · 0.85

Calls 2

safeExitFunction · 0.85
printMethod · 0.45

Tested by

no test coverage detected