1 /**
2 ***     dlopen(), dlclose() dlsym(), dlerror() emulation for OS/400.
3 ***
4 ***     See Copyright for the status of this software.
5 ***
6 ***     Author: Patrick Monnerat <pm@datasphere.ch>, DATASPHERE S.A.
7 **/
8 
9 #ifndef _DLFCN_H_
10 #define _DLFCN_H_
11 
12 
13 /**
14 ***     Flags for dlopen().
15 ***     Ignored for OS400.
16 **/
17 
18 #define RTLD_LAZY               000
19 #define RTLD_NOW                001
20 #define RTLD_GLOBAL             010
21 
22 
23 /**
24 ***     Prototypes.
25 **/
26 
27 extern void *           dlopen(const char * filename, int flag);
28 extern void *           dlsym(void * handle, const char * symbol);
29 extern const char *     dlerror(void);
30 extern int              dlclose(void * handle);
31 
32 #endif
33