	[$Id: dlfcn.txt,v 1.3 2000/08/06 20:09:35 amai Exp $]

NAME dlopen, dlerror, dlsym, dlclose - Sample implementation 
                                               of dlfcn-interface for OS/2.

SYNOPSIS

       #include <dlfcn.h>

       void *dlopen (const char *filename, int flag);
       char *dlerror(void);
       void *dlsym(void *handle, char *symbol);
       int dlclose(void *handle);


IMPLEMENTATION

       This is public domain code! Based on DosLoadModule()
       and related calls.

  LIMITATIONS

  - we just ignore
     RTLD_LAZY 	[use Module Defintion File flags:	LOADONCALL]
     RTLD_NOW   						[PRELOAD]
     RTLD_GLOBAL 	[To some extent meaningless on OS/2 anyway]
     RTLD_LOCAL
     _init()
     _fini()

  - this is not thread-safe ...

