blob: fecb29c97499e0ff2d305dd07f31b0ef1d963f8a (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#include <dlfcn.h> // dlopen
#include <stdio.h> // fprintf
#include <stdlib.h> // getenv
void *dlmopen(long lmid, const char *pathname, int mode)
{
if(getenv("GLIBC_FAKE_DEBUG"))
{
fprintf(stderr, "library %s was requested to load in %ld namespace",
pathname, lmid);
}
return dlopen(pathname, mode);
}
|