• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 #include <dlfcn.h>
2 #define C(n) switch(n){case n:;}
f()3 static void f()
4 {
5 C(RTLD_LAZY)
6 C(RTLD_NOW)
7 C(RTLD_GLOBAL)
8 C(RTLD_LOCAL)
9 
10 {int(*p)(void*) = dlclose;}
11 {char*(*p)(void) = dlerror;}
12 {void*(*p)(const char*,int) = dlopen;}
13 {void*(*p)(void*restrict,const char*restrict) = dlsym;}
14 }
15