Code Search for Developers
 
 
  

dlsym.c from The Geronimo Project at Krugle


Show dlsym.c syntax highlighted

/* by David "BAILOPAN" Anderson
 * No warranties of any kind
 * License: I hereby grant this work to the public domain and make no copyright claims.
 */
#include <stdio.h>
#include <stdlib.h>
#include <dlfcn.h>

int main(int argc, char **argv)
{
	char *file=NULL;
	void *dl= NULL;
	FILE *fp = NULL;
	if (argc != 2)
	{
		printf("Usage: dlsym <file>\n");
		exit(0);
	}
	file = argv[1];
	fp = fopen(file, "rb");
	if (!fp)
	{
		printf("File not found.");
		exit(0);
	}

	dl = dlopen(file, RTLD_NOW);
	
	if (dl)
	{
		printf("Shared module loaded.  Handle: %p\n", dl);
		dlclose(dl);
		dl = NULL;
	} else {
		printf("Shared module failed to load: %s\n", dlerror());
	}

	exit(0);
}





See more files for this project here

The Geronimo Project

The Geronimo project concists of two software :\n- Geronimo Hoshigo : a playable graphical user interface to play Go\n- Geronimo Margo : a artificial intelligence program which plays Go

Project homepage: http://sourceforge.net/projects/geronimo
Programming language(s): Java,Pascal,Perl,PHP
License: gpl2

  include/
    Vexd_Utilities.inc
    amxconst.inc
    amxmisc.inc
    amxmod.inc
    amxmodx.inc
    core.inc
    csstats.inc
    cstrike.inc
    csx.inc
    dbi.inc
    dodconst.inc
    dodfun.inc
    dodstats.inc
    dodx.inc
    engine.inc
    engine_const.inc
    engine_stocks.inc
    esf.inc
    esf_const.inc
    fakemeta.inc
    fakemeta_const.inc
    fakemeta_stocks.inc
    file.inc
    float.inc
    fun.inc
    geoip.inc
    hlsdk_const.inc
    lang.inc
    message_const.inc
    messages.inc
    ns.inc
    ns2amx.inc
    ns_const.inc
    nvault.inc
    regex.inc
    sockets.inc
    sqlx.inc
    string.inc
    tfcconst.inc
    tfcstats.inc
    tfcx.inc
    time.inc
    tsconst.inc
    tsfun.inc
    tsstats.inc
    tsx.inc
    vault.inc
    vector.inc
    xs.inc
    xtrafun.inc
  admin.sma
  adminchat.sma
  admincmd.sma
  adminhelp.sma
  adminslots.sma
  adminvote.sma
  amx_match_deluxe.sma
  amxxpc
  amxxpc.exe
  amxxpc32.dll
  amxxpc32.so
  amxxpc64.dll
  amxxpc64.so
  antiflood.sma
  cmdmenu.sma
  compile.exe
  compile.sh
  csstats.sma
  dlsym
  dlsym.c
  dlsym64
  imessage.sma
  mapchooser.sma
  mapsmenu.sma
  menufront.sma
  miscstats.sma
  multilingual.sma
  nextmap.sma
  pausecfg.sma
  plmenu.sma
  restmenu.sma
  sasm
  sasm.exe
  scrollmsg.sma
  stats_logging.sma
  statscfg.sma
  statsx.sma
  telemenu.sma
  temp.txt
  timeleft.sma