summaryrefslogblamecommitdiff
path: root/libgcompat/dlvsym.c
blob: 0aba24599e8f5d36152f8b442bdab81f1ca9b184 (plain) (tree)
1
2
3
4
5
6
7
8
9


                                 


                                                       
                                         
                                                                                
                                         



                                     
#include <dlfcn.h>  /* dlsym */
#include <stdio.h>  /* fprintf */
#include <stdlib.h> /* getenv */

void *dlvsym(void *handle, char *symbol, char *version)
{
	if (getenv("GLIBC_FAKE_DEBUG")) {
		fprintf(stderr, "symbol %s with version %s is being redirected",
		        symbol, version);
	}

	return dlsym(handle, symbol);
}