initial check in

This commit is contained in:
2012-12-06 21:43:03 +04:00
commit 4bc273824d
179 changed files with 29415 additions and 0 deletions

19
dlload.cpp Normal file
View File

@@ -0,0 +1,19 @@
#include <dlfcn.h>
#include <stdio.h>
int main ()
{
// void* h1 = dlopen( "/home/vishap/p4/wb/main/stage-g/lib/amd64/libProteus.so", RTLD_LAZY|RTLD_GLOBAL);
void* h1 = dlopen( "/home/vishap/p4/wb/main/stage-g/lib/amd64/libProteus.so", RTLD_NOW|RTLD_GLOBAL);
if ( !h1 ) puts( dlerror() );
printf( "handle1 = 0x%x\n", h1 );
void* h2 = dlopen( "/home/vishap/p4/wb/main/src/icwb/test/libProteus.so", RTLD_LAZY|RTLD_GLOBAL);
if ( !h2 ) puts( dlerror() );
printf( "handle2 = 0x%x\n", h2 );
dlclose(h1);
dlclose(h2);
return 0;
}