diff options
Diffstat (limited to 'libgcompat/dlmopen.c')
-rw-r--r-- | libgcompat/dlmopen.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/libgcompat/dlmopen.c b/libgcompat/dlmopen.c new file mode 100644 index 0000000..fecb29c --- /dev/null +++ b/libgcompat/dlmopen.c @@ -0,0 +1,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); +} + |