summaryrefslogtreecommitdiff
path: root/libgcompat/dlmopen.c
blob: 4584680be54cc68371522bb715c28fb278cd114a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#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);
}