4 * @(#)dlfcn.h 1.4 revision of 95/04/25 09:36:52
5 * This is an unpublished work copyright (c) 1992 HELIOS Software GmbH
6 * 30159 Hannover, Germany
15 #else /* HAVE_DLOPEN */
23 * Mode flags for the dlopen routine.
25 #define RTLD_LAZY 1 /* lazy function call binding */
26 #define RTLD_NOW 2 /* immediate function call binding */
27 #define RTLD_GLOBAL 0x100 /* allow symbols to be global */
30 * To be able to intialize, a library may provide a dl_info structure
31 * that contains functions to be called to initialize and terminate.
39 #if __STDC__ || defined(_IBMR2)
40 void *dlopen(const char *path
, int mode
);
41 void *dlsym(void *handle
, const char *symbol
);
43 int dlclose(void *handle
);
54 #endif /* HAVE_DLOPEN */
56 #include "utils/dynamic_loader.h"
58 #define pg_dlopen(f) dlopen((f), RTLD_NOW | RTLD_GLOBAL)
59 #define pg_dlsym dlsym
60 #define pg_dlclose dlclose
61 #define pg_dlerror dlerror
63 #endif /* PORT_PROTOS_H */