4 // should be good for the next ten thousand years :P
10 void *handle = dlopen("libc.so", 1);
13 for (so = 0; so < SOMAX; so++) {
14 snprintf(buffer, sizeof(buffer), "libc.so.%d", so);
15 if ((handle = dlopen(buffer, 1)))
21 printf("failed to load libc\n");
25 // test must return 0 to succeed
26 int (*a)(int) = dlsym(handle, "exit");