MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / open_lib

Function open_lib

test/core/pthread/test_pthread_dlsym.c:12–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10func_t g_three;
11
12void* open_lib() {
13 void* handle = dlopen("libside.so", RTLD_NOW|RTLD_GLOBAL);
14 if (!handle) {
15 printf("dlerror: %s\n", dlerror());
16 assert(handle);
17 }
18 printf("dlopen returned: %p\n", handle);
19 return handle;
20}
21
22static void test_order1() {
23 void* handle = open_lib();

Callers 2

test_order1Function · 0.85
test_order2Function · 0.85

Calls 4

printfFunction · 0.85
dlerrorFunction · 0.85
dlopenFunction · 0.50
assertFunction · 0.50

Tested by

no test coverage detected