OLD | NEW |
(Empty) | |
| 1 /* This header is a drop-in replacement for dlfcn.h */ |
| 2 /* See dlwrap.c for more information */ |
| 3 |
| 4 #ifndef __DLWRAP_H |
| 5 #define __DLWRAP_H |
| 6 |
| 7 #ifdef ENABLE_DLWRAP |
| 8 |
| 9 #define RTLD_NOW 0x2 |
| 10 |
| 11 #ifdef __cplusplus |
| 12 extern "C" { |
| 13 #endif |
| 14 |
| 15 void *pnacl_dlopen(const char *filename, int flag); |
| 16 char *pnacl_dlerror(void); |
| 17 void *pnacl_dlsym(void *handle, const char *symbol); |
| 18 int pnacl_dlclose(void *handle); |
| 19 |
| 20 #ifdef __cplusplus |
| 21 } |
| 22 #endif |
| 23 |
| 24 #define dlopen pnacl_dlopen |
| 25 #define dlerror pnacl_dlerror |
| 26 #define dlsym pnacl_dlsym |
| 27 #define dlclose pnacl_dlclose |
| 28 |
| 29 #endif /* ENABLE_DLWRAP */ |
| 30 #endif /* __DLWRAP_H */ |
OLD | NEW |