1 #ifndef _DLFCN_H 2 #define _DLFCN_H 3 /* 4 ** Distributed under the terms of the OpenBeOS License. 5 */ 6 7 #include <sys/types.h> 8 9 10 #define RTLD_LAZY 0 /* relocations are performed as needed */ 11 #define RTLD_NOW 1 /* the file gets relocated at load time */ 12 #define RTLD_LOCAL 0 /* symbols are not available for relocating any other object */ 13 #define RTLD_GLOBAL 2 /* all symbols are available */ 14 15 16 #ifdef __cplusplus 17 extern "C" { 18 #endif 19 20 extern int dlclose(void *image); 21 extern char *dlerror(void); 22 extern void *dlopen(const char *path, int mode); 23 extern void *dlsym(void *image, const char *symbolName); 24 25 #ifdef __cplusplus 26 } 27 #endif 28 29 #endif /* _DLFCN_H */ 30