2
* $PostgreSQL: pgsql/src/backend/port/dynloader/aix.h,v 1.12 2003-11-29 22:39:51 pgsql Exp $
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
16
#else /* HAVE_DLOPEN */
24
* Mode flags for the dlopen routine.
26
#define RTLD_LAZY 1 /* lazy function call binding */
27
#define RTLD_NOW 2 /* immediate function call binding */
28
#define RTLD_GLOBAL 0x100 /* allow symbols to be global */
31
* To be able to intialize, a library may provide a dl_info structure
32
* that contains functions to be called to initialize and terminate.
40
#if __STDC__ || defined(_IBMR2)
41
void *dlopen(const char *path, int mode);
42
void *dlsym(void *handle, const char *symbol);
44
int dlclose(void *handle);
56
#endif /* HAVE_DLOPEN */
58
#include "utils/dynamic_loader.h"
60
#define pg_dlopen(f) dlopen((f), RTLD_NOW | RTLD_GLOBAL)
61
#define pg_dlsym dlsym
62
#define pg_dlclose dlclose
63
#define pg_dlerror dlerror
65
#endif /* PORT_PROTOS_H */